Tria3DSG - Triangular element with discrete shear gap (pyfe3d.tria3dsg)#
The module has three classes: Tria3DSGData, with the sizes of the
sparse arrays that one element fills; Tria3DSGProbe, with the
buffers in element coordinates that one or more elements share; and
Tria3DSG, the element. The update_* methods of
Tria3DSG write the element contributions in sparse row, column and
value arrays, from the positions given by its init_k_* attributes, or add
them to a global internal force vector.
Three-node triangular shell element with 6 degrees-of-freedom per node, \(u\), \(v\), \(w\), \(r_x\), \(r_y\), \(r_z\), first-order shear deformation theory, and a transverse shear field obtained with the discrete shear gap (DSG) method.
The membrane, bending and transverse shear operators of the element are
formed once per element, without a quadrature loop. The transverse shear
stiffnesses of the pyfe3d.shellprop.ShellProp are used as given,
unless the alpha_shear_locking attribute of Tria3DSG, 0. by
default, is set. The drilling rotation \(r_z\) is tied to the in-plane rotation
of the membrane field with a coefficient selected by the drilling_model
attribute: by default the in-plane shear stiffness A66 of the laminate,
otherwise a small fictitious penalty scaled by K6ROT. The in-plane
displacement field has no drilling enrichment; for problems dominated by
in-plane bending, pyfe3d.tria3r.Tria3R and pyfe3d.quad4.Quad4
carry one. pyfe3d.tria3r.Tria3R takes, by
default, the transverse shear field of this element, so the two triangles
differ only in the membrane and drilling terms, see pyfe3d.tria3r.
Geometrically nonlinear analyses with the von Kármán membrane
strains are supported by Tria3DSG.update_fint() with nonlinear=1,
Tria3DSG.update_KCNL() and Tria3DSG.update_KG().
Notes#
The transverse shear field is obtained with the discrete shear gap (DSG) method of Bletzinger, Bischoff and Ramm (2000) [1].
Shear locking and the optional stabilisation
A transverse shear field taken from the linear interpolation of \(w\), \(r_x\) and \(r_y\) locks. The DSG removes the locking in the operator instead of in the constitutive matrix, so no stabilisation parameter is needed and the transverse shear stiffness is used as the laminate gives it.
The algebraic stabilisation of Lyly, Stenberg and Vihinen (1993) [2], called
Stenberg’s method by Bischoff and Bletzinger (2004) [3] (Sec. 3.1), is
nevertheless available through the alpha_shear_locking attribute, in the
form of Castro et al. (2019) [4] (Eq. (26)), which is 0. by default and
then has no effect whatsoever. It is there because Castro et al. apply the
factor on top of a discrete shear gap field, as this one, and Lyly et al. on
top of the assumed-strain field of the MITC4 quadrilateral, so setting it
reproduces the stabilisation they describe, and because on a coarse mesh of a
thin plate it does improve
the answer: \(\alpha = 0.07\), the lower bound of the range recommended by
Castro et al., takes the first natural frequency of a \(5 \times 7\) mesh from
\(12.06\) to \(7.93\) per cent above the analytical value and the buckling load
of a thin plate from \(+1.71\) to \(+0.11\) per cent. That is the opposite of
its role in pyfe3d.tria3r.Tria3R with shear_model = 0, where the
same factor is applied to a centroid-sampled shear field and has to do the
unlocking itself, with values such as \(\alpha = 0.7\). Its default is this
element’s field with \(\alpha = 0\), and the same remarks then apply to it.
The default here is zero because the factor is unbounded in \(\ell/h\), so any
non-zero \(\alpha\) removes nearly all of the transverse shear stiffness on a
practical shell mesh and with it the properties of the discrete shear gap
field listed below. The
Notes of Tria3DSG carry the measurements and the recommended value
of alpha_shear_locking.
The transverse shear stiffnesses \(A_{44}\), \(A_{45}\) and \(A_{55}\) are read
from the pyfe3d.shellprop.ShellProp object with the shear correction
already applied, see
pyfe3d.shellprop.ShellProp.calc_transverse_shear_stiffness(), and
brought to the element coordinate system with
pyfe3d.shellprop.ShellProp.calc_Ats_element(), which, with
shear_correction='rohwer' and the plies available, re-evaluates the
equilibrium-based stiffness of Rohwer (1988) [7] with the plies rotated to
the element coordinate system. No shear correction factor is applied by the
element.
The discrete shear gap
With \(\boldsymbol{\phi} = (-r_y, r_x)\) the transverse shear strains of this element’s convention are
that is \(\boldsymbol{\gamma} = \nabla w - \boldsymbol{\phi}\). The shear gap \(\Delta w\) is the part of the increase of the deflection between two points that is due to shear rather than to bending ([1], Sec. 2, Eq. (3)). On the three-node triangle its nodal values are obtained by integrating the shear strains along the straight edges that join node 1 to the other two nodes ([1], Sec. 4.1.1), with \(\boldsymbol{\phi}\) interpolated linearly,
The assumed shear strain is then the gradient of the interpolated gap,
which is constant over the element because the shape functions are linear.
Four properties follow, all of them verified symbolically and then
numerically in tests/test_tria3dsg.py:
the three rigid-body modes that involve \(w\) give \(\boldsymbol{\gamma} = 0\) exactly;
a state of constant transverse shear is reproduced exactly, which is what Tria3R with
shear_model = 0cannot do;a state of constant curvature gives \(\boldsymbol{\gamma} = 0\) exactly, so the element develops no parasitic shear in pure bending. This is the locking-free property, and it is the reason no stabilisation parameter is needed in this element, whose optional
alpha_shear_lockingis0.by default;the operator is a linear functional of the nodal values only and is constant over the element, so it is formed once per element.
The gap is integrated away from one node, which makes the plain operator
depend on which node that is, a dependence inherent to the method whose
influence on the solution diminishes with mesh refinement ([1],
Sec. 4.1.1): measured on an irregular triangle, the element
matrix moves by 14 and 17 per cent under the two cyclic relabellings, against
\(3 \times 10^{-16}\) for pyfe3d.tria3r.Tria3R with
shear_model = 0, whose shear comes from a symmetric centroid evaluation. A mesh generator orders the nodes of a
triangle as it pleases, so this element averages the three operators, one per
starting node. The averaging costs nothing: each of the three is separately
exact for all of the properties listed above, and those are linear in the
operator, so the mean inherits them, which the tests confirm. What it buys is
invariance, measured at \(6 \times 10^{-16}\) in
tests/test_tria3dsg.py::test_node_numbering_invariance.
Membrane, bending and drilling
The in-plane and curvature fields are the constant-strain ones of the linear
triangle, so no locking arises there and one point integrates them exactly.
The drilling rotation \(r_z\) is given stiffness with the regularisation of
Hughes and Brezzi (1989) [5], tying \(r_z\) to the in-plane rotation
\(\theta_z = (v_{,x} - u_{,y})/2\), exactly as in pyfe3d.quad4.Quad4
and pyfe3d.tria3r.Tria3R.
drilling_model = 0, the default, uses the physics-based coefficient
\(\gamma_{r_z} = A_{66}\), a stiffness per unit length taken from the
laminate and not an adjustable parameter. Any other value uses the
fictitious penalty
\(\gamma_{r_z} = K6ROT \cdot 10^{-6} A_{66}\). With either coefficient the
term \(\gamma_{r_z} \int_A (r_z - \theta_z)^2 dA\) is integrated with the
three-point rule, see Tria3DSG._update_probe_KC0ve(), whereas the
physics-based model of pyfe3d.tria3r.Tria3R, which adds the Allman
enrichment, integrates it with a single point at the centroid.
Note
This element does not carry the hierarchical edge-mode
enrichment of Allman (1984) [6] that pyfe3d.tria3r.Tria3R and
pyfe3d.quad4.Quad4 apply to the in-plane displacement field, so
its membrane response in in-plane bending is the stiff one of the
constant-strain triangle.
Geometrically nonlinear analysis
The element carries the von Kármán membrane strains,
with the same split of the tangent stiffness as
pyfe3d.quad4.Quad4 and pyfe3d.tria3r.Tria3R,
which is the exact Jacobian of the internal forces of
Tria3DSG.update_fint() called with nonlinear=1. \(\boldsymbol{K}_G\) is left
homogeneous of degree one in the displacements so that a linear buckling
analysis can use it directly, the stress of the nonlinear membrane strain
being collected in \(\boldsymbol{K}_{GNL}\) instead, which
Tria3DSG.update_KCNL() computes together with \(\boldsymbol{K}_{CNL}\).
Two things are simpler here than in the quadrilateral. First, the transverse shear strains of first-order shear deformation theory have no von Kármán terms, so the discrete shear gap operator appears in \(\boldsymbol{K}_{C0}\) alone and the nonlinear methods never touch it. Second, every operator of this element is constant over the triangle, so \(\boldsymbol{K}_{CNL} + \boldsymbol{K}_{GNL}\), its internal forces and \(\boldsymbol{K}_G\) are all integrated exactly by a single multiplication by the area, with no quadrature loop and no quadrature to keep consistent between the matrix and the residual. The drilling term is the only one that needs more than one point, and it is linear.
Zero-energy modes of a single element
The stiffness matrix KC0 of a single free element has seven zero
eigenvalues: the six rigid-body motions and one mode of the rotations,
in the element coordinates, \((x_c, y_c)\) being the centroid and \(c\) an
arbitrary constant. Its curvatures vanish, \(\kappa_{xx} = {r_y}_{,x} = 0\),
\(\kappa_{yy} = -{r_x}_{,y} = 0\) and \(\kappa_{xy} = -{r_x}_{,x} +
{r_y}_{,y} = c - c = 0\), and so does its transverse shear strain, the discrete shear gap field of the element being constant.
The bending and the transverse shear have nine degrees-of-freedom, \(w\),
\(r_x\) and \(r_y\) of the three nodes, and at most five independent strains,
the three constant curvatures and the two constant transverse shear
strains, hence at least four zero modes, three of which are the rigid-body
motions \(w = \text{const.}\) and the rotations about the in-plane axes; the
membrane with its drilling term has only the three in-plane rigid-body
motions. The mode is the triangular counterpart of the spurious twisting
mode of the one-point quadrilateral, Eq. (13) of Brockman [8], p. 2347,
which exists for a single element but not in a mesh of two or more
elements. Measured with both drilling_model, thicknesses of 0.001 to 0.1
times the size of the triangle, in the \(xy\) plane and rotated out of it:
seven zero eigenvalues, below \(10^{-15}\) times the largest, with the eighth
above \(10^{-8}\) times it; assembled, two triangles of a square and four
triangles about an interior node have only the six rigid-body modes.
References#
Bletzinger, K.-U., Bischoff, M., and Ramm, E., A unified approach for shear-locking-free triangular and rectangular shell finite elements, Computers & Structures, 75(3), 321-334, 2000. https://doi.org/10.1016/S0045-7949(99)00140-6
Lyly, M., Stenberg, R., and Vihinen, T., A stable bilinear element for the Reissner-Mindlin plate model, Computer Methods in Applied Mechanics and Engineering, 110(3-4), 343-357, 1993. https://doi.org/10.1016/0045-7825(93)90214-I
Bischoff, M., and Bletzinger, K.-U., Improving stability and accuracy of Reissner-Mindlin plate finite elements via algebraic subgrid scale stabilization, Computer Methods in Applied Mechanics and Engineering, 193(15-16), 1517-1528, 2004. https://doi.org/10.1016/j.cma.2003.12.036
Castro, S. G. P., Donadon, M. V., and Guimaraes, T. A. M., ES-PIM applied to buckling of variable angle tow laminates, Composite Structures, 209, 67-78, 2019. https://doi.org/10.1016/j.compstruct.2018.10.058
Hughes, T. J. R., and Brezzi, F., On drilling degrees of freedom, Computer Methods in Applied Mechanics and Engineering, 72(1), 105-121, 1989. https://doi.org/10.1016/0045-7825(89)90124-2
Allman, D. J., A compatible triangular element including vertex rotations for plane elasticity analysis, Computers & Structures, 19(1-2), 1-8, 1984. https://doi.org/10.1016/0045-7949(84)90197-4
Rohwer, K., Improved transverse shear stiffness for layered finite elements, DFVLR-FB 88-32, 1988.
Brockman, R. A., Dynamics of the bilinear Mindlin plate element, International Journal for Numerical Methods in Engineering, 24(12), 2343-2356, 1987. https://doi.org/10.1002/nme.1620241208
- class pyfe3d.tria3dsg.Tria3DSG#
Three-node triangular shell element with a discrete shear gap
The constructor stores the probe and sets the identification numbers and the positions
c1, c2, c3to-1, theinit_k_*positions to0, and the rotation matricesr11, ..., r33andm11, m12, m21, m22to the identity. Before computing any element matrix, the caller setsc1, c2, c3and theinit_k_*positions, and callsupdate_rotation_matrix()andupdate_probe_xe().- Parameters:
- p
Tria3DSGProbe Probe used by the element, stored in
probe. One probe can be shared by many elements.
- p
- Attributes:
- eid,int
Element identification number.
- pid,int
Property identification number.
- area,double
Element area. Dimension of length squared. Updated by
update_area()and by the methods that compute stiffness matrices, internal forces or the mass matrix.- n1, n2, n3int
Node identification numbers.
- c1, c2, c3int
Position of each node’s first degree-of-freedom in the global displacement vector. The coordinates of a node are read at the positions
c1//2,c2//2andc3//2of the coordinate array.- init_k_KC0, init_k_KCNL, init_k_KG, init_k_Mint
Position of this element’s first entry in the sparse vectors.
- drilling_model,int
0, the default, uses the in-plane shear stiffnessA66of the laminate, orgamma_rz, as the coefficient of the drilling term. Any other value uses the fictitious penaltyK6ROT*1e-6*A66.- gamma_rz,double
When non-negative and
drilling_model = 0, overridesA66as the coefficient of the drilling term. Negative, the default-1., means useA66. Dimension of force per unit length, asA66.- K6ROT,double
Coefficient of the fictitious penalty, used when
drilling_model != 0. Default1.. Dimensionless.- alpha_shear_locking,double
Optional reduction of the transverse shear stiffnesses
A44,A45andA55of the element, by a factor that grows with the square of the ratio of the longest edge to the total thickness, applied after the rotation into the element coordinate system and after the shear correction. The default0.disables it entirely. Set it deliberately, per problem class, and never as a constant of the element. Dimensionless.- m11, m12, m21, m22double
In-plane rotation from the material to the element coordinate system, set by
update_rotation_matrix().- r11, r12, …, r33double
Entries \(T_{ij}\) of the transformation matrix \(\boldsymbol{T}_{3\times 3}\) from element to global coordinates, whose columns are the element axes.
- probe,
Tria3DSGProbe Shared probe object.
Methods
update_KC0(self, long[, long[, double[, ...)Update the sparse vectors of the constitutive stiffness matrix
update_KCNL(self, long[, long[, double[, ...)Update the sparse vectors of the nonlinear stiffness matrix
update_KG(self, long[, long[, double[, ...)Update the geometric stiffness from the current displacements
update_KG_given_stress(self, double Nxx, ...)Update the sparse vectors of the geometric stiffness matrix
update_M(self, long[, long[, double[, ...)Update the sparse vectors of the mass matrix
update_area(self)Update the element area from the probe coordinates
update_fint(self, double[, ShellProp prop, ...)Update the internal force vector
update_probe_finte(self, ShellProp prop, ...)Update the internal force vector of the probe
update_probe_ue(self, double[)Update the element-frame nodal displacements in the probe
update_probe_xe(self, double[)Update the element-frame nodal coordinates in the probe
update_rotation_matrix(self, double[, ...)Update the rotation matrix of the element
Notes
drilling_model = 0uses \(\gamma_{r_z} = A_{66}\) of Hughes and Brezzi [1], and any other value \(K6ROT \cdot 10^{-6} A_{66}\), see the module documentation. Overriding \(A_{66}\) withgamma_rzis what makes the sensitivity study recommended in the literature possible.alpha_shear_lockingis the optional algebraic stabilisation of the transverse shear stiffness, \(\hat{A}_{ts} = A_{ts}/(1 + \alpha \ell^2/h^2)\) with \(\ell\) the longest edge and \(h\) the total thickness. The default0.is the element as described in the module documentation: the discrete shear gap is already locking-free, so nothing has to be rescaled.A non-zero value applies the factor of Stenberg’s method, as Bischoff and Bletzinger (2004) [2] (Sec. 3.1) call the stabilisation of Lyly, Stenberg and Vihinen, on top of a discrete shear gap field, as Castro et al. (2019) [3] (Eq. (26)) do, which is not how
pyfe3d.tria3r.Tria3Rwithshear_model = 0uses the same symbol. There the factor is applied to a centroid-sampled shear field and has to do the unlocking itself, with values such as 0.7, seven times the literature value, which is why it is load bearing there and merely helpful here. The default Tria3R uses the field of this element, with the same default0..Recommended value.
0.07, the lower bound of the range recommended by Castro et al. (2019), on a thin plate discretised coarsely, and only there. Measured with this element, with the remaining columns fromtests/test_tria3dsg.pyand the study described in the module documentation:alpha 0 0.07 0.10 0.15 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ omega_11, 5 x 7 +12.06% +7.93% +6.73% +4.86% omega_11, 9 x 11 +2.75% +1.69% +1.27% +0.60% omega_11, 33 x 41 -0.61% -0.72% -0.76% -0.84% Nxx_cr, l/h = 30 +1.71% +0.11% -0.33% -1.02% w_max, a/h = 5 +9.81% +10.14% +10.30% +10.51%
the first three rows being the first natural frequency of a thin plate under refinement, the fourth the buckling load of a thin plate and the last the deflection of a plate thick enough for transverse shear to carry 19 per cent of it, every entry a relative error against the analytical value.
The buckling row crosses from the stiff to the soft side between \(0.07\) and \(0.1\), which is the behaviour Castro et al. report above \(\alpha = 0.09\), reproduced here on a discrete shear gap field rather than on the ES-PIM of that paper.
Why the default is nevertheless zero. The factor \(\alpha \ell^2/h^2\) is unbounded in \(\ell/h\), so a non-zero \(\alpha\) removes essentially all of the transverse shear stiffness on any practical shell mesh, and with it three properties this element was built to have. Measured at the default \(\alpha = 0\) against \(\alpha = 0.07\):
the constant transverse shear state of
test_constant_transverse_shear_state_is_exact, exact to \(10^{-12}\) at every element size, drops to \(1/(1 + factor)\) of the correct energy, which is \(0.067\) at \(L/h = 10\) and \(7 \times 10^{-8}\) at \(L/h = 10^4\) for the right triangles of leg \(L\) of that test, whose longest edge is \(\ell = \sqrt{2} L\), i.e. \(0.125\) at \(\ell/h = 10\) and \(1.4 \times 10^{-7}\) at \(\ell/h = 10^4\);the sensitivity of \(\boldsymbol{K}_{C0}\) to \(A_{ts}\) falls by about three hundred on the geometry of
test_transverse_shear_stays_out_of_the_nonlinear_terms, that is the element uses a fraction of a per cent of the transverse shear stiffness the laminate gives it;the last row of the table above: where transverse shear is real physics rather than a penalty, \(\alpha\) can only add error, and it does so monotonically.
So the gain is confined to coarse meshes of thin plates, where the element is already accurate, and it is paid for in the regime the FSDT exists to describe. Set it deliberately, per problem class, and never as a constant of the element.
References
[1]Hughes, T. J. R., and Brezzi, F., On drilling degrees of freedom, Computer Methods in Applied Mechanics and Engineering, 72(1), 105-121, 1989. https://doi.org/10.1016/0045-7825(89)90124-2
[2]Bischoff, M., and Bletzinger, K.-U., Improving stability and accuracy of Reissner-Mindlin plate finite elements via algebraic subgrid scale stabilization, Computer Methods in Applied Mechanics and Engineering, 193(15-16), 1517-1528, 2004. https://doi.org/10.1016/j.cma.2003.12.036
[3]Castro, S. G. P., Donadon, M. V., and Guimaraes, T. A. M., ES-PIM applied to buckling of variable angle tow laminates, Composite Structures, 209, 67-78, 2019. https://doi.org/10.1016/j.compstruct.2018.10.058
Examples
The constitutive stiffness matrix of one triangular element of an isotropic plate:
>>> import numpy as np >>> from scipy.sparse import coo_matrix >>> from pyfe3d import Tria3DSG, Tria3DSGData, Tria3DSGProbe, DOF, INT, DOUBLE >>> from pyfe3d.shellprop_utils import isotropic_plate >>> x = np.array([0., 0., 0., 1., 0., 0., 1., 1., 0.]) >>> prop = isotropic_plate(thickness=0.01, E=70e9, nu=0.3) >>> data = Tria3DSGData() >>> elem = Tria3DSG(Tria3DSGProbe()) >>> elem.n1, elem.n2, elem.n3 = 1, 2, 3 >>> elem.c1, elem.c2, elem.c3 = 0, 6, 12 >>> elem.update_rotation_matrix(x) >>> elem.update_probe_xe(x) >>> KC0r = np.zeros(data.KC0_SPARSE_SIZE, dtype=INT) >>> KC0c = np.zeros(data.KC0_SPARSE_SIZE, dtype=INT) >>> KC0v = np.zeros(data.KC0_SPARSE_SIZE, dtype=DOUBLE) >>> elem.update_KC0(KC0r, KC0c, KC0v, prop) >>> N = 3*DOF >>> KC0 = coo_matrix((KC0v, (KC0r, KC0c)), shape=(N, N)).toarray() >>> print(KC0.shape, elem.area, np.allclose(KC0, KC0.T)) (18, 18) 0.5 True
- K6ROT#
K6ROT: ‘double’
- alpha_shear_locking#
alpha_shear_locking: ‘double’
- area#
area: ‘double’
- c1#
c1: ‘int’
- c2#
c2: ‘int’
- c3#
c3: ‘int’
- drilling_model#
drilling_model: ‘int’
- eid#
eid: ‘int’
- gamma_rz#
gamma_rz: ‘double’
- init_k_KC0#
init_k_KC0: ‘int’
- init_k_KCNL#
init_k_KCNL: ‘int’
- init_k_KG#
init_k_KG: ‘int’
- init_k_M#
init_k_M: ‘int’
- m11#
m11: ‘double’
- m12#
m12: ‘double’
- m21#
m21: ‘double’
- m22#
m22: ‘double’
- n1#
n1: ‘int’
- n2#
n2: ‘int’
- n3#
n3: ‘int’
- pid#
pid: ‘int’
- probe#
probe: pyfe3d.tria3dsg.Tria3DSGProbe
- r11#
r11: ‘double’
- r12#
r12: ‘double’
- r13#
r13: ‘double’
- r21#
r21: ‘double’
- r22#
r22: ‘double’
- r23#
r23: ‘double’
- r31#
r31: ‘double’
- r32#
r32: ‘double’
- r33#
r33: ‘double’
- update_KC0(self, long[: :1] KC0r, long[: :1] KC0c, double[: :1] KC0v, ShellProp prop, int update_KC0v_only=0) void#
Update the sparse vectors of the constitutive stiffness matrix
The element-frame matrix is built by
_update_probe_KC0ve()into theKC0veattribute of the probe and rotated to global coordinates here.Before this method is called,
update_probe_xe()must have been used to set the element-frame coordinates of the probe.The values in global coordinates are added to
KC0vat the positionsinit_k_KC0toinit_k_KC0 + KC0_SPARSE_SIZE - 1. Withupdate_KC0v_only=0the global row and column indices are written toKC0randKC0cat the same positions. The rotation matrix ofupdate_rotation_matrix()is used. Theareaattribute and the strain rows of the probe are updated as well.- Parameters:
- KC0r, KC0carray-like
Row and column positions of the sparse values. 1-D arrays of integers (
INT) of size at leastinit_k_KC0 + KC0_SPARSE_SIZE.- KC0varray-like
Sparse values. 1-D array of
DOUBLE, same size asKC0r. The values are added to the existing ones, with dimension of force per unit length between translations, of force between a translation and a rotation, and of force times length between rotations.- prop
pyfe3d.shellprop.ShellProp Shell property.
- update_KC0v_onlyint, optional
0, the default, also fillsKC0randKC0c.
Notes
The formulation of the element matrix is given in
_update_probe_KC0ve(). With \(\boldsymbol{T}\) the transformation matrix of the element, block diagonal with the matrix \(\boldsymbol{T}_{3\times 3}\) of the entries \(T_{ij}\) stored inr11, ..., r33, whose columns are the element axes, for the translations and for the rotations of each node, the global values are \(\boldsymbol{K}_g = \boldsymbol{T} \boldsymbol{K}_e \boldsymbol{T}^\top\), i.e. \(K_{g,mn} = T_{mi} K_{e,ij} T_{nj}\).
- update_KCNL(self, long[: :1] KCNLr, long[: :1] KCNLc, double[: :1] KCNLv, ShellProp prop, int update_KCNLv_only=0) void#
Update the sparse vectors of the nonlinear stiffness matrix
The nonlinear stiffness matrix KCNL is the part of the tangent stiffness matrix, besides
update_KC0()andupdate_KG(), that depends on the displacements through the von Kármán membrane strains, evaluated at the displacementsueof the probe. The sum of the three is the tangent stiffness matrix of the internal forces ofupdate_fint()withnonlinear=1.Before this method is called,
update_probe_xe()must have been used with the node coordinates andupdate_probe_ue()with the current displacements.The element matrix is computed in element coordinates into the probe attribute
KCNLve, rotated to global coordinates, and its values are added toKCNLvat the positionsinit_k_KCNLtoinit_k_KCNL + KCNL_SPARSE_SIZE - 1. Withupdate_KCNLv_only=0the global row and column indices are written toKCNLrandKCNLcat the same positions.- Parameters:
- KCNLr, KCNLcarray-like
Row and column positions of the sparse values. 1-D arrays of integers (
INT) of size at leastinit_k_KCNL + KCNL_SPARSE_SIZE.- KCNLvarray-like
Sparse values. 1-D array of
DOUBLE, same size asKCNLr. The values are added to the existing ones, with dimension of force per unit length between translations, of force between a translation and a rotation, and of force times length between rotations.- prop
pyfe3d.shellprop.ShellProp Shell property.
- update_KCNLv_onlyint, optional
0, the default, also fillsKCNLrandKCNLc.
Notes
KCNL = KC0L + KCL0 + KCLL + KGNL, that is \(\boldsymbol{K}_{CNL} + \boldsymbol{K}_{GNL}\): the nonlinear constitutive stiffness matrix \(\boldsymbol{K}_{CNL}\), the terms of \(\int (\boldsymbol{B}_L + \boldsymbol{B}_{NL})^\top \boldsymbol{C} (\boldsymbol{B}_L + \boldsymbol{B}_{NL}) d\Omega\) that contain \(\boldsymbol{B}_{NL}\), plus the geometric stiffness matrix \(\boldsymbol{K}_{GNL}\) of the stress resultants of the nonlinear strains. Crisfield [1], Section 8.1.5, Eqs. (8.26)-(8.31), groups the same terms differently: his \(\boldsymbol{K}_{t1}\) is \(\boldsymbol{K}_{C0} + \boldsymbol{K}_{CNL}\), and his initial-stress matrix \(\boldsymbol{K}_{t\sigma}\), built with the total membrane forces, is \(\boldsymbol{K}_G + \boldsymbol{K}_{GNL}\); the tangent stiffness matrix is the same. The matrices are built from the von Kármán membrane strains
\[\epsilon_{xx} = u_{,x} + \frac{1}{2} w_{,x}^2, \quad \epsilon_{yy} = v_{,y} + \frac{1}{2} w_{,y}^2, \quad \gamma_{xy} = u_{,y} + v_{,x} + w_{,x} w_{,y}\]whose nonlinear part is \(\boldsymbol{\epsilon}_{NL} = \frac{1}{2} \boldsymbol{B}_{NL} \boldsymbol{u}_e\), with \(\boldsymbol{B}_{NL}\) its variation. With \(\boldsymbol{B}_m\) and \(\boldsymbol{B}_b\) the linear membrane and bending strain-displacement matrices, \(\boldsymbol{G}_x = \partial \boldsymbol{S}^w / \partial x\) and \(\boldsymbol{G}_y = \partial \boldsymbol{S}^w / \partial y\) the gradients of \(w\), and \(\boldsymbol{A}\), \(\boldsymbol{B}\) the laminate matrices:
KC0L = \(\boldsymbol{B}_m^\top \boldsymbol{A} \boldsymbol{B}_{NL} + \boldsymbol{B}_b^\top \boldsymbol{B} \boldsymbol{B}_{NL}\)
KCL0 = KC0L`^top`
KCLL = \(\boldsymbol{B}_{NL}^\top \boldsymbol{A} \boldsymbol{B}_{NL}\)
KGNL = \(N_{NL,xx} \boldsymbol{G}_x^\top \boldsymbol{G}_x + N_{NL,yy} \boldsymbol{G}_y^\top \boldsymbol{G}_y + N_{NL,xy} (\boldsymbol{G}_x^\top \boldsymbol{G}_y + \boldsymbol{G}_y^\top \boldsymbol{G}_x)\), with \(\boldsymbol{N}_{NL} = \{N_{NL,xx}, N_{NL,yy}, N_{NL,xy}\}^\top = \boldsymbol{A} \boldsymbol{\epsilon}_{NL}\)
The first three groups are the constitutive terms coupling the linear and the nonlinear parts of the membrane strain. KGNL is geometric, carrying the stress of the nonlinear membrane strain. It is collected here so that
update_KG()stays homogeneous of degree one in the displacements, which is what a linear buckling analysis needs. With it here,\[\boldsymbol{K}_T = \boldsymbol{K}_{C0} + \boldsymbol{K}_{CNL}(\boldsymbol{u}) + \boldsymbol{K}_{GNL}(\boldsymbol{u}) + \boldsymbol{K}_G(\boldsymbol{u})\]is the exact Jacobian of the internal forces of
update_fint()withnonlinear=1, and a Newton-Raphson iteration built on them converges quadratically.Note
The transverse shear strains of first-order shear deformation theory carry no von Kármán terms, so the discrete shear gap operator of this element enters \(\boldsymbol{K}_{C0}\) alone and needs nothing here. The membrane rows have no \(r_z\) entries, this element having no Allman enrichment, so the drilling regularisation is likewise untouched. Both are unlike
pyfe3d.quad4.Quad4, whose enriched membrane rows have to be carried into its nonlinear tangent.Every operator is constant over the triangle, so each term is integrated exactly by a multiplication by the element area, see
_update_probe_KCNLve().References
[1]Crisfield, M. A., Non-linear Finite Element Analysis of Solids and Structures, Volume 1: Essentials, John Wiley & Sons, Chichester, 1991.
- update_KG(self, long[: :1] KGr, long[: :1] KGc, double[: :1] KGv, ShellProp prop, int update_KGv_only=0) void#
Update the geometric stiffness from the current displacements
The membrane stress resultants are recovered from the probe displacements, which
update_probe_ue()must have updated, using the same strain operators and the same membrane constitutive relation thatupdate_fint()uses, and then handed toupdate_KG_given_stress(). Only the linear strains contribute; the stress of the von Kármán terms of the membrane strain is carried byupdate_KCNL()instead.The values are added to
KGvat the positionsinit_k_KGtoinit_k_KG + KG_SPARSE_SIZE - 1. Withupdate_KGv_only=0the global row and column indices are written toKGrandKGcat the same positions. Before this method is called,update_rotation_matrix()andupdate_probe_xe()must also have been used.- Parameters:
- KGr, KGcarray-like
Row and column positions of the sparse values. 1-D arrays of integers (
INT) of size at leastinit_k_KG + KG_SPARSE_SIZE.- KGvarray-like
Sparse values. 1-D array of
DOUBLE, same size asKGr. The values are added to the existing ones, with dimension of force per unit length.- prop
pyfe3d.shellprop.ShellProp Shell property.
- update_KGv_onlyint, optional
0, the default, also fillsKGrandKGc.
Notes
The stress resultants are
\[\{N_{xx}, N_{yy}, N_{xy}\}^\top = \boldsymbol{A}\{\epsilon_{xx}, \epsilon_{yy}, \gamma_{xy}\}^\top + \boldsymbol{B}\{\kappa_{xx}, \kappa_{yy}, \kappa_{xy}\}^\top\]with the linear strains of
_update_probe_BL_G()and \(\boldsymbol{A}\), \(\boldsymbol{B}\) in the element coordinate system. Both the strains and the curvatures are constant over the triangle, so the resulting stress state is constant too, which is whatupdate_KG_given_stress()assumes.Only the linear strains contribute, which leaves this matrix homogeneous of degree one in the displacements, as a linear buckling analysis needs.
- update_KG_given_stress(self, double Nxx, double Nyy, double Nxy, long[: :1] KGr, long[: :1] KGc, double[: :1] KGv, int update_KGv_only=0) void#
Update the sparse vectors of the geometric stiffness matrix
A constant membrane stress state \(N_{xx}, N_{yy}, N_{xy}\) is assumed within the element. The operator involves only the gradients of the element-frame \(w\), which are taken from the
Sw_x, Sw_yrows of the probe and turned into global translations with the third row of the rotation matrix, so only the translational degrees-of-freedom appear.Warning
The stress resultants are in the element coordinate system, and for a triangle that is easy to get wrong. The element \(x\) axis runs from node 1 to node 2, so in a structured mesh whose cells are split along a diagonal the first triangle of each cell has its frame along the mesh while the second has it along the diagonal, some 45 degrees away. Handing the same \((N_{xx}, 0, 0)\) to both then loads half the elements along the diagonal, and the answer comes to depend on how the mesh generator happened to order the nodes of each triangle. A uniaxial state along a global direction has to be rotated to the element coordinate system with the rotation matrix
r11, ..., r33of this object.update_KG()is free of this, recovering the stress from the element’s own strains in its own frame.The values are added to
KGvat the positionsinit_k_KGtoinit_k_KG + KG_SPARSE_SIZE - 1. Withupdate_KGv_only=0the global row and column indices are written toKGrandKGcat the same positions. Before this method is called,update_rotation_matrix()andupdate_probe_xe()must have been used. Theareaattribute and the strain rows of the probe are updated as well.- Parameters:
- Nxx, Nyy, Nxydouble
Membrane stress resultants in the element coordinate system. Force per unit length.
- KGr, KGcarray-like
Row and column positions of the sparse values. 1-D arrays of integers (
INT) of size at leastinit_k_KG + KG_SPARSE_SIZE.- KGvarray-like
Sparse values. 1-D array of
DOUBLE, same size asKGr. The values are added to the existing ones, with dimension of force per unit length.- update_KGv_onlyint, optional
0, the default, also fillsKGrandKGc.
Notes
The operator is the Donnell one. With \(S_{i,x}\) and \(S_{i,y}\) the constant derivatives of the shape functions, \(A_e\) the element area and \(\{T_{13}, T_{23}, T_{33}\}\) the element normal in global coordinates, the third column of \(\boldsymbol{T}_{3\times 3}\), the entry of the global translation \(m\) of node \(i\) and \(n\) of node \(j\) is
\[\begin{split}K_{G} = A_e T_{m3} T_{n3} \begin{bmatrix} S_{i,x} & S_{i,y} \end{bmatrix} \begin{bmatrix} N_{xx} & N_{xy} \\ N_{xy} & N_{yy} \end{bmatrix} \begin{bmatrix} S_{j,x} \\ S_{j,y} \end{bmatrix}\end{split}\]the integrand being constant over the triangle.
A uniaxial state \(N\) along a global direction \(\boldsymbol{d}\) has to be rotated. With \(\boldsymbol{T}_{3\times 3}\) the transformation matrix of this object, whose columns are the element axes, \(\boldsymbol{a} = \boldsymbol{T}_{3\times 3}^\top \boldsymbol{d}\) is that direction in element coordinates and the state \(N \boldsymbol{a} \boldsymbol{a}^\top\) has components
\[N^e_{xx} = N a_x^2, \quad N^e_{yy} = N a_y^2, \quad N^e_{xy} = N a_x a_y\]which reduces to \((N, 0, 0)\) when the element \(x\) axis is along \(\boldsymbol{d}\), so a quadrilateral mesh aligned with the load needs nothing. Measured on the cylinder of
tests/test_quad4_linear_buckling_cylinder_displ.py, whose cells are nearly square so the diagonal sits at 44.3 degrees, the three cyclic numberings of one triangle give buckling loads spanning a factor of fifteen without this rotation and agree to 2e-3 with it. This is checked bytest_buckling_load_does_not_depend_on_triangle_node_numberingintests/test_tria3dsg.py.
- update_M(self, long[: :1] Mr, long[: :1] Mc, double[: :1] Mv, ShellProp prop, int mtype=0) void#
Update the sparse vectors of the mass matrix
The element matrix is computed from
intrho,intrhozandintrhoz2ofpropand from the area of the element coordinatesprobe.xe, which is also stored inarea;intrhozcouples the translationsuandvwith the rotationsr_yandr_x, andintrhoz2enters only the rotationsr_xandr_y. The matrix is rotated to global coordinates and its values are added toMvat the positionsinit_k_Mtoinit_k_M + M_SPARSE_SIZE - 1; the global row and column indices are always written toMrandMcat the same positions. Before this method is called,update_rotation_matrix()andupdate_probe_xe()must have been used.- Parameters:
- Mr, Mcarray-like
Row and column positions of the sparse values. 1-D arrays of integers (
INT) of size at leastinit_k_M + M_SPARSE_SIZE.- Mvarray-like
Sparse values. 1-D array of
DOUBLE, same size asMr. The values are added to the existing ones, with dimension of mass between translations, of mass times length between a translation and a rotation, and of mass times length squared between rotations.- prop
pyfe3d.shellprop.ShellProp Shell property.
intrho,intrhozandintrhoz2are read from it.- mtypeint, optional
0for the consistent mass matrix and1for the lumped one, which puts a third of the element area on each node. Default0. The element has no reduced-integration mass matrix,2.
- Raises:
- ValueError
If
mtypeis not 0 or 1.
Notes
With the displacements \(u + z r_y\), \(v - z r_x\) and \(w\) through the thickness, consistent with the curvatures of
_update_probe_BL_G(), the kinetic energy integrated through the thickness is that of Eq. (20) of Brockman [1],\[T = \frac{1}{2} \int_A \left[ I_\rho (\dot{u}^2 + \dot{v}^2 + \dot{w}^2) + 2 I_{\rho z} (\dot{u} \dot{r}_y - \dot{v} \dot{r}_x) + I_{\rho z^2} (\dot{r}_x^2 + \dot{r}_y^2) \right] dA\]with \(I_\rho\), \(I_{\rho z}\) and \(I_{\rho z^2}\) given by
intrho,intrhozandintrhoz2, which include the offset. With \(h_{ij}\) the integral of the products of the linear shape functions over the element, the element matrix has \(I_{\rho} h_{ij}\) between the translations \(u\), \(v\), \(w\) of nodes \(i\) and \(j\), \(I_{\rho z^2} h_{ij}\) between the rotations \(r_x\) and between the rotations \(r_y\), \(+I_{\rho z} h_{ij}\) between \(u\) and \(r_y\), and \(-I_{\rho z} h_{ij}\) between \(v\) and \(r_x\). The drilling rotation \(r_z\) has no inertia. For the consistent mass matrix, \(h_{ij} = \int S_i S_j dA\) is \(A/6\) when \(i = j\) and \(A/12\) otherwise. The lumped mass matrix integrates \(T\) with the vertex rule, the nodal quadrature with the weight \(A/3\) at each node, where \(S_i\) is 1 at node \(i\) and 0 at the other nodes, giving \(h_{ii} = A/3\) and \(h_{ij} = 0\) for \(i \neq j\). The coupling through \(I_{\rho z}\) stays in the block of each node, such that the lumped matrix is block-diagonal per node, diagonal only when \(I_{\rho z} = 0\), and has the exact mass and the exact first moment of the mass, with the centre of mass at the offset from the reference surface. The rotary inertia from the distribution of \(I_\rho\) over the area is concentrated at the nodes, 4 times the exact value about the centroid of the element; the term \(I_{\rho z^2} A\) is exact.References
[1]Brockman, R. A., Dynamics of the Bilinear Mindlin Plate Element, International Journal for Numerical Methods in Engineering, 24(12), 2343-2356, 1987. https://doi.org/10.1002/nme.1620241208
- update_area(self) void#
Update the element area from the probe coordinates
The
areaattribute is updated with the area of the triangle given by the element coordinatesprobe.xe, ignoring thezcoordinates. The methods that compute stiffness matrices, internal forces or the mass matrix compute the area themselves and also store it inarea, so they do not depend on this method.Notes
With the vertices \((x_i, y_i)\) of nodes 1 to 3 in element coordinates,
\[A = \frac{1}{2} \left| (x_2 - x_1)(y_3 - y_1) - (x_3 - x_1)(y_2 - y_1) \right|\]
- update_fint(self, double[: :1] fint, ShellProp prop, int nonlinear=0) void#
Update the internal force vector
The element internal forces, computed in element coordinates with
update_probe_finte(), are rotated to global coordinates and added tofintat the positions of the nodes,c1,c2andc3. Before this method is called,update_rotation_matrix(),update_probe_xe()andupdate_probe_ue()must have been used.- Parameters:
- fintarray-like
Array updated in place with the internal forces, in global coordinates.
update_probe_finte()is called to obtain the element-frame internal forces, available afterwards as.probe.finte. 1-D array of sizeDOF*M, with forces for the translations and moments (force times length) for the rotations.- prop
pyfe3d.shellprop.ShellProp Shell property.
- nonlinearint, optional
The default
0gives the linear internal forces,KC0*u. Any other value adds the geometrically nonlinear terms of the von Kármán strains, seeupdate_KCNL().
Notes
With
nonlinear=1the exact Jacobian of the internal forces isKC0 + KCNL + KG, seeupdate_KCNL().
- update_probe_finte(self, ShellProp prop, int nonlinear=0) void#
Update the internal force vector of the probe
The attribute
finteof theTria3DSGProbeis updated with the internal forces in element coordinates. Mind that the probe can be shared amongst more than one finite element, so it always holds the values of the last update.Before this method is called,
update_probe_xe()andupdate_probe_ue()must have been used.The attribute
KC0veof the probe is updated first, as inupdate_KC0(), the linear internal forces beingKC0vetimesue.- Parameters:
- prop
pyfe3d.shellprop.ShellProp Shell property.
- nonlinearint, optional
The default
0gives the linear internal forces,KC0*u. Any other value adds the geometrically nonlinear terms of the von Kármán strains, see_update_probe_finte_nonlinear()andupdate_KCNL().
- prop
Notes
With
nonlinear=1the exact Jacobian of the internal forces isKC0 + KCNL + KG, seeupdate_KCNL().
- update_probe_ue(self, double[: :1] u) void#
Update the element-frame nodal displacements in the probe
The displacements and rotations of the three nodes, read from
uat the positionsc1,c2andc3, are rotated to the element coordinate system with the transpose \(\boldsymbol{T}_{3\times 3}^\top\) of the transformation matrix and written toprobe.ue.update_rotation_matrix()must have been called before.- Parameters:
- uarray-like
Global displacement vector. 1-D array of size
DOF*M, forMnodes, with the six degrees-of-freedom of each node in sequence; translations with dimension of length and rotations dimensionless.
Notes
For each node, \(\{u, v, w\}_e^\top = \boldsymbol{T}_{3\times 3}^\top \{u, v, w\}^\top\) and \(\{r_x, r_y, r_z\}_e^\top = \boldsymbol{T}_{3\times 3}^\top \{r_x, r_y, r_z\}^\top\), with \(\boldsymbol{T}_{3\times 3}\) of
update_rotation_matrix(), whose columns are the element axes in global coordinates.
- update_probe_xe(self, double[: :1] x) void#
Update the element-frame nodal coordinates in the probe
The coordinates of the three nodes, read from
xat the positionsc1//2,c2//2andc3//2, are rotated to the element coordinate system with the transpose \(\boldsymbol{T}_{3\times 3}^\top\) of the transformation matrix and written toprobe.xe.update_rotation_matrix()must have been called before. Theareaattribute is not updated here, seeupdate_area().- Parameters:
- xarray-like
Global nodal coordinates. 1-D array of size
3*M, forMnodes, arranged asx_1, y_1, z_1, ..., x_M, y_M, z_M, dimension of length.
Notes
For each node, \(\{x, y, z\}_e^\top = \boldsymbol{T}_{3\times 3}^\top \{x, y, z\}^\top\), with \(\boldsymbol{T}_{3\times 3}\) of
update_rotation_matrix(), whose columns are the element axes in global coordinates.
- update_rotation_matrix(self, double[: :1] x, double xmati=0., double xmatj=0., double xmatk=0.) void#
Update the rotation matrix of the element
The element \(x\) axis runs from node 1 to node 2 and the element \(z\) axis is the triangle normal, which is the same construction used by
pyfe3d.tria3r.Tria3R.The attributes
r11, ..., r33are updated.m11, m12, m21, m22are first reset to the identity and, when the material direction is not the zero vector and not parallel to the element normal, set to the rotation from the material direction projected onto the element to the elementxaxis.- Parameters:
- xarray-like
Global nodal coordinates,
x_1, y_1, z_1, ..., x_M, y_M, z_M. 1-D array of size3*M, dimension of length. The coordinates of each node are read from the positionsc1//2,c2//2andc3//2.- xmati, xmatj, xmatkdouble, optional
Material direction in global coordinates, projected onto the element. Leaving it at zero means the material and element directions coincide. Only the direction of the vector is used. Default
0..
Notes
With \(\boldsymbol{v}_{12} = \boldsymbol{x}_2 - \boldsymbol{x}_1\) and \(\boldsymbol{v}_{13} = \boldsymbol{x}_3 - \boldsymbol{x}_1\), the element axes are
\[\boldsymbol{e}_x = \frac{\boldsymbol{v}_{12}}{\|\boldsymbol{v}_{12}\|}, \qquad \boldsymbol{e}_z = \frac{\boldsymbol{v}_{12} \times \boldsymbol{v}_{13}}{\|\boldsymbol{v}_{12} \times \boldsymbol{v}_{13}\|}, \qquad \boldsymbol{e}_y = \boldsymbol{e}_z \times \boldsymbol{e}_x\]and \(\boldsymbol{T}_{3\times 3} = [\boldsymbol{e}_x, \boldsymbol{e}_y, \boldsymbol{e}_z]\). The material direction \(\boldsymbol{x}_m\) is projected onto the element plane as \(\boldsymbol{x}_m' = (\boldsymbol{e}_z \times \boldsymbol{x}_m) \times \boldsymbol{e}_z\), normalized, and with \(\theta\) the angle from \(\boldsymbol{e}_x\) to \(\boldsymbol{x}_m'\), positive towards \(\boldsymbol{e}_y\), \(m_{11} = m_{22} = \cos\theta = \boldsymbol{x}_m' \cdot \boldsymbol{e}_x\), \(m_{21} = -m_{12} = \sin\theta\), the sign of \(\sin\theta\) being that of \(\boldsymbol{x}_m \cdot \boldsymbol{e}_y\). The material direction is ignored, and \(m\) left at the identity, when its norm, or the norm of \(\boldsymbol{e}_z \times \boldsymbol{x}_m\) after its normalization, is not larger than \(10^{-10} \|\boldsymbol{v}_{12} \times \boldsymbol{v}_{13}\|\).
Three details of this construction, shared with
pyfe3d.quad4.Quad4andpyfe3d.tria3r.Tria3R, matter; getting them wrong shows up as a mesh-independent error in the strain energy of a laminate with \(B \ne 0\), invisible for an isotropic plate:the material direction is projected onto the element plane and renormalized before the angle is taken. The raw dot product \(\boldsymbol{x}_m \cdot \boldsymbol{e}_x\) is the cosine scaled by the in-plane part of \(\boldsymbol{x}_m\), so \(m\) would not be a rotation matrix whenever \(\boldsymbol{x}_m\) has a component along the element normal;
\(\boldsymbol{x}_m \cdot \boldsymbol{e}_y > 0\) gives a negative \(m_{12}\), the rotation being from the material to the element coordinate system. The opposite convention silently mirrors every angle ply;
when \(\boldsymbol{x}_m\) is parallel to the element normal the projection is empty, and \(m\) is left at the identity, i.e. material and element directions coincide. This is the case of the normal of a flat mesh passed as the material direction, and it matters for triangles in particular, because the two triangles of a diagonally split cell have element frames 45 degrees apart, so a fallback that depends on the element frame would orient the laminate differently in each of them.
- class pyfe3d.tria3dsg.Tria3DSGData#
Sizes needed to allocate the sparse matrices
Each attribute is the number of entries that one
Tria3DSGwrites in the row, column and value arrays of the corresponding sparse matrix, starting at the position given by the matchinginit_k_*attribute of the element. Fornelements the arrays needntimes these sizes. The constructor takes no parameters.- Attributes:
- KC0_SPARSE_SIZE,int
KC0_SPARSE_SIZE = 324, the full 18 by 18 element matrix stored row by row.- KCNL_SPARSE_SIZE,int
KCNL_SPARSE_SIZE = 324, also the full element matrix stored row by row.- KG_SPARSE_SIZE,int
KG_SPARSE_SIZE = 81, the 9 by 9 block of the translational degrees-of-freedom.- M_SPARSE_SIZE,int
M_SPARSE_SIZE = 324
Notes
The nonlinear constitutive terms couple every degree-of-freedom, hence the full element matrix for KCNL. The geometric stiffness is the Donnell one, involving only the gradients of \(w\), hence the translational block for KG, see
Tria3DSG.update_KG_given_stress().- KC0_SPARSE_SIZE#
KC0_SPARSE_SIZE: ‘int’
- KCNL_SPARSE_SIZE#
KCNL_SPARSE_SIZE: ‘int’
- KG_SPARSE_SIZE#
KG_SPARSE_SIZE: ‘int’
- M_SPARSE_SIZE#
M_SPARSE_SIZE: ‘int’
- class pyfe3d.tria3dsg.Tria3DSGProbe#
Probe carrying the element-frame coordinates, displacements and operators
The idea behind using a probe is to avoid allocating one set of buffers per finite element. The buffers belong to the probe, and one probe can be shared amongst many elements, the contents being updated and read on demand. Mind that the probe always holds the values of the last update.
The constructor takes no parameters and allocates every array filled with zeros.
- Attributes:
- xe,array-like
Element-frame nodal coordinates,
x1, y1, z1, x2, ..., z3. Dimension of length. Updated byTria3DSG.update_probe_xe().- ue,array-like
Element-frame nodal displacements, 18 values, in the order \(u_1, v_1, w_1, {r_x}_1, {r_y}_1, {r_z}_1, u_2, \ldots, {r_z}_3\). Translations with dimension of length, rotations dimensionless. Updated by
Tria3DSG.update_probe_ue().- finte,array-like
Element-frame internal forces corresponding to
ue, 18 values, updated byTria3DSG.update_probe_finte(). Forces, and moments (force times length) for the rotations.- KC0ve,array-like
The 18 by 18 element-frame constitutive stiffness matrix stored row by row, 324 values. Updated by
Tria3DSG.update_KC0()andTria3DSG.update_probe_finte().- KCNLve,array-like
The 18 by 18 element-frame nonlinear stiffness matrix stored row by row, see
Tria3DSG.update_KCNL().- BLexx, BLeyy, BLgxyarray-like
Rows of 18 values giving the membrane strains \(\epsilon_{xx}, \epsilon_{yy}, \gamma_{xy}\). Their product with
uegives the membrane strains, dimensionless.- BLkxx, BLkyy, BLkxyarray-like
Rows of 18 values giving the curvatures \(\kappa_{xx}, \kappa_{yy}, \kappa_{xy}\). Their product with
uegives the curvatures, with dimension of one over length.- BLgxz, BLgyzarray-like
Rows of 18 values giving the transverse shear strains \(\gamma_{xz}, \gamma_{yz}\) of the discrete shear gap, symmetrised over the three starting nodes. Their product with
uegives the strains, dimensionless.BLdrillingarray-likeBLdrilling: ‘double[::1]’
- Sw_x, Sw_yarray-like
Rows of 18 values giving \(w_{,x}\) and \(w_{,y}\), used by the geometrically nonlinear terms.
Sw_xholds \(\boldsymbol{G}_x = \partial \boldsymbol{S}^w/\partial x\) andSw_yholds \(\boldsymbol{G}_y = \partial \boldsymbol{S}^w/\partial y\), the underscore denoting the partial derivative. Their products withueare dimensionless. The rows above are written by the methods ofTria3DSGthat compute stiffness matrices or internal forces.
Notes
Every one of these operators is constant over the triangle, because all three shape functions are linear, so each is formed once per element and no quadrature loop appears anywhere in this module except for the drilling term.
BLdrillingis the residual of the regularisation of Hughes and Brezzi [1], whose \(r_z\) part varies over the element; its stiffness is integrated exactly with the three-point rule, seeTria3DSG._update_probe_KC0ve().BLgxzandBLgyzare the discrete shear gap operators averaged over the three starting nodes, seeTria3DSG._update_probe_BL_G().References
[1]Hughes, T. J. R., and Brezzi, F., On drilling degrees of freedom, Computer Methods in Applied Mechanics and Engineering, 72(1), 105-121, 1989. https://doi.org/10.1016/0045-7825(89)90124-2
- BLdrilling#
BLdrilling: ‘double[::1]’
- BLexx#
BLexx: ‘double[::1]’
- BLeyy#
BLeyy: ‘double[::1]’
- BLgxy#
BLgxy: ‘double[::1]’
- BLgxz#
BLgxz: ‘double[::1]’
- BLgyz#
BLgyz: ‘double[::1]’
- BLkxx#
BLkxx: ‘double[::1]’
- BLkxy#
BLkxy: ‘double[::1]’
- BLkyy#
BLkyy: ‘double[::1]’
- KC0ve#
KC0ve: ‘double[::1]’
- KCNLve#
KCNLve: ‘double[::1]’
- Sw_x#
Sw_x: ‘double[::1]’
- Sw_y#
Sw_y: ‘double[::1]’
- finte#
finte: ‘double[::1]’
- ue#
ue: ‘double[::1]’
- xe#
xe: ‘double[::1]’
See also
The theory of the element, Tria3DSG: the discrete shear gap triangle, and of the shell elements, Shell elements: kinematics and formulation.