Shell property module (pyfe3d.shellprop)#
Classes of the material (MatLamina), of the ply (Lamina)
and of the shell property (ShellProp), of the lamination parameters
(LaminationParameters) and of their gradients (GradABD),
and functions that create a ShellProp from lamination parameters.
The shell elements of pyfe3d take their constitutive matrices from a
ShellProp. The functions of pyfe3d.shellprop_utils create
these objects from the ply data.
- class pyfe3d.shellprop.GradABD#
Container to store the gradients of the ABD matrix and of the constant-strain transverse shear stiffnesses with respect to the lamination parameters
Created with all gradients equal to zero, which are updated by
calc_LP_grad(). The object can be pickled.- Attributes:
- gradAij, gradBij, gradDij, gradAtsijdouble[:, ::1]
The shapes of these gradient matrices are:
gradAij: (6, 5) gradBij: (6, 5) gradDij: (6, 5) gradAtsij: (3, 3)
They contain the gradients of each laminate stiffness with respect to the thickness and respective lamination parameters. Column 0 has the dimension of the respective stiffness divided by a length and the other columns the dimension of the stiffness. The rows and columns correspond to:
gradAij: h xiA1 xiA2 xiA3 xiA4 A11 A12 A16 A22 A26 A66 gradBij: h xiB1 xiB2 xiB3 xiB4 B11 B12 B16 B22 B26 B66 gradDij: h xiD1 xiD2 xiD3 xiD4 D11 D12 D16 D22 D26 D66 gradAtsij: h xiAts1 xiAts2 Abar44 Abar45 Abar55
Methods
calc_LP_grad(self, double thickness, ...)Gradients of the shell stiffnesses with respect to the thickness and lamination parameters
- calc_LP_grad(self, double thickness, MatLamina mat, LaminationParameters lp, double offset=0.) void#
Gradients of the shell stiffnesses with respect to the thickness and lamination parameters
Updates
gradAij,gradBij,gradDijandgradAtsijwith the derivatives of the stiffnesses computed byshellprop_from_LaminationParameters()fromthickness, from the invariantsu1tou7ofmat, from the lamination parameters oflpand fromoffset; column 0 contains the derivatives with respect to the thickness, at constant lamination parameters andoffset. The entries[0, 2],[1, 1]and[2, 2]ofgradAtsij, which do not depend on the lamination parameters, are not updated. All six rows ofgradAij,gradBijandgradDijare updated, including row 5 (A66,B66,D66).- Parameters:
- thicknessfloat
The total thickness of the laminate, length
- mat
MatLaminaobject Material object
- lp
LaminationParametersobject The container class with all lamination parameters already defined
- offsetfloat, optional
Offset of the mid-surface from the reference surface, about which the lamination parameters are defined, see
shellprop_from_LaminationParameters(). Length. Default0..
- Returns:
- None
The attributes of the object are updated.
Notes
The stiffnesses of
shellprop_from_LaminationParameters()are \(A = h \, U \{1, \xi_A\}\), \(B = h e \, U \{1, 0\} + h^2/4 \, U \{0, \xi_B\}\), \(D = (h^3/12 + h e^2) \, U \{1, 0\} + h^3/12 \, U \{0, \xi_D\}\) and \(\bar{A}_{ts} = h \, U_{ts} \{1, \xi_{Ats}\}\), with \(e\) =offset, \(U\) the rows of the in-plane terms ofMatLamina.get_invariant_matrix()and \(U_{ts}\) those of the transverse shear terms. At constant lamination parameters and offset, \(\partial A/\partial h = U \{1, \xi_A\}\), \(\partial B/\partial h = e \, U \{1, 0\} + h/2 \, U \{0, \xi_B\}\), \(\partial D/\partial h = (h^2/4 + e^2) \, U \{1, 0\} + h^2/4 \, U \{0, \xi_D\}\) and \(\partial \bar{A}_{ts}/\partial h = U_{ts} \{1, \xi_{Ats}\}\), and at constant thickness the derivatives with respect to the lamination parameters are the columns of \(U\) multiplied by \(h\), \(h^2/4\) and \(h^3/12\), respectively, and those of \(U_{ts}\) by \(h\); e.g. the derivatives of \(A_{66}\), \(B_{66}\) and \(D_{66}\) with respect to \(\xi_{A3}\), \(\xi_{B3}\) and \(\xi_{D3}\) are \(-h u_3\), \(-h^2/4 \, u_3\) and \(-h^3/12 \, u_3\).
- gradAij#
gradAij: ‘double[:, ::1]’
- gradAtsij#
gradAtsij: ‘double[:, ::1]’
- gradBij#
gradBij: ‘double[:, ::1]’
- gradDij#
gradDij: ‘double[:, ::1]’
- class pyfe3d.shellprop.Lamina#
Ply of a laminate
Created with all attributes equal to zero and
matlaminaequal toNone. Aftermatlamina,handthetadegare set,rebuild()computes the trigonometric terms of the ply angle and the ply stiffnessesq11Ltoq55Lin the laminate axes. Usually created bylaminated_plate().- Attributes:
plyidintplyid: ‘int’
matlaminaMatLaminaobjectmatlamina: pyfe3d.shellprop.MatLamina
hfloath: ‘double’
thetadegfloatthetadeg: ‘double’
- cost, sintfloat
Cosine and sine of the ply angle, dimensionless, computed by
rebuild()- cos2t, sin2t, cos4t, sin4tfloat
Cosine and sine of two and four times the ply angle, dimensionless, computed by
rebuild()- q11L, q12L, q16L, q22L, q26L, q66Lfloat
Plane-stress stiffnesses of the ply in the laminate axes, force per unit area, computed by
rebuild()- q44L, q45L, q55Lfloat
Transverse shear stiffnesses of the ply in the laminate axes, force per unit area, computed by
rebuild()
Methods
get_constitutive_matrix(self)Return the constitutive matrix
Return displacement transformation matrix from laminate to lamina
Return stress transformation matrix from laminate to lamina
Return stress transformation matrix from lamina to laminate
rebuild(self)Update constitutive matrices
- cos2t#
cos2t: ‘double’
- cos4t#
cos4t: ‘double’
- cost#
cost: ‘double’
- get_constitutive_matrix(self) double[:, ::1]#
Return the constitutive matrix
Builds the symmetric matrix of the ply stiffnesses in the laminate axes computed by
rebuild(),[[q11L, q12L, q16L, 0, 0], [q12L, q22L, q26L, 0, 0], [q16L, q26L, q66L, 0, 0], [0, 0, 0, q44L, q45L], [0, 0, 0, q45L, q55L]].- Returns:
- Cdouble[:, ::1]
Memoryview of shape
(5, 5), force per unit area.
- get_transf_matrix_displ_to_lamina(self) double[:, ::1]#
Return displacement transformation matrix from laminate to lamina
Builds
[[cost, sint, 0], [-sint, cost, 0], [0, 0, 1]]from the terms computed byrebuild(), which maps the displacement components in the laminate axes to those in the material axes of the ply.- Returns:
- Tdouble[:, ::1]
Memoryview of shape
(3, 3), dimensionless.
Notes
With the ply angle \(\theta\) measured from the laminate \(x\) axis to the material direction 1, as in the stiffnesses of
rebuild(), the material direction 1 is \(\{\cos\theta, \sin\theta, 0\}\) in the laminate axes, such that \(\{u_1, u_2, u_3\}^\top = T \{u_x, u_y, u_z\}^\top\). The matrix is orthogonal, and its transpose maps the material components back to the laminate axes.
- get_transf_matrix_stress_to_lamina(self) double[:, ::1]#
Return stress transformation matrix from laminate to lamina
Builds the matrix from the terms
cost,sintandsin2tcomputed byrebuild(), such that \(\{\sigma_{11}, \sigma_{22}, \sigma_{33}, \tau_{23}, \tau_{13}, \tau_{12}\}^\top = T \{\sigma_{xx}, \sigma_{yy}, \sigma_{zz}, \tau_{yz}, \tau_{xz}, \tau_{xy}\}^\top\), with the material axes 1, 2, 3 and the laminate axes \(x\), \(y\), \(z\).- Returns:
- Tdouble[:, ::1]
Memoryview of shape
(6, 6), dimensionless.
See also
Notes
With the stress components ordered as \(\{\sigma_{xx}, \sigma_{yy}, \sigma_{zz}, \tau_{yz}, \tau_{xz}, \tau_{xy}\}\), the order of
MatLamina.get_constitutive_matrix(), the matrix is the transformation of the stresses from the laminate axes to the material axes for a rotation by the ply angle \(\theta\) about \(z\), e.g. \(\sigma_{11} = \cos^2\theta \sigma_{xx} + \sin^2\theta \sigma_{yy} + \sin 2\theta \tau_{xy}\) [1]. Its inverse,get_transf_matrix_stress_to_laminate(), is the same matrix for \(-\theta\).References
[1]Reddy, J. N., Mechanics of Laminated Composite Plates and Shells: Theory and Analysis, Second Edition, CRC Press, 2003. https://doi.org/10.1201/b12409
- get_transf_matrix_stress_to_laminate(self) double[:, ::1]#
Return stress transformation matrix from lamina to laminate
Builds the matrix from the terms
cost,sintandsin2tcomputed byrebuild(), with the opposite sign of all the terms insintandsin2twith respect toget_transf_matrix_stress_to_lamina(), such that \(\{\sigma_{xx}, \sigma_{yy}, \sigma_{zz}, \tau_{yz}, \tau_{xz}, \tau_{xy}\}^\top = T \{\sigma_{11}, \sigma_{22}, \sigma_{33}, \tau_{23}, \tau_{13}, \tau_{12}\}^\top\), with the material axes 1, 2, 3 and the laminate axes \(x\), \(y\), \(z\).- Returns:
- Tdouble[:, ::1]
Memoryview of shape
(6, 6), dimensionless.
See also
Notes
It is the inverse of
get_transf_matrix_stress_to_lamina(), i.e. the transformation of the stresses from the material axes to the laminate axes, obtained by replacing the ply angle \(\theta\) by \(-\theta\).
- h#
h: ‘double’
- matlamina#
matlamina: pyfe3d.shellprop.MatLamina
- plyid#
plyid: ‘int’
- q11L#
q11L: ‘double’
- q12L#
q12L: ‘double’
- q16L#
q16L: ‘double’
- q22L#
q22L: ‘double’
- q26L#
q26L: ‘double’
- q44L#
q44L: ‘double’
- q45L#
q45L: ‘double’
- q55L#
q55L: ‘double’
- q66L#
q66L: ‘double’
- rebuild(self) void#
Update constitutive matrices
Computes
cost,sint,cos2t,sin2t,cos4tandsin4tfromthetadeg, and the ply stiffnessesq11Ltoq55Lin the laminate axes from the plane-stress stiffnesses ofmatlaminain the material axes, which are computed from itse1,e2,nu12,nu21,g12,g13andg23.Notes
The plane-stress reduced stiffnesses in the material axes are
\[Q_{11} = \frac{e_1}{1 - \nu_{12}\nu_{21}}, \quad Q_{12} = \frac{\nu_{12} e_2}{1 - \nu_{12}\nu_{21}}, \quad Q_{22} = \frac{e_2}{1 - \nu_{12}\nu_{21}}, \quad Q_{66} = g_{12}, \quad Q_{44} = g_{23}, \quad Q_{55} = g_{13}\]such that
e3,nu13andnu23are not used, and thermal expansion is not considered. With \(c = \cos\theta\) and \(s = \sin\theta\), \(\theta\) being the ply angle, the stiffnesses in the laminate axes are [1]:\[\begin{split}q_{11L} = Q_{11} c^4 + 2 (Q_{12} + 2 Q_{66}) s^2 c^2 + Q_{22} s^4 \\ q_{12L} = (Q_{11} + Q_{22} - 4 Q_{66}) s^2 c^2 + Q_{12} (s^4 + c^4) \\ q_{22L} = Q_{11} s^4 + 2 (Q_{12} + 2 Q_{66}) s^2 c^2 + Q_{22} c^4 \\ q_{16L} = (Q_{11} - Q_{12} - 2 Q_{66}) s c^3 + (Q_{12} - Q_{22} + 2 Q_{66}) s^3 c \\ q_{26L} = (Q_{11} - Q_{12} - 2 Q_{66}) s^3 c + (Q_{12} - Q_{22} + 2 Q_{66}) s c^3 \\ q_{66L} = (Q_{11} + Q_{22} - 2 Q_{12} - 2 Q_{66}) s^2 c^2 + Q_{66} (s^4 + c^4) \\ q_{44L} = Q_{44} c^2 + Q_{55} s^2, \quad q_{45L} = (Q_{55} - Q_{44}) s c, \quad q_{55L} = Q_{55} c^2 + Q_{44} s^2\end{split}\]References
[1]Reddy, J. N., Mechanics of Laminated Composite Plates and Shells: Theory and Analysis, Second Edition, CRC Press, 2003. https://doi.org/10.1201/b12409
- sin2t#
sin2t: ‘double’
- sin4t#
sin4t: ‘double’
- sint#
sint: ‘double’
- thetadeg#
thetadeg: ‘double’
- class pyfe3d.shellprop.LaminationParameters#
Lamination parameters
Container of the 14 lamination parameters, all dimensionless and initialized to zero. It is returned by
ShellProp.calc_lamination_parameters()and used byshellprop_from_LaminationParameters()andGradABD.calc_LP_grad().- Attributes:
- xiA1, xiA2, xiA3, xiA4float
Lamination parameters \(\xi_{Ai}\) (in-plane), dimensionless
- xiB1, xiB2, xiB3, xiB4float
Lamination parameters \(\xi_{Bi}\) (in-plane coupling with bending), dimensionless
- xiD1, xiD2, xiD3, xiD4float
Lamination parameters \(\xi_{Di}\) (bending), dimensionless
- xiAts1, xiAts2float
Lamination parameters \(\xi_{Ats,i}\) (transverse shear), dimensionless
Notes
The lamination parameters are defined in
ShellProp.calc_lamination_parameters(), and the stiffnesses that they give inshellprop_from_LaminationParameters().- xiA1#
xiA1: ‘double’
- xiA2#
xiA2: ‘double’
- xiA3#
xiA3: ‘double’
- xiA4#
xiA4: ‘double’
- xiAts1#
xiAts1: ‘double’
- xiAts2#
xiAts2: ‘double’
- xiB1#
xiB1: ‘double’
- xiB2#
xiB2: ‘double’
- xiB3#
xiB3: ‘double’
- xiB4#
xiB4: ‘double’
- xiD1#
xiD1: ‘double’
- xiD2#
xiD2: ‘double’
- xiD3#
xiD3: ‘double’
- xiD4#
xiD4: ‘double’
- class pyfe3d.shellprop.MatLamina#
Orthotropic material lamina
Container of the elastic, thermal, density and strength properties of a material, created with all attributes equal to zero, except
plane_stress = True. After the elastic properties are set,rebuild()computes the constitutive constantsq11toq66, the stiffness constantsc11toc66and the invariantsu1tou7, all with the dimension of force per unit area;trace_normalize_plane_stress()divides some of them by the trace, such that they become dimensionless. Usually created byread_laminaprop(). By default, the constitutive constants and the invariants are those of plane stress, used by the shell elements, also whene3,nu13andnu23are given, seerebuild().- Attributes:
e1floate1: ‘double’
e2floate2: ‘double’
e3floate3: ‘double’
g12floatg12: ‘double’
g13floatg13: ‘double’
g23floatg23: ‘double’
nu12floatnu12: ‘double’
nu13floatnu13: ‘double’
nu23floatnu23: ‘double’
nu21floatnu21: ‘double’
nu31floatnu31: ‘double’
nu32floatnu32: ‘double’
rhofloatrho: ‘double’
a1floata1: ‘double’
a2floata2: ‘double’
a3floata3: ‘double’
treffloattref: ‘double’
- st1,st2float
allowable tensile stresses for directions 1 and 2, force per unit area
- sc1,sc2float
allowable compressive stresses for directions 1 and 2, force per unit area
ss12floatss12: ‘double’
- plane_stressbool
Truewhen the constitutive constants and the invariants are those of plane stress,Falsewhen they are three-dimensional, as selected in the last call ofrebuild(). Read-only.q11floatq11: ‘double’
q12floatq12: ‘double’
q13floatq13: ‘double’
q21floatq21: ‘double’
q22floatq22: ‘double’
q23floatq23: ‘double’
q31floatq31: ‘double’
q32floatq32: ‘double’
q33floatq33: ‘double’
q44floatq44: ‘double’
q55floatq55: ‘double’
q66floatq66: ‘double’
- c11, c12, c13, c22, c23, c33, c44, c55, c66float
lamina stiffness constants
- u1, u2, u3, u4, u5, u6, u7float
lamina material invariants
Methods
get_constitutive_matrix(self)Return the constitutive matrix
get_invariant_matrix(self)Return the invariant matrix
rebuild(self, bool plane_stress=True)Update constitutive and invariant terms
Trace-normalize the lamina properties for plane stress
Notes
MatLaminarecomputes neither \(G\) nor \(E\):rebuild()uses the moduli and the Poisson’s ratios as they are set. For an isotropic material given aslaminaprop = (e, nu),read_laminaprop()setsg12 = g13 = g23 = e/(2*(1 + nu)), i.e. \(G = E/(2(1 + \nu))\); with 6 or 9 entries oflaminapropthe shear moduli are taken as given. Otherwise, the user must set the shear moduli consistently with \(E\) and \(\nu\).- a1#
a1: ‘double’
- a2#
a2: ‘double’
- a3#
a3: ‘double’
- c11#
c11: ‘double’
- c12#
c12: ‘double’
- c13#
c13: ‘double’
- c22#
c22: ‘double’
- c23#
c23: ‘double’
- c33#
c33: ‘double’
- c44#
c44: ‘double’
- c55#
c55: ‘double’
- c66#
c66: ‘double’
- e1#
e1: ‘double’
- e2#
e2: ‘double’
- e3#
e3: ‘double’
- g12#
g12: ‘double’
- g13#
g13: ‘double’
- g23#
g23: ‘double’
- get_constitutive_matrix(self) double[:, ::1]#
Return the constitutive matrix
Builds the symmetric matrix of the stiffness constants
c11toc66computed byrebuild(), with the rows and columns ordered as 11, 22, 33, 23, 13, 12 (c44 = g23,c55 = g13,c66 = g12).- Returns:
- Cdouble[:, ::1]
Memoryview of shape
(6, 6), force per unit area.
- get_invariant_matrix(self) double[:, ::1]#
Return the invariant matrix
Builds the matrix of the invariants
u1tou7computed byrebuild(). The rows correspond toq11,q22,q12,q66,q16,q26,q44,q45,q55and the columns to the factors of1and of the lamination parameters, in the same combinations used byshellprop_from_LaminationParameters().- Returns:
- Udouble[:, ::1]
Memoryview of shape
(9, 5), force per unit area.
Notes
The stiffnesses of a ply at the angle \(\theta\) in the laminate axes, see
Lamina.rebuild(), are linear in \(\cos 2\theta\), \(\sin 2\theta\), \(\cos 4\theta\) and \(\sin 4\theta\), with the invariants ofrebuild()as coefficients [1]:\[\{q_{11L}, q_{22L}, q_{12L}, q_{66L}, q_{16L}, q_{26L}, q_{44L}, q_{45L}, q_{55L}\}^\top = U \{1, \cos 2\theta, \sin 2\theta, \cos 4\theta, \sin 4\theta\}^\top\]where \(q_{ijL}\) are the plane-stress stiffnesses of
Lamina.rebuild()whenu1tou5are computed from the plane-stress reduced stiffnesses, i.e. withplane_stress=True, the default ofrebuild(), for anye3(Jones [1], Sec. 2.7, Eq. (2.98), p. 85), and the components of the three-dimensional stiffness matrix rotated about the 3 axis afterrebuild(plane_stress=False). Integrated through the thickness, the trigonometric terms give the lamination parameters, seeshellprop_from_LaminationParameters().References
- nu12#
nu12: ‘double’
- nu13#
nu13: ‘double’
- nu21#
nu21: ‘double’
- nu23#
nu23: ‘double’
- nu31#
nu31: ‘double’
- nu32#
nu32: ‘double’
- q11#
q11: ‘double’
- q12#
q12: ‘double’
- q13#
q13: ‘double’
- q21#
q21: ‘double’
- q22#
q22: ‘double’
- q23#
q23: ‘double’
- q31#
q31: ‘double’
- q32#
q32: ‘double’
- q33#
q33: ‘double’
- q44#
q44: ‘double’
- q55#
q55: ‘double’
- q66#
q66: ‘double’
- rebuild(self, bool plane_stress=True) void#
Update constitutive and invariant terms
Computes, from the moduli
e1,e2,e3,g12,g13,g23and the Poisson’s ratiosnu12,nu21,nu13,nu31,nu23,nu32, the stiffness constantsc11toc66, the constitutive constantsq11toq66and the invariantsu1tou7, with the dimension of force per unit area. The moduli may be zero, e.g.e1 = e2 = g12 = 0for an antiplane core, seeread_laminaprop()and the Notes.- Parameters:
- plane_stressbool, optional
True(default):q11toq33and the invariantsu1tou5are those of plane stress, \(\sigma_{33} = 0\), which the shell elements use, whether or note3,nu13andnu23are given.False: they are three-dimensional, e.g. for continuum shell elements, see the Notes. The choice is stored in the attributeplane_stress. The stiffness constantsc11toc66are three-dimensional in both cases.
- Raises:
- ValueError
If the constants are not those of a positive-definite material, see the Notes. The message names the violated conditions and their values.
Notes
The constants must be those of a positive-definite material (Jones [3], Sec. 2.4.2, pp. 68-69): \(e_1, e_2, e_3, g_{23}, g_{13}, g_{12} \ge 0\), Eq. (2.45), whose strict inequality is relaxed to admit the limits of an antiplane core, zero \(e_1\), \(e_2\) and \(g_{12}\), and of a ply with a singular transverse shear stiffness, zero \(g_{13}\) or \(g_{23}\); \(|\nu_{ij}| < (e_i/e_j)^{1/2}\) for \(e_j > 0\), Eq. (2.51), i.e. \(\nu_{ij} = 0\) for \(e_i = 0 < e_j\); and \(\Delta = 1 - \nu_{12}\nu_{21} - \nu_{23}\nu_{32} - \nu_{31}\nu_{13} - 2\nu_{21}\nu_{32}\nu_{13} > 0\), Eq. (2.48). With \(e_3 = 0\), as given by
read_laminaprop()for 2 or 6 entries, \(\nu_{31} = \nu_{32} = 0\) and only the in-plane conditions remain, \(\Delta = 1 - \nu_{12}\nu_{21}\). E.g. \(e_2 = e_3\) with \(\nu_{23} = 1\), which would give a negative \(c_{22}\), is rejected.With
plane_stress=True, the default, the constitutive constants are the plane-stress reduced stiffnesses of Jones [3], Sec. 2.5, Eq. (2.66), p. 72, and of Reddy [1], Sec. 2.4, Eq. (2.4.4), p. 101:\[\begin{split}q_{11} = \frac{e_1}{1 - \nu_{12}\nu_{21}}, \quad q_{12} = q_{21} = \frac{\nu_{21} e_1}{1 - \nu_{12}\nu_{21}}, \quad q_{22} = \frac{e_2}{1 - \nu_{12}\nu_{21}} \\ q_{44} = g_{23}, \quad q_{55} = g_{13}, \quad q_{66} = g_{12}\end{split}\]and \(q_{13} = q_{23} = q_{31} = q_{32} = q_{33} = 0\). They follow from the three-dimensional stiffnesses with \(\sigma_{33} = 0\), \(q_{ij} = c_{ij} - c_{i3} c_{j3}/c_{33}\), \(i, j = 1, 2\) (Jones [3], Eq. (2.64), p. 72), and do not depend on
e3,nu13andnu23: “the reduced stiffnesses involve six independent engineering constants: \(E_1\), \(E_2\), \(\nu_{12}\), \(G_{12}\), \(G_{13}\), and \(G_{23}\)” (Reddy [1], p. 101). They are the stiffnesses ofLamina.rebuild(), such thatshellprop_from_LaminationParameters()with the lamination parameters ofShellProp.calc_lamination_parameters()gives the \(A_{ij}\), \(B_{ij}\) and \(D_{ij}\) oflaminated_plate()for anylaminaprop.With
plane_stress=Falseand \(\Delta = 1 - \nu_{12}\nu_{21} - \nu_{13}\nu_{31} - \nu_{23}\nu_{32} - \nu_{12}\nu_{23}\nu_{31} - \nu_{13}\nu_{21}\nu_{32}\), the constitutive constants are the three-dimensional stiffnesses of the orthotropic material in its principal axes [2]:\[\begin{split}q_{11} = e_1 (1 - \nu_{23}\nu_{32})/\Delta, \quad q_{12} = e_1 (\nu_{21} + \nu_{23}\nu_{31})/\Delta, \quad q_{13} = e_1 (\nu_{31} + \nu_{21}\nu_{32})/\Delta \\ q_{21} = e_2 (\nu_{12} + \nu_{13}\nu_{32})/\Delta, \quad q_{22} = e_2 (1 - \nu_{13}\nu_{31})/\Delta, \quad q_{23} = e_2 (\nu_{32} + \nu_{12}\nu_{31})/\Delta \\ q_{31} = e_3 (\nu_{13} + \nu_{12}\nu_{23})/\Delta, \quad q_{32} = e_3 (\nu_{23} + \nu_{13}\nu_{21})/\Delta, \quad q_{33} = e_3 (1 - \nu_{12}\nu_{21})/\Delta \\ q_{44} = g_{23}, \quad q_{55} = g_{13}, \quad q_{66} = g_{12}\end{split}\]which are symmetric, \(q_{ij} = q_{ji}\), when the Poisson’s ratios satisfy the reciprocity \(\nu_{ij}/e_i = \nu_{ji}/e_j\), see
read_laminaprop(); the matrix of \(q_{ij}\), \(i, j = 1, 2, 3\), is then the inverse of the upper-left block of the compliance matrix given below, i.e. \(q_{ij} = c_{ij}\). With \(e_3 = 0\), as given byread_laminaprop()for 2 or 6 entries, \(\nu_{31} = \nu_{32} = 0\) and they are equal to the plane-stress ones.The stiffness constants are computed with \(\delta = (1 - \nu_{12}\nu_{21} - \nu_{23}\nu_{32} - \nu_{31}\nu_{13} - 2\nu_{21}\nu_{32}\nu_{13})/(e_1 e_2)\) [1]:
\[\begin{split}c_{11} = (1 - \nu_{23}\nu_{32})/(\delta e_2), \quad c_{12} = (\nu_{21} + \nu_{31}\nu_{23})/(\delta e_2), \quad c_{13} = (\nu_{31} + \nu_{21}\nu_{32})/(\delta e_2) \\ c_{22} = (1 - \nu_{13}\nu_{31})/(\delta e_1), \quad c_{23} = (\nu_{32} + \nu_{12}\nu_{31})/(\delta e_1), \quad c_{33} = e_3 (1 - \nu_{12}\nu_{21})/(\delta e_1 e_2) \\ c_{44} = g_{23}, \quad c_{55} = g_{13}, \quad c_{66} = g_{12}\end{split}\]With the reciprocity, \(\delta e_1 e_2 = \Delta\) and \(c_{ij} = q_{ij}\). The matrix of the stiffness constants, see
get_constitutive_matrix(), is then the inverse of the orthotropic compliance matrix, with \(S_{11} = 1/e_1\), \(S_{22} = 1/e_2\), \(S_{33} = 1/e_3\), \(S_{12} = -\nu_{12}/e_1\), \(S_{13} = -\nu_{13}/e_1\), \(S_{23} = -\nu_{23}/e_2\), \(S_{44} = 1/g_{23}\), \(S_{55} = 1/g_{13}\) and \(S_{66} = 1/g_{12}\) [1].A zero modulus is the limit of a positive-definite material, where the stiffnesses stay finite while the compliances diverge. With \(e_1 = 0\) or \(e_2 = 0\), the stiffness constants are computed as \(c_{11} = e_1 (1 - \nu_{23}\nu_{32})/(\delta e_1 e_2)\), …, \(c_{33} = e_3 (1 - \nu_{12}\nu_{21})/(\delta e_1 e_2)\), with \(\delta e_1 e_2 = 1 - \nu_{12}\nu_{21} - \nu_{23}\nu_{32} - \nu_{31}\nu_{13} - 2\nu_{21}\nu_{32}\nu_{13}\), the same values without dividing by the moduli, and
ValueErroris raised if this determinant is not positive; the compliance matrix is then undefined and the stiffness matrix singular. E.g. an antiplane core given as(0, 0, nu12, 0, g13, g23, e3, 0, 0), seeread_laminaprop(), has \(c_{33} = e_3\), \(c_{44} = g_{23}\), \(c_{55} = g_{13}\) and all other constants zero, and its plane-stress \(q_{11} = q_{12} = q_{22} = q_{66} = 0\) and \(u_1 = \dots = u_5 = 0\), such that it adds only transverse shear stiffness to a laminate.The invariants \(u_1\) to \(u_5\) are those of Tsai and Pagano, as given by Jones [3], Sec. 2.7, Eq. (2.99), p. 86, and \(u_6\), \(u_7\) the transverse shear invariants of the ABAQUS manual [4]:
\[\begin{split}u_1 = (3 q_{11} + 3 q_{22} + 2 q_{12} + 4 q_{66})/8, \quad u_2 = (q_{11} - q_{22})/2 \\ u_3 = (q_{11} + q_{22} - 2 q_{12} - 4 q_{66})/8, \quad u_4 = (q_{11} + q_{22} + 6 q_{12} - 4 q_{66})/8 \\ u_5 = (u_1 - u_4)/2, \quad u_6 = (q_{44} + q_{55})/2, \quad u_7 = (q_{44} - q_{55})/2\end{split}\]They give the stiffnesses of a ply at any angle, see
get_invariant_matrix().With
plane_stress=True, the invariants are those of the plane-stress reduced stiffnesses, as in Jones [3], and give the plane-stress stiffnesses \(q_{ijL}\) of the ply in the laminate axes ofLamina.rebuild(), Jones [3], Eqs. (2.85) and (2.98), pp. 77 and 85. This is what the shell elements need, since the stress resultants of the laminate integrate the plane-stress \(q_{ijL}\) (Jones [3], Eq. (4.24), p. 198; Reddy [1], Eq. (3.3.38), p. 128).With
plane_stress=Falseand \(e_3 \ne 0\), \(q_{11}\), \(q_{12}\), \(q_{22}\) are the three-dimensional stiffnesses \(c_{11}\), \(c_{12}\), \(c_{22}\), and the invariants give the components 11, 22, 12, 66, 16, 26, 44, 45 and 55 of the three-dimensional stiffness matrix ofget_constitutive_matrix()rotated by the ply angle about the 3 axis, whose in-plane components transform with the same formulas as the plane-stress ones (Tsai [5], Sec. 3.3). They are stiffer than the plane-stress \(q_{ijL}\), e.g. \(\lambda + 2\mu = E (1 - \nu)/((1 + \nu)(1 - 2\nu))\) instead of \(E/(1 - \nu^2)\) for an isotropic material, and are meant for three-dimensional properties, e.g. for continuum shell elements integrated with a user material (UMAT), not for the shell elements of pyfe3d.References
[1] (1,2,3,4,5)Reddy, J. N., Mechanics of Laminated Composite Plates and Shells: Theory and Analysis, Second Edition, CRC Press, 2003. https://doi.org/10.1201/b12409
[2]Gürdal, Z., Haftka, R. T. and Hajela, P., Design and Optimization of Laminated Composite Materials, Wiley-Interscience, 1999.
[3] (1,2,3,4,5,6,7)Jones, R. M., Mechanics of Composite Materials, Second Edition, Taylor & Francis, Philadelphia, 1999.
[4]ABAQUS Example Problems Manual, Vol. 1, Example 1.2.2, Laminated composite shell: buckling of a cylindrical panel with a circular hole.
[5]Tsai, S. W., Theory of Composites Design, 2008, Sec. 3.3, Transformation in three dimensions.
- rho#
rho: ‘double’
- sc1#
sc1: ‘double’
- sc2#
sc2: ‘double’
- ss12#
ss12: ‘double’
- st1#
st1: ‘double’
- st2#
st2: ‘double’
- trace_normalize_plane_stress(self) void#
Trace-normalize the lamina properties for plane stress
Modify the original
MatLaminaobject with a trace-normalization: the constitutive constantsq11,q12,q22,q44,q55,q66and the invariantsu1tou7are divided by the tracetr = q11 + q22 + 2*q66, such that they become dimensionless trace-normalized values. These can be accessed using the same attributes. The other attributes are not modified.- Raises:
- ValueError
If
plane_stressisFalse, i.e. afterrebuild(plane_stress=False), since the trace is defined with the plane-stress stiffnesses, or if the trace is not positive, e.g. zero for an antiplane core, whose in-plane stiffnesses vanish.
Notes
The trace is calculated according to Eq. (1), p. 45, of Melo et al. [1], \(tr = Q_{11} + Q_{22} + 2Q_{66}\), the trace of the plane-stress stiffness matrix, with the plane-stress reduced stiffnesses of
rebuild(), also whene3is given, i.e. \(tr = (e_1 + e_2)/(1 - \nu_{12}\nu_{21}) + 2 g_{12}\). The universal in-plane stress stiffness components \(Q_{11},Q_{12},Q_{22},Q_{44},Q_{55},Q_{66}\) are divided by \(tr\), and the invariants \(U_1,U_2,U_3,U_4,U_5,U_6,U_7\) are calculated with the normalized stiffnesses, such they also become trace-normalized invariants; since the invariants are linear in the stiffnesses, they are divided by \(tr\) as well. The trace does not depend on the ply angle, since \(q_{11L} + q_{22L} + 2 q_{66L} = 2(u_1 + u_5)\), seeget_invariant_matrix()and Jones [2], Sec. 2.7, Eq. (2.98), p. 85. Since the stiffnesses ofshellprop_from_LaminationParameters()are linear in the invariants, those computed with the trace-normalized invariants are the ones oflaminated_plate()divided by \(tr\).References
[1]Melo, J. D. D., Bi, J., and Tsai, S. W., A Novel Invariant-Based Design Approach to Carbon Fiber Reinforced Laminates, Composite Structures, 159, 44-52, 2017. https://doi.org/10.1016/j.compstruct.2016.09.055
[2]Jones, R. M., Mechanics of Composite Materials, Second Edition, Taylor & Francis, Philadelphia, 1999.
- tref#
tref: ‘double’
- u1#
u1: ‘double’
- u2#
u2: ‘double’
- u3#
u3: ‘double’
- u4#
u4: ‘double’
- u5#
u5: ‘double’
- u6#
u6: ‘double’
- u7#
u7: ‘double’
- class pyfe3d.shellprop.ShellProp#
Shell property, with its stiffnesses and mass integrals
Created with
offset = 0,plies = [],stack = [],shear_correction = 'rohwer',scf_k13 = scf_k23 = 5/6and all other attributes equal to zero. Afterplies, a list ofLaminaobjects from the bottom to the top face, andoffsetare set,calc_constitutive_matrix()computesh, the stiffnesses and the mass integrals, andcalc_equivalent_properties()the equivalent moduli. The stiffnesses are thickness integrals of the ply stiffnessesqijLofLamina, with \(z\) measured from the reference surface. Usually created bylaminated_plate(),isotropic_plate()orshellprop_from_LaminationParameters(). The matrices in an element coordinate system are given bycalc_constitutive_element()andcalc_Ats_element().The object can be pickled: the public attributes and the coefficients used for the transverse shear stiffness in the element coordinate system are saved, and the through-thickness transverse shear distribution used by
calc_transverse_shear_stress()is recomputed when needed.- Attributes:
plieslistplies: list
stackliststack: list
hfloath: ‘double’
offsetfloatoffset: ‘double’
- e1, e2float
Equivalent laminate moduli in directions 1 and 2, force per unit area
g12floatg12: ‘double’
- nu12, nu21float
Equivalent laminate Poisson ratios in the 12 and 21 directions, dimensionless
- A11, A12, A16, A22, A26, A66float
Membrane stiffnesses \(\int q_{ijL} dz\), force per unit length
- B11, B12, B16, B22, B26, B66float
Membrane-bending coupling stiffnesses \(\int q_{ijL} z dz\), force
- D11, D12, D16, D22, D26, D66float
Bending stiffnesses \(\int q_{ijL} z^2 dz\), force times length
- A44, A45, A55float
Transverse shear stiffnesses of the first-order shear deformation theory (FSDT) in the material coordinate system, with the shear correction already applied according to
shear_correction. The elements use them directly, without any shear correction factor. Seecalc_transverse_shear_stiffness()andcalc_Ats_element()for how they are brought to the element coordinate system. Force per unit length.- Abar44, Abar45, Abar55float
Constant-strain (uncorrected) transverse shear stiffnesses \(\bar{A}_{ts} = \sum_k C_s^{(k)} h_k\). Force per unit length.
- Abarbar44, Abarbar45, Abarbar55float
Constant-stress transverse shear stiffnesses \(\bar{\bar{A}}_{ts} = h^2 [\sum_k (C_s^{(k)})^{-1} h_k]^{-1}\), for comparison only. Equal to
nanwhen a ply has a singular \(C_s^{(k)}\). Force per unit length.shear_correctionstr or Noneshear_correction: object
- scf_k13, scf_k23float
Reported shear correction ratios
A55/Abar55andA44/Abar44. They are informative only, the correction is already insideA44,A45,A55. Dimensionless.intrhofloatintrho: ‘double’
intrhozfloatintrhoz: ‘double’
intrhoz2floatintrhoz2: ‘double’
Methods
calc_Ats_element(self, double thetadeg)Transverse shear stiffness in an element coordinate system
calc_aposteriori_energy(self, eps_x, eps_y)Transverse shear strain energy of the recovered stresses
calc_constitutive_element(self, double thetadeg)Constitutive matrices in an element coordinate system
calc_constitutive_matrix(self)Calculate the laminate constitutive terms
calc_equilibrium_transverse_shear(self, ...)Transverse shear stresses recovered from the actual strain gradients
Calculate the equivalent laminate properties
Calculate the lamination parameters.
Update the transverse shear stiffnesses
A44,A45,A55calc_transverse_shear_stress(self, double z, ...)Transverse shear stresses at a given height
make_balanced(self)Make a balanced laminate
make_orthotropic(self)Make an orthotropic laminate
make_smeared(self)Make a laminated with smeared properties
make_symmetric(self)Make a symmetric laminate
Notes
In the notation of Reddy [1], the stiffnesses relate the stress resultants to the generalized strains of the reference surface, \(\varepsilon^{(0)} = \{\varepsilon_{xx}^{(0)}, \varepsilon_{yy}^{(0)}, \gamma_{xy}^{(0)}\}\) and \(\varepsilon^{(1)} = \{\varepsilon_{xx}^{(1)}, \varepsilon_{yy}^{(1)}, \gamma_{xy}^{(1)}\}\), the in-plane strains being \(\varepsilon^{(0)} + z \varepsilon^{(1)}\). In the first-order shear deformation theory (FSDT) of the shell elements:
\[\begin{split}\begin{Bmatrix} N \\ M \end{Bmatrix} = \begin{bmatrix} A & B \\ B & D \end{bmatrix} \begin{Bmatrix} \varepsilon^{(0)} \\ \varepsilon^{(1)} \end{Bmatrix}, \qquad \begin{Bmatrix} Q_y \\ Q_x \end{Bmatrix} = A_{ts} \begin{Bmatrix} \gamma_{yz} \\ \gamma_{xz} \end{Bmatrix}\end{split}\]with \(N = \{N_{xx}, N_{yy}, N_{xy}\}\) and \(M = \{M_{xx}, M_{yy}, M_{xy}\}\), where the constant transverse shear strains through the thickness require the shear correction contained in
A44,A45,A55. The stiffnesses are computed bycalc_constitutive_matrix(). Withoffsetdifferent than zero, the reference surface is not the mid-surface, andBis not zero even for an isotropic plate.References
[1]Reddy, J. N., Mechanics of Laminated Composite Plates and Shells: Theory and Analysis, Second Edition, CRC Press, 2003. https://doi.org/10.1201/b12409
Examples
A cross-ply laminate built ply by ply;
laminated_plate()does the same from the stacking sequence:>>> from pyfe3d.shellprop import ShellProp, Lamina >>> from pyfe3d.shellprop_utils import read_laminaprop >>> mat = read_laminaprop((142.5e9, 8.7e9, 0.28, 5.1e9, 5.1e9, 3.4e9)) >>> prop = ShellProp() >>> for thetadeg in [0, 90, 90, 0]: ... ply = Lamina() ... ply.thetadeg = thetadeg ... ply.h = 0.125e-3 ... ply.matlamina = mat ... ply.rebuild() ... prop.plies.append(ply) >>> prop.calc_constitutive_matrix() >>> print(prop.h, prop.ABD.shape) 0.0005 (6, 6) >>> print(round(prop.A11/1e6, 2), round(prop.D11, 3)) 37.98 1.316
- A#
Membrane stiffness matrix
Built from the attributes
A11toA66; a new array is returned at each access, such that changing it does not change the attributes.- Returns:
- Andarray
Array of shape
(3, 3), force per unit length.
- A11#
A11: ‘double’
- A12#
A12: ‘double’
- A16#
A16: ‘double’
- A22#
A22: ‘double’
- A26#
A26: ‘double’
- A44#
A44: ‘double’
- A45#
A45: ‘double’
- A55#
A55: ‘double’
- A66#
A66: ‘double’
- ABD#
Stiffness matrix
[[A, B], [B, D]]Built from the attributes
A11toD66; a new array is returned at each access, such that changing it does not change the attributes.- Returns:
- ABDndarray
Array of shape
(6, 6), with the dimensions ofA,BandD.
- Abar44#
Abar44: ‘double’
- Abar45#
Abar45: ‘double’
- Abar55#
Abar55: ‘double’
- Abar_ts#
Constant-strain
[[Abar44, Abar45], [Abar45, Abar55]]Uncorrected transverse shear stiffness, built from the attributes
Abar44,Abar45,Abar55. A new array is returned at each access, such that changing it does not change the attributes.- Returns:
- Abar_tsndarray
Array of shape
(2, 2), force per unit length.
- Abarbar44#
Abarbar44: ‘double’
- Abarbar45#
Abarbar45: ‘double’
- Abarbar55#
Abarbar55: ‘double’
- Abarbar_ts#
Constant-stress
[[Abarbar44, Abarbar45], [Abarbar45, Abarbar55]]Built from the attributes
Abarbar44,Abarbar45,Abarbar55. A new array is returned at each access, such that changing it does not change the attributes.- Returns:
- Abarbar_tsndarray
Array of shape
(2, 2), force per unit length.
- Ats#
Transverse shear stiffness matrix
[[A44, A45], [A45, A55]]Index 4 corresponds to \(yz\) and index 5 to \(xz\), see the Notes. The shear correction is already applied, see
calc_transverse_shear_stiffness(). A new array is returned at each access, such that changing it does not change the attributes.- Returns:
- Atsndarray
Array of shape
(2, 2), force per unit length.
Notes
The matrix relates the transverse shear forces to the transverse shear strains, \(\{Q_y, Q_x\}^\top = A_{ts} \{\gamma_{yz}, \gamma_{xz}\}^\top\), see the Notes of
ShellProp.
- B#
Membrane-bending coupling stiffness matrix
Built from the attributes
B11toB66; a new array is returned at each access, such that changing it does not change the attributes.- Returns:
- Bndarray
Array of shape
(3, 3), force.
- B11#
B11: ‘double’
- B12#
B12: ‘double’
- B16#
B16: ‘double’
- B22#
B22: ‘double’
- B26#
B26: ‘double’
- B66#
B66: ‘double’
- D#
Bending stiffness matrix
Built from the attributes
D11toD66; a new array is returned at each access, such that changing it does not change the attributes.- Returns:
- Dndarray
Array of shape
(3, 3), force times length.
- D11#
D11: ‘double’
- D12#
D12: ‘double’
- D16#
D16: ‘double’
- D22#
D22: ‘double’
- D26#
D26: ‘double’
- D66#
D66: ‘double’
- calc_Ats_element(self, double thetadeg)#
Transverse shear stiffness in an element coordinate system
The element coordinate system is such that the material direction makes an angle \(\theta\) with the element \(x\) axis, measured towards the element \(y\) axis. This is the same rotation used by the shell elements, where \(m_{11} = \cos\theta\), \(m_{12} = -\sin\theta\), \(m_{21} = \sin\theta\) and \(m_{22} = \cos\theta\).
When
shear_correction='rohwer'and the plies are available, the stiffness corresponds to the plies rotated to the element frame, i.e. all ply angles shifted by \(\theta\), and it is evaluated from Fourier coefficients of its inverse calculated once per laminate bycalc_transverse_shear_stiffness(), such that the cost per element does not depend on the number of plies.In all other cases, i.e. any other
shear_correction, seecalc_transverse_shear_stiffness(), or when no plies exist, e.g. for a property created from lamination parameters or withA44,A45,A55given directly,A44,A45,A55are rotated as the components of a second-order tensor.Note
Changes to
A44,A45,A55made aftercalc_constitutive_matrix()are only used for elements with \(m_{12} = 0\) when the plies are available andshear_correction='rohwer', because the stiffness is otherwise obtained from the Fourier coefficients calculated from the plies.- Parameters:
- thetadegfloat
Angle \(\theta\) in degrees.
- Returns:
- Atsnp.ndarray
Matrix
[[A44, A45], [A45, A55]]in the element coordinate system.
Notes
The transverse shear stiffness obtained with the equilibrium approach of Rohwer (1988) [1] is not invariant to a rotation of the reference frame, because the two cylindrical bending states are tied to the \(x\) and \(y\) axes. Therefore, when
shear_correction='rohwer'and the plies are available, the stiffness corresponds to the plies rotated to the element frame, i.e. all ply angles shifted by \(\theta\), such that the assumed static state and the element kinematics refer to the same pair of directions.Re-evaluating the method of Rohwer for each element has a cost proportional to the number of plies. Instead, the compliance \(S = A_{ts}^{-1}\) in the element frame is represented exactly by its Fourier series:
\[S(\theta) = S_0 + \sum_{n=1}^{5} \left( S_{cn} \cos 2n\theta + S_{sn} \sin 2n\theta \right)\]because the equilibrium distribution \(f^{(k)}(z)\) is a polynomial of degree 4 in \(\cos\theta\), \(\sin\theta\) and \((C_s^{(k)})^{-1}\) of degree 2, such that \(S\) is a trigonometric polynomial of degree 10 with a period of 180 degrees. The coefficients are calculated once per laminate by
calc_transverse_shear_stiffness(), from 16 evaluations in rotated frames, and the cost per element becomes independent of the number of plies. With \(M = 16\) equally spaced samples \(\theta_j = j \pi/M\), the discrete Fourier coefficients of the harmonics \(2n\theta\), \(n \le 5\), are exact, since the aliased harmonics would be \(M - n \ge 11\).In all other cases the stiffness is rotated as a second-order tensor:
\[\begin{split}A_{ts}^e = T_\gamma^\top A_{ts} T_\gamma \qquad T_\gamma = \begin{bmatrix} \cos\varphi & \sin\varphi \\ -\sin\varphi & \cos\varphi \end{bmatrix} \qquad \varphi = -\theta\end{split}\]in the ordering \(\{\gamma_{yz}, \gamma_{xz}\}\), with \(\varphi\) the rotation of the element frame relative to the frame of
A44,A45,A55. The rotation is exact for the constant-strain stiffness.References
[1]Rohwer, K., 1988, Improved transverse shear stiffness for layered finite elements, DFVLR-FB 88-32.
- calc_aposteriori_energy(self, eps_x, eps_y)#
Transverse shear strain energy of the recovered stresses
With the stresses of
calc_equilibrium_transverse_shear()at the three Gauss-Legendre points of each ply, computes at each point the transverse shear strain energies per unit area of reference surface in the directions 13 and 23, and the resultants of the stresses, all integrated through the thickness with three Gauss-Legendre points per ply.- Parameters:
- eps_x, eps_yarray-like
- Returns:
- U13, U23, Qy, Qxnp.ndarray
The energies and the resultants \(\int \bar\tau dz\) of the recovered stresses, with shape
(npts,). Energy per unit area forU13andU23, force per unit length forQyandQx.
- Raises:
- ValueError
If a ply has a singular transverse shear constitutive matrix \(C_s^{(k)}\), e.g.
g13 = 0org23 = 0.
Notes
With the stresses of
calc_equilibrium_transverse_shear()and the strains \(\{\bar\gamma_{yz}, \bar\gamma_{xz}\} = (C_s^{(k)})^{-1} \{\bar\tau_{yz}, \bar\tau_{xz}\}\), the energies per unit area of reference surface of Noor and Peters (1989) [1], Eq. (7):\[\bar{U}_{13} = \int \frac{1}{2} C_{55} \bar\gamma_{xz}^2 dz \qquad \bar{U}_{23} = \int \frac{1}{2} C_{44} \bar\gamma_{yz}^2 dz\]integrated exactly with three Gauss-Legendre points per ply, since the recovered stresses are quadratic in \(z\) within each ply. The a posteriori factors follow by equating their integral over the domain with that of the FSDT, \(\frac{1}{2} Q_x^2/\bar{A}_{55}\) and \(\frac{1}{2} Q_y^2/\bar{A}_{44}\), i.e. Eqs. (8)-(9) of Noor and Peters (1989), with \(Q = k^0 \bar{A} \gamma^0\) the shear forces of the FSDT. The resultants are \(Q_y = \int \bar\tau_{yz} dz\) and \(Q_x = \int \bar\tau_{xz} dz\).
References
[1]Noor, A. K. and Peters, J. M., 1989, A posteriori estimates for the shear correction factors in multi-layered composite cylinders, Journal of Engineering Mechanics, 115, pp. 1225-1244.
- calc_constitutive_element(self, double thetadeg)#
Constitutive matrices in an element coordinate system
The element coordinate system is such that the material direction makes an angle \(\theta\) with the element \(x\) axis, measured towards the element \(y\) axis, as used by the shell elements, see the Notes.
- Parameters:
- thetadegfloat
Angle \(\theta\) in degrees.
- Returns:
- A, B, D, Atstuple of np.ndarray
The 3x3 matrices
A,B,Dand the 2x2 matrixAtsin the element coordinate system. Seecalc_Ats_element().
Notes
The matrices are those of
get_constitutive_element()with the in-plane rotation from the material to the element frame \(m_{11} = \cos\theta\), \(m_{12} = -\sin\theta\), \(m_{21} = \sin\theta\) and \(m_{22} = \cos\theta\), the rotation that the shell elements compute inupdate_rotation_matrixfrom a material direction.
- calc_constitutive_matrix(self) void#
Calculate the laminate constitutive terms
This is the commonly called
ABDmatrix withshape=(6, 6). When the first-order shear deformation theory is used, the transverse shear stiffnessesA44,A45,A55are also required, which are calculated at the end bycalc_transverse_shear_stiffness(), with the shear correction selected byshear_correctionalready applied.The attributes
h,intrho,intrhoz,intrhoz2andA11toD66are computed frompliesandoffset, with the ply stiffnesses of the last call toLamina.rebuild()and the densityrhoof the material of each ply.Notes
With the plies running from \(z_1 = -h/2 + offset\) to \(z_{N+1} = +h/2 + offset\), the stiffnesses in the notation of Reddy [1] and the mass integrals are, integrated exactly ply by ply:
\[\begin{split}(A_{ij}, B_{ij}, D_{ij}) = \sum_k \int_{z_k}^{z_{k+1}} q_{ijL}^{(k)} (1, z, z^2) dz, \quad ij = 11, 12, 16, 22, 26, 66 \\ (intrho, intrhoz, intrhoz2) = \sum_k \int_{z_k}^{z_{k+1}} \rho^{(k)} (1, z, z^2) dz\end{split}\]and
A44,A45,A55follow fromcalc_transverse_shear_stiffness().References
[1]Reddy, J. N., Mechanics of Laminated Composite Plates and Shells: Theory and Analysis, Second Edition, CRC Press, 2003. https://doi.org/10.1201/b12409
- calc_equilibrium_transverse_shear(self, eps_x, eps_y, z=None)#
Transverse shear stresses recovered from the actual strain gradients
Integrates through the thickness, from the bottom face, the equilibrium of the in-plane stresses of the plies given by the derivatives
eps_xandeps_yof the generalized strains, e.g. those of an FSDT solution, atnptspoints, and returns the transverse shear stresses at the heightsz. The stresses vanish at the bottom face; at the top face they do not vanish in general.- Parameters:
- eps_x, eps_yarray-like, shape
(6,)or(npts, 6) Derivatives with respect to \(x\) and \(y\) of \(\{\varepsilon_{xx}^{(0)}, \varepsilon_{yy}^{(0)}, \gamma_{xy}^{(0)}, \varepsilon_{xx}^{(1)}, \varepsilon_{yy}^{(1)}, \gamma_{xy}^{(1)}\}\), at
nptspoints. The first three entries are per unit length and the last three per unit length squared.- zarray-like or None, optional
Heights from the reference surface. If
None, the three Gauss-Legendre points of each ply are used. DefaultNone. Length.
- eps_x, eps_yarray-like, shape
- Returns:
- z, tau_yz, tau_xznp.ndarray
The heights, with shape
(nz,), and the stresses, with shape(npts, nz). Withz=None,nzis three times the number of plies. Length forzand force per unit area for the stresses.
- Raises:
- ValueError
If a value of
zis outside the laminate.
See also
Notes
Integrates the three-dimensional equilibrium equations from the bottom face, where the tractions vanish, with the in-plane stresses of each ply \(\sigma^{(k)} = C^{(k)} (\varepsilon^{(0)} + z\varepsilon^{(1)})\):
\[\begin{split}\tau_{xz}(z) = -\int_{z_1}^{z} \left( c_1 \left[ \varepsilon^{(0)}_{,x} + \bar{z} \varepsilon^{(1)}_{,x} \right] + c_3 \left[ \varepsilon^{(0)}_{,y} + \bar{z} \varepsilon^{(1)}_{,y} \right] \right) d\bar{z} \\ \tau_{yz}(z) = -\int_{z_1}^{z} \left( c_2 \left[ \varepsilon^{(0)}_{,y} + \bar{z} \varepsilon^{(1)}_{,y} \right] + c_3 \left[ \varepsilon^{(0)}_{,x} + \bar{z} \varepsilon^{(1)}_{,x} \right] \right) d\bar{z}\end{split}\]where \(c_1\), \(c_2\) and \(c_3\) are the rows of \(C^{(k)}\) that give \(\sigma_{xx}\), \(\sigma_{yy}\) and \(\tau_{xy}\), respectively, and \(z_1\) is the bottom face. It uses the gradients of the generalized strains of the actual solution, as in the a posteriori approach of Noor and Peters (1989) [1], instead of the two cylindrical bending states of
calc_transverse_shear_stiffness(). The top face is traction free only if the gradients satisfy the in-plane equilibrium of the stress resultants. The integrals of each ply are computed exactly by_equilibrium_integrals(), with \(z\) measured from the mid-surface and the gradients \(\varepsilon^{(0)}\) shifted byoffsettimes \(\varepsilon^{(1)}\), which avoids the round-off of large values ofoffset.References
[1]Noor, A. K. and Peters, J. M., 1989, A posteriori estimates for the shear correction factors in multi-layered composite cylinders, Journal of Engineering Mechanics, 115, pp. 1225-1244.
- calc_equivalent_properties(self) void#
Calculate the equivalent laminate properties
The following attributes are updated:
e1,e2,g12,nu12,nu21They are computed from the inverse of the 6x6
ABDmatrix and fromh.- Raises:
- numpy.linalg.LinAlgError
A subclass of
ValueError, if theABDmatrix is singular or ill-conditioned, see the Notes, e.g. for a laminate of antiplane cores only, whose in-plane and bending stiffnesses vanish, or for a single ply at 45 degrees withg12 = 0, whoseABDhas a positive diagonal: the equivalent properties are then undefined.
Notes
The
ABDmatrix must have a positive diagonal and a finite inverse, and theABDmatrix about the mid-surface, \([[A, B^0], [B^0, D^0]]\), must have a condition number not above \(10^{12}\) after the symmetric diagonal scaling \(M = S \, ABD \, S\), \(S = \mathrm{diag}(ABD)^{-1/2}\), which does not depend on the units; the scaling and the threshold are those of the'rohwer'transverse shear distribution, seecalc_transverse_shear_stiffness(). Singularity is a property of the laminate, and the matrix about the mid-surface makes the check independent ofoffset, while the condition number of the matrix about the reference surface, \(B = B^0 + e A\), \(D = D^0 + 2 e B^0 + e^2 A\) (Vasiliev and Morozov [1], Eq. (5.28), p. 235), grows as \((e/h)^2\), e.g. from 2.3 to \(1.6 \cdot 10^{10}\) at \(e/h = 10^4\) and to round-off noise near \(10^{12}\) from \(e/h = 10^5\). Withoffset = 0the matrix is the storedABD; otherwise it is integrated from the plies, with \(z\) measured from the mid-surface, exactly as foroffset = 0, such that the check gives the same result for any offset. The matrix about the reference surface cannot be shifted back accurately at large offsets: its \(D_{ij}\) carry the round-off of the cubes of the heights, about \(\epsilon (e/h)^3\) relative to \(D^0\), which reaches 1 at \(e/h \approx 10^5\). Without plies, e.g. created from lamination parameters, the stored matrix is shifted back, \(B^0 = B - e A\), \(D^0 = D - 2 e B + e^2 A\), with a relative round-off of about \(12 \epsilon (e/h)^2\), measured \(8 \cdot 10^{-4}\) at \(e/h = 10^6\) and 0.16 at \(e/h = 10^7\) for exact lamination parameters, plus the round-off of the stored matrix itself: the \(\xi_{Di}\) ofcalc_lamination_parameters(), integrated about the reference surface, carry that of the cubes, \(\epsilon (e/h)^3\): the shifted \(D^0_{11}\) of the five-ply laminates of the tests is off by about \(2 \cdot 10^{-4}\) at \(e/h = 10^4\) and by 20 to 50 per cent at \(e/h = 10^5\), such that a valid laminate given with them is accepted up to \(e/h = 10^4\) and may be rejected from \(e/h = 10^5\). The condition number is that of the 1-norm, \(\kappa_1(M) = \|M\|_1 \|M^{-1}\|_1\), with \(M^{-1}\) by Gauss-Jordan elimination with partial pivoting of the 6x6 matrix, which, with the integration over the plies, adds about 1 us, whilenp.linalg.cond, of the 2-norm, would add about 20 us; \(\kappa_2/6 \le \kappa_1 \le 6 \kappa_2\) for a 6x6 matrix. Being invariant to the scaling, the check does not detect a term that vanishes only to round-off and is decoupled from the others, e.g.A66of a[0/90]laminate withg12 = 0, of the order of \(e_1 \cos^2 90^\circ \, h\), which gives a tiny but finiteg12instead. The equivalent properties are computed from the inverse of the storedABD, about the reference surface.With \(a = [[A, B], [B, D]]^{-1}\), whose upper-left 3x3 block is the membrane compliance of the laminate with zero moments and free curvatures:
\[e_1 = \frac{1}{h a_{11}}, \quad e_2 = \frac{1}{h a_{22}}, \quad g_{12} = \frac{1}{h a_{66}}, \quad \nu_{12} = -\frac{a_{12}}{a_{11}}, \quad \nu_{21} = -\frac{a_{12}}{a_{22}}\]where the index 6 is the third row and column of \(a\).
References
[1]Vasiliev, V. V. and Morozov, E. V., Mechanics and Analysis of Composite Materials, Elsevier, Oxford, 2001.
- calc_lamination_parameters(self) LaminationParameters#
Calculate the lamination parameters.
The following attributes are calculated:
xiA,xiB,xiD,xiAtsThey are the attributes of the returned object, computed from the ply angles and from the ply heights measured from the reference surface, i.e. including
offset, divided by the total thickness. The object is not modified, except thatLamina.rebuild()is called for each ply.- Returns:
- lp
LaminationParameters New object with the lamination parameters, dimensionless.
- lp
- Raises:
- ValueError
If there are no plies.
Notes
With \(\bar{z} = z/h\), \(z\) measured from the reference surface, and \(\theta(\bar{z})\) the ply angle:
\[\begin{split}\{\xi_{A1}, \xi_{A2}, \xi_{A3}, \xi_{A4}\} = \int \{\cos 2\theta, \sin 2\theta, \cos 4\theta, \sin 4\theta\} d\bar{z} \\ \{\xi_{B1}, \xi_{B2}, \xi_{B3}, \xi_{B4}\} = 4 \int \{\cos 2\theta, \sin 2\theta, \cos 4\theta, \sin 4\theta\} \bar{z} d\bar{z} \\ \{\xi_{D1}, \xi_{D2}, \xi_{D3}, \xi_{D4}\} = 12 \int \{\cos 2\theta, \sin 2\theta, \cos 4\theta, \sin 4\theta\} \bar{z}^2 d\bar{z} \\ \{\xi_{Ats,1}, \xi_{Ats,2}\} = \int \{\cos 2\theta, \sin 2\theta\} d\bar{z}\end{split}\]integrated exactly ply by ply, such that
xiAts1 = xiA1andxiAts2 = xiA2. With these definitions, the stiffnesses of the laminate are linear in the lamination parameters, seeshellprop_from_LaminationParameters(), which must be given the sameoffsetto reproduce the stiffnesses of the laminate. The \(\xi_{Ai}\) and \(\xi_{Ats,i}\) do not depend onoffset, the \(\xi_{Bi}\) and \(\xi_{Di}\) do.The \(\xi_{Ai}\) and \(\xi_{Di}\) are those of Krupa et al. [1], who integrate from \(z = -h/2\) to \(z = h/2\), i.e. with
offset = 0. The \(\xi_{Bi}\) and \(\xi_{Ats,i}\), not defined there, follow the same pattern, with the factor 4 of \(\xi_{Bi}\) corresponding to the factor \(h^2/4\) of \(B_{ij}\) inshellprop_from_LaminationParameters().References
[1]Krupa, E. P., Cooper, J. E., Pirrera, A. and Nangia, R., 2018, Improved aerostructural performance via aeroservoelastic tailoring of a composite wing, The Aeronautical Journal, 122 (1255), pp. 1442-1474. https://doi.org/10.1017/aer.2018.66
- calc_transverse_shear_stiffness(self) void#
Update the transverse shear stiffnesses
A44,A45,A55Called at the end of
calc_constitutive_matrix(), and computed once per laminate. The attributesA44,A45,A55are the transverse shear stiffnesses of the first-order shear deformation theory (FSDT) with the shear correction already applied, and no shear correction factor is applied to them by the elements.Conventions: \(\{\tau_{yz}, \tau_{xz}\}^\top\), \(\{Q_y, Q_x\}^\top\), \(A_{ts} = [[A_{44}, A_{45}], [A_{45}, A_{55}]]\), index 4 corresponds to \(yz\) and index 5 to \(xz\). The coordinate \(z\) is measured from the reference surface, with the plies running from \(z_1 = -h/2 + offset\) to \(z_{N+1} = +h/2 + offset\), and \(C_s^{(k)} = [[q_{44L}, q_{45L}], [q_{45L}, q_{55L}]]\), which is in general a full matrix. None of the methods depends on
offset.The method is selected by the attribute
shear_correction:'rohwer'(default): equilibrium approach, giving the full 2x2 matrix. The shell elements use it evaluated in the element coordinate system, seecalc_Ats_element(), whose coefficients are also computed here, together with the through-thickness distribution used bycalc_transverse_shear_stress().'vlachoutsis': the scalar factorsk13,k23are applied to the constant-strain stiffness,A55 = k13*Abar55,A44 = k23*Abar44, andA45 = (k13 + k23)/2*Abar45.'whitney': the result is identical to'vlachoutsis'.'chow': for laminates symmetric about the mid-surface only, for which the result is identical to'vlachoutsis'.'birman_bert': average shear strain factors, applied as in'vlachoutsis'. It gives \(k = 1\) for a homogeneous plate.'thickness_shear': dynamic factors, applied as in'vlachoutsis'. It gives \(k = \pi^2/12\) for a homogeneous plate. The ply densities must be positive.'constant': \(k = 5/6\), i.e.A44 = 5/6*Abar44,A45 = 5/6*Abar45,A55 = 5/6*Abar55.None: no correction,A44 = Abar44,A45 = Abar45,A55 = Abar55.
Except for
'rohwer', the elements rotateA44,A45,A55to the element coordinate system as the components of a second-order tensor, seecalc_Ats_element().The following attributes are also updated:
Abar44,Abar45,Abar55(constant strain),Abarbar44,Abarbar45,Abarbar55(constant stress,nanif a ply has a singular \(C_s^{(k)}\)), and the ratiosscf_k13 = A55/Abar55andscf_k23 = A44/Abar44, which are informative only.Without plies,
A44,A45,A55,Abar44,Abar45,Abar55,Abarbar44,Abarbar45andAbarbar55are set to zero and nothing else is updated.- Raises:
- ValueError
If
shear_correctionis not recognized; if a ply has a singular transverse shear constitutive matrix \(C_s^{(k)}\), e.g.g13 = 0org23 = 0(all methods except'constant'andNone); if the ABD matrix of the laminate is singular ('rohwer'); if the laminate is not symmetric ('chow'); or if a ply has a non-positive density ('thickness_shear'). Also if the transverse shear compliance obtained with'rohwer'is singular, in the material or in a rotated coordinate system, or if the sum ofq11L(direction 1) orq22L(direction 2) times the ply thicknesses is not positive ('vlachoutsis','whitney','chow','birman_bert').
Notes
All of the methods are evaluated with \(z\) measured from the mid-surface, which avoids the round-off of large values of
offset. The constant-strain stiffness \(\bar{A}_{ts} = \sum_k C_s^{(k)} h_k\) corresponds to transverse shear strains constant through the thickness, and the constant-stress stiffness \(\bar{\bar{A}}_{ts} = h^2 [\sum_k (C_s^{(k)})^{-1} h_k]^{-1}\) to the constant stresses \(\{\tau_{yz}, \tau_{xz}\} = \{Q_y, Q_x\}/h\), with the same complementary energy.'rohwer': equilibrium approach of Rohwer (1988) [1]. The transverse shear stresses are obtained from the equilibrium of two cylindrical bending states, with zero tractions at the bottom and top faces and continuity at every interface, \(\{\tau_{yz}, \tau_{xz}\}^\top = f^{(k)}(z) \{Q_y, Q_x\}^\top\), see_rohwer(). The 2x2 stiffness is obtained from the complementary energy:\[A_{ts} = \left[ \sum_k \int_{z_k}^{z_{k+1}} f^{(k)T} \left(C_s^{(k)}\right)^{-1} f^{(k)} dz \right]^{-1}\]The integrand is a polynomial of degree 4 in \(z\) within each ply, such that the 3-point Gauss-Legendre rule used per ply is exact. The method is valid for arbitrary anisotropic and unsymmetric laminates, and the result does not depend on
offset. The result is not invariant to a rotation of the reference frame, because the two cylindrical bending states are tied to the \(x\) and \(y\) axes. For this reason, the shell elements use it evaluated in the element coordinate system, seecalc_Ats_element(), from the Fourier coefficients of the compliance computed here with 16 rotations of the plies.'vlachoutsis': the scalar factors \(k_{13}\), \(k_{23}\) of Vlachoutsis (1992) [2] are applied to the constant-strain stiffness,A55 = k13*Abar55,A44 = k23*Abar44, and the ad-hocA45 = (k13 + k23)/2*Abar45, which cannot represent the coupling of angle-ply laminates withAbar45 = 0. The factors use \(C_{11}\) and \(C_{22}\) of each ply in laminate axes and the direction-wise neutral surfaces, being exact only for specially orthotropic plies. For the direction 1, with \(C_{11} = q_{11L}\) and \(C_{55} = q_{55L}\) of each ply:\[z_n = \frac{\int C_{11} z dz}{\int C_{11} dz}, \quad R = \int C_{11} (z - z_n)^2 dz, \quad g(z) = -\int_{z_1}^{z} C_{11} (\bar{z} - z_n) d\bar{z}, \quad k_{13} = \frac{R^2}{\bar{A}_{55} \int g^2/C_{55} dz}\]i.e. the energy of the transverse shear stress \(\tau_{xz} = Q_x g(z)/R\) of the one-dimensional equilibrium \(\tau_{xz,z} = -\sigma_{xx,x}\) is equated with that of the FSDT, \(Q_x^2/(k_{13} \bar{A}_{55})\). Analogously for \(k_{23}\) with \(C_{22} = q_{22L}\), \(C_{44} = q_{44L}\) and \(\bar{A}_{44}\). The integrals of \(g\) are evaluated with three Gauss-Legendre points per ply, which is exact, \(g^2\) being a polynomial of degree 4 within each ply.
'whitney': the scalar factors of Whitney (1973) [3], Eqs. (3)-(7), extending Chow (1971) [4] to unsymmetric orthotropic laminates in cylindrical bending. The derivative of the bending stress, Eq. (3), \(\sigma_{xx,x} = -C_{11}(B_{11} - A_{11}z) Q_x/(D_{11}A_{11} - B_{11}^2)\), vanishes at the neutral surface \(z_n = B_{11}/A_{11}\) and, since \(R = (D_{11}A_{11} - B_{11}^2)/A_{11}\), equals \(C_{11}(z - z_n) Q_x/R\). Integrated with the equilibrium \(\sigma_{xx,x} + \tau_{xz,z} = 0\), Eq. (4), it gives the \(\tau_{xz}\) of'vlachoutsis', Eq. (5), and the energy equivalence, Eqs. (6)-(7), gives the same \(k_{13}\). The result is identical to'vlachoutsis'.'chow': the scalar factors of Chow (1971) [4], Eqs. (11)-(12), with the transverse shear stress of a symmetric laminate obtained from the one-dimensional equilibrium \(\tau_{xz} = Q_x g(z)/D_{11}\), \(g(z) = -\int_{-h/2}^{z} C_{11} \bar{z} d\bar{z}\), and \(k_{13} = D_{11}^2 / (\bar{A}_{55} \int g^2/C_{55} dz)\), analogously for \(k_{23}\) with \(C_{22}\), \(D_{22}\) and \(C_{44}\). The coordinate is measured from the mid-surface and the laminate must be symmetric about it, see_check_symmetric(). For symmetric laminates the result is identical to'vlachoutsis', whose neutral surfaces then coincide with the mid-surface. The factors are applied as in'vlachoutsis'.'birman_bert': the average shear strain factors of Birman and Bert (2002) [5], Eq. (13) and Appendix B, obtained by equating the thickness integral of the transverse shear strain of the equilibrium distribution with that of the FSDT, \(k_{13} = R_1 h / (\bar{A}_{55} \int g_1/C_{55} dz)\), analogously for \(k_{23}\). The equilibrium distribution \(g_\alpha(z)\) and the bending stiffness \(R_\alpha\) about the direction-wise neutral surface are the same as in'vlachoutsis', which generalizes Eq. (13), derived for symmetric cross sections, to unsymmetric laminates. It gives \(k = 1\) for a homogeneous plate. The factors are applied as in'vlachoutsis'. Note that the value recommended by Birman and Bert (2002) for sandwich structures, \(K = 1\) applied to \(\bar{A}_{55} = \sum_k C_{55}^{(k)} h_k\) (their Eqs. A5-A7), isNone.'thickness_shear': dynamic factors of Yang, Norris and Stavsky (1966) [6], as described by Sun and Whitney (1973) [7], extending the criterion of Mindlin (1951) [8] to laminates, i.e. matching the frequency of the first thickness-shear mode of the FSDT, \(\omega^2 = k_{13} \bar{A}_{55} / \bar{I}_2\), with the exact frequency of the laminate, computed with a transfer matrix through the plies for the anti-plane motion \(u(z)\), with \(\rho^{(k)} \ddot{u} = (C_{55}^{(k)} u_{,z})_{,z}\), traction-free faces and continuity of \(u\) and \(\tau_{xz}\) at every interface, see_thickness_shear_frequency(). The rotatory inertia about the centre of mass, \(\bar{I}_2 = I_2 - I_1^2/I_0\), with \(I_n = \int \rho z^n dz\), makes the result independent ofoffset. Analogously for \(k_{23}\) with \(C_{44}\). The coupling \(C_{45}\) between the two directions is neglected in the eigenproblem, and the factors are applied as in'vlachoutsis'. It gives \(k = \pi^2/12\) for a homogeneous plate. The ply densities must be positive.'constant': \(k = 5/6\), the factor that'rohwer','vlachoutsis','whitney'and'chow'give for a homogeneous plate.
References
[1]Rohwer, K., 1988, Improved transverse shear stiffness for layered finite elements, DFVLR-FB 88-32.
[2]Vlachoutsis, S., 1992, Shear correction factors for plates and shells, International Journal for Numerical Methods in Engineering, 33(7), pp. 1537-1552. https://doi.org/10.1002/nme.1620330712
[3]Whitney, J. M., 1973, Shear correction factors for orthotropic laminates under static load, Journal of Applied Mechanics, 40, pp. 302-304.
[4] (1,2)Chow, T. S., 1971, On the propagation of flexural waves in an orthotropic laminated plate and its response to an impulsive load, Journal of Composite Materials, 5, pp. 306-319.
[5]Birman, V. and Bert, C. W., 2002, On the choice of shear correction factor in sandwich structures, Journal of Sandwich Structures and Materials, 4, pp. 83-95.
[6]Yang, P. C., Norris, C. H. and Stavsky, Y., 1966, Elastic wave propagation in heterogeneous plates, International Journal of Solids and Structures, 2, pp. 665-684.
[7]Sun, C. T. and Whitney, J. M., 1973, Theories for the dynamic response of laminated plates, AIAA Journal, 11, pp. 178-183.
[8]Mindlin, R. D., 1951, Influence of rotatory inertia and shear on flexural motions of isotropic, elastic plates, Journal of Applied Mechanics, 18, pp. 31-38.
- calc_transverse_shear_stress(self, double z, double Qy, double Qx) tuple#
Transverse shear stresses at a given height
Evaluates, for the transverse shear forces
QyandQx, the through-thickness distribution of the transverse shear stresses of the equilibrium approach used byshear_correction='rohwer', seecalc_transverse_shear_stiffness(), in the material coordinate system, which is quadratic within each ply, vanishes at the bottom and top faces and is continuous at the ply interfaces, e.g. for failure criteria.The distribution only depends on the in-plane stiffnesses of the plies and is the same for every
shear_correction. It is computed bycalc_transverse_shear_stiffness()whenshear_correctionis'rohwer', or on the first call otherwise, and it is reset bycalc_constitutive_matrix(), which must be called again if the plies are modified.- Parameters:
- zfloat
Height measured from the reference surface, within \([-h/2 + offset, +h/2 + offset]\). At a ply interface both plies give the same result.
- Qy, Qxfloat
Transverse shear forces per unit length, \(Q_y\) and \(Q_x\), e.g.
{Qy, Qx} = Ats @ {gamma_yz, gamma_xz}.
- Returns:
- tau_yz, tau_xztuple of float
Transverse shear stresses.
- Raises:
- ValueError
If
zis outside the laminate, if the laminate has no plies, or if the ABD matrix of the laminate is singular.
Notes
Evaluates the equilibrium distribution of Rohwer (1988) [1], in the material coordinate system, see
_rohwer(), stored with \(z\) measured from the mid-surface:\[\begin{split}\begin{Bmatrix} \tau_{yz} \\ \tau_{xz} \end{Bmatrix} = f^{(k)}(z) \begin{Bmatrix} Q_y \\ Q_x \end{Bmatrix}\end{split}\]where \(f^{(k)}(z)\) is quadratic within each ply, vanishes at the bottom and top faces and is continuous at the ply interfaces. This is the consistent way to recover \(\tau_{xz}\) and \(\tau_{yz}\), e.g. for failure criteria, since \(C_s \gamma\) is constant within each ply and non-zero at the free surfaces. For a homogeneous plate it gives the parabola \(\tau_{xz} = 3 Q_x/(2h) (1 - 4 \bar{z}^2/h^2)\), with \(\bar{z}\) measured from the mid-surface.
References
[1]Rohwer, K., 1988, Improved transverse shear stiffness for layered finite elements, DFVLR-FB 88-32.
- e1#
e1: ‘double’
- e2#
e2: ‘double’
- g12#
g12: ‘double’
- h#
h: ‘double’
- intrho#
intrho: ‘double’
- intrhoz#
intrhoz: ‘double’
- intrhoz2#
intrhoz2: ‘double’
- make_balanced(self) void#
Make a balanced laminate
The attributes
A16,A26,Abar45andAbarbar45, andA45unlessshear_correction='rohwer', are set to zero to make a balanced laminate.Abarbar45is kept when it isnan, i.e. when a ply has a singular \(C_s^{(k)}\). The other attributes are not modified, among themB16,B26,D16andD26, which do not vanish in a balanced laminate in general, e.g.B16andB26of an antisymmetric \([+45/-45]\) laminate.- Raises:
- RuntimeError
If
offsetis not zero.
Notes
In a balanced laminate, for every ply at \(+\theta\) there is a ply at \(-\theta\) of the same material and thickness, anywhere in the stack. \(q_{16L}\), \(q_{26L}\) and \(q_{45L}\) are odd functions of the ply angle and the other \(q_{ijL}\) are even, see
Lamina.rebuild(). The contributions of such a pair of plies, of thickness \(t\) and with bottom faces at \(z_a\) and \(z_b\), to the integral of \(q_{16L} z^n\) add up to\[q_{16L}(\theta) \int_{z_a}^{z_a + t} z^n dz + q_{16L}(-\theta) \int_{z_b}^{z_b + t} z^n dz = q_{16L}(\theta) \left( \int_{z_a}^{z_a + t} z^n dz - \int_{z_b}^{z_b + t} z^n dz \right)\]which vanishes for any \(z_a\), \(z_b\) only for \(n = 0\), see
calc_constitutive_matrix(). Therefore, \(A_{16}\), \(A_{26}\) and \(\bar{A}_{45} = \sum_k q_{45L}^{(k)} h_k\) vanish in every balanced laminate, whereas the integrals with \(n \ge 1\), \(B_{16}\), \(B_{26}\), \(D_{16}\) and \(D_{26}\), are proportional to \(z_a - z_b\) and depend on the positions of the plies. The determinant of \(C_s^{(k)}\) being even in \(\theta\), the off-diagonal term of \((C_s^{(k)})^{-1}\) is odd, its thickness integral vanishes and so does \(\bar{\bar{A}}_{45}\).A45is proportional toAbar45for everyshear_correctionother than'rohwer', seecalc_transverse_shear_stiffness(), and vanishes with it. With'rohwer',A45follows from the through-thickness distribution of the transverse shear stresses, which depends on the positions of the plies and on the whole ABD matrix, and does not vanish in general, e.g. for a \([+30/-30/0]_s\) laminate, even withg13 = g23, i.e. \(q_{45L} = 0\) in every ply; it is not modified, nor are the coefficients used in the element coordinate system, seecalc_Ats_element().
- make_orthotropic(self) void#
Make an orthotropic laminate
The attributes
A16,A26,B16,B26,D16,D26and the transverse shear couplingsA45,Abar45,Abarbar45are set to zero to make an orthotropic laminate.Abarbar45is kept when it isnan, i.e. when a ply has a singular \(C_s^{(k)}\), as inmake_balanced(). The other attributes are not modified.- Raises:
- RuntimeError
If
offsetis not zero.
Notes
These terms vanish in a laminate whose plies are all at 0 or 90 degrees, for which \(q_{16L} = q_{26L} = q_{45L} = 0\), see
Lamina.rebuild(). The terms \(ij = 16, 26\) of \(A_{ij}\), \(B_{ij}\), \(D_{ij}\) and \(\bar{A}_{45}\) are thickness integrals of \(q_{16L}\), \(q_{26L}\) and \(q_{45L}\), seecalc_constitutive_matrix()andcalc_transverse_shear_stiffness(), and \(\bar{\bar{A}}_{45}\) vanishes with the diagonal \(C_s^{(k)}\) of every ply. With every ply diagonal and the ABD matrix decoupled between \(\{N_{xx}, N_{yy}, M_{xx}, M_{yy}\}\) and \(\{N_{xy}, M_{xy}\}\), the transverse shear distribution of'rohwer'is diagonal, andA45vanishes for everyshear_correction. Withshear_correction='rohwer'and plies, the elements with a material coordinate system use the stiffness computed from the plies, see the note ofcalc_Ats_element().
- make_smeared(self) void#
Make a laminated with smeared properties
The \(B_{ij}\) terms of the constitutive matrix are set to zero.
The \(D_{ij}\) terms are calculated from the membrane terms \(A_{ij}\) according to \(D_{ij} = (h^2 A_{ij})/12\), where \(h\) is the laminate thickness.
- Raises:
- NotImplementedError
If
offsetis not zero.
Notes
\(D_{ij} = h^2 A_{ij}/12\) and \(B_{ij} = 0\) are the stiffnesses of a homogeneous plate with the in-plane stiffnesses \(A_{ij}/h\), i.e. of a laminate whose plies are smeared through the thickness, the limit of many repetitions of the stacking sequence.
- make_symmetric(self) void#
Make a symmetric laminate
The \(B_{ij}\) terms of the constitutive matrix are set to zero. The other attributes are not modified.
- Raises:
- RuntimeError
If
offsetis not zero.
Notes
In a laminate symmetric about its mid-surface the integrand \(q_{ijL} z\) of \(B_{ij}\) is an odd function of \(z\), see
calc_constitutive_matrix(), such that \(B_{ij} = 0\), \(ij = 11, 12, 16, 22, 26, 66\). The integrands of \(A_{ij}\) and \(D_{ij}\) are even functions of \(z\), which the symmetry does not make zero.
- nu12#
nu12: ‘double’
- nu21#
nu21: ‘double’
- offset#
offset: ‘double’
- plies#
plies: list
- scf_k13#
scf_k13: ‘double’
- scf_k23#
scf_k23: ‘double’
- shear_correction#
shear_correction: object
- stack#
stack: list
- pyfe3d.shellprop.make_balanced_LP(LaminationParameters lp) LaminationParameters#
Make balanced lamination parameters
The lamination parameters \(\xi_{A2}\), \(\xi_{A4}\) and \(\xi_{A_{ts}2}\) are set to null to make a balanced laminate. The other lamination parameters are not modified, among them \(\xi_{B2}\), \(\xi_{B4}\), \(\xi_{D2}\) and \(\xi_{D4}\), which do not vanish in a balanced laminate in general.
The object
lpis modified in place and returned.- Parameters:
- lp
LaminationParameters Lamination parameters, modified in place.
- lp
- Returns:
- lp
LaminationParameters The same object given as input.
- lp
See also
Notes
In a balanced laminate, with a ply at \(-\theta\) for every ply at \(+\theta\) of the same material and thickness, anywhere in the stack, the thickness integrals of the odd functions \(\sin 2\theta\) and \(\sin 4\theta\) vanish, see
ShellProp.calc_lamination_parameters(), and so do \(A_{16}\), \(A_{26}\) and \(\bar{A}_{45}\), seeShellProp.make_balanced(). The integrals weighted by \(\bar{z}\) and \(\bar{z}^2\), \(\xi_{B2}\), \(\xi_{B4}\), \(\xi_{D2}\) and \(\xi_{D4}\), depend on the positions of the plies, e.g. \(\xi_{B2} \ne 0\) for an antisymmetric \([+45/-45]\) laminate.
- pyfe3d.shellprop.make_orthotropic_LP(LaminationParameters lp) LaminationParameters#
Make orthotropic lamination parameters
The lamination parameters \(\xi_{A2}\), \(\xi_{A4}\), \(\xi_{B2}\), \(\xi_{B4}\), \(\xi_{D2}\), \(\xi_{D4}\) and \(\xi_{Ats,2}\) are set to null to make an orthotropic laminate.
The object
lpis modified in place and returned.- Parameters:
- lp
LaminationParameters Lamination parameters, modified in place.
- lp
- Returns:
- lp
LaminationParameters The same object given as input.
- lp
See also
Notes
The lamination parameters of the sine terms give the stiffnesses \(A_{16}\), \(A_{26}\), \(B_{16}\), \(B_{26}\), \(D_{16}\), \(D_{26}\) and \(\bar{A}_{45}\), see
shellprop_from_LaminationParameters(), and they vanish when all plies are at 0 or 90 degrees, seeShellProp.make_orthotropic(). The \(\xi_{D2}\) and \(\xi_{D4}\) are related to the bend-twist coupling and become often very small for balanced laminates with a large amount of plies.
- pyfe3d.shellprop.make_symmetric_LP(LaminationParameters lp) LaminationParameters#
Make symmetric lamination parameters
The lamination parameters \(\xi_{Bi}\) are set to null to make a symmetric laminate.
The object
lpis modified in place and returned.- Parameters:
- lp
LaminationParameters Lamination parameters, modified in place.
- lp
- Returns:
- lp
LaminationParameters The same object given as input.
- lp
See also
Notes
In a laminate symmetric about its mid-surface, the integrands of \(\xi_{Bi}\), linear in \(\bar{z}\), are odd functions of \(\bar{z}\), see
ShellProp.calc_lamination_parameters(), such that \(\xi_{Bi} = 0\) and the coupling stiffnesses \(B_{ij}\) vanish. This holds for the lamination parameters about the mid-surface, i.e. withoffset = 0, asShellProp.make_symmetric(): about another reference surface \(\xi_{Bi} = 4 (e/h) \xi_{Ai}\) in a symmetric laminate, seeshellprop_from_LaminationParameters().
- pyfe3d.shellprop.shellprop_from_LaminationParameters(double thickness, MatLamina mat, LaminationParameters lp, double offset=0.) ShellProp#
Return a
ShellPropobject based in the thickness, material and lamination parametersIn a new
ShellPropobject, the stiffnessesA11toD66andAbar44,Abar45,Abar55are computed fromthickness,offset, from the invariantsu1tou7ofmatand from the lamination parameters oflp, with the combinations ofMatLamina.get_invariant_matrix(). No plies are created,offsetis stored, and the mass integralsintrho,intrhoz,intrhoz2and the equivalent propertiese1,e2,g12,nu12,nu21are not computed, remaining zero. The transverse shear stiffnessesA44,A45,A55are equal to the constant-strainAbar44,Abar45,Abar55,shear_correctionisNone,scf_k13 = scf_k23 = 1and the constant-stressAbarbar44,Abarbar45,Abarbar55arenan. If a shear correction is desired,A44,A45,A55can be modified directly, and the elements will rotate them as a tensor.- Parameters:
- thicknessfloat
The total thickness of the laminate, length
- mat
MatLaminaobject Material object
- lp
LaminationParametersobject The container class with all lamination parameters already defined
- offsetfloat, optional
Offset of the mid-surface of the laminate from the reference surface, as
offsetofShellProp, with whichlpwas computed byShellProp.calc_lamination_parameters(). Length. Default0..
- Returns:
- lam
ShellProp laminate with the ABD and Ats matrices already calculated
- lam
Notes
The stiffnesses of a ply are linear in the trigonometric functions of its angle, with the invariants of
matas coefficients, seeMatLamina.get_invariant_matrix(), and the lamination parameters are their thickness integrals, seeShellProp.calc_lamination_parameters(), with \(\bar{z} = z/h\) and \(z\) measured from the reference surface, i.e. the laminate occupies \(\bar{e} - 1/2 \le \bar{z} \le \bar{e} + 1/2\), \(\bar{e}\) =offset\(/h\). For a laminate of a single material, with \(h\) =thickness, \(\int dz = h \int d\bar{z}\), \(\int z dz = h^2/4 \cdot 4\int \bar{z} d\bar{z}\) and \(\int z^2 dz = h^3/12 \cdot 12 \int \bar{z}^2 d\bar{z}\), and the integrals of the constant terms \(\int d\bar{z} = 1\), \(4 \int \bar{z} d\bar{z} = 4\bar{e}\) and \(12 \int \bar{z}^2 d\bar{z} = 1 + 12 \bar{e}^2\), give:\[\begin{split}A_{11} = h (u_1 + u_2 \xi_{A1} + u_3 \xi_{A3}), \quad A_{12} = h (u_4 - u_3 \xi_{A3}), \quad A_{22} = h (u_1 - u_2 \xi_{A1} + u_3 \xi_{A3}) \\ A_{16} = h (u_2/2 \, \xi_{A2} + u_3 \xi_{A4}), \quad A_{26} = h (u_2/2 \, \xi_{A2} - u_3 \xi_{A4}), \quad A_{66} = h (u_5 - u_3 \xi_{A3}) \\ B_{11} = \frac{h^2}{4} (4\bar{e} u_1 + u_2 \xi_{B1} + u_3 \xi_{B3}), \quad B_{12} = \frac{h^2}{4} (4\bar{e} u_4 - u_3 \xi_{B3}), \quad B_{22} = \frac{h^2}{4} (4\bar{e} u_1 - u_2 \xi_{B1} + u_3 \xi_{B3}) \\ B_{16} = \frac{h^2}{4} (u_2/2 \, \xi_{B2} + u_3 \xi_{B4}), \quad B_{26} = \frac{h^2}{4} (u_2/2 \, \xi_{B2} - u_3 \xi_{B4}), \quad B_{66} = \frac{h^2}{4} (4\bar{e} u_5 - u_3 \xi_{B3}) \\ \bar{A}_{44} = h (u_6 + u_7 \xi_{Ats,1}), \quad \bar{A}_{45} = -h u_7 \xi_{Ats,2}, \quad \bar{A}_{55} = h (u_6 - u_7 \xi_{Ats,1})\end{split}\]and \(D_{ij}\) as \(A_{ij}\), with the factor \(h^3/12\) instead of \(h\), \(\xi_{Di}\) instead of \(\xi_{Ai}\) and \((1 + 12\bar{e}^2) u_1\), \((1 + 12\bar{e}^2) u_4\), \((1 + 12\bar{e}^2) u_5\) instead of \(u_1\), \(u_4\), \(u_5\). The \(\xi_{Bi}\) and \(\xi_{Di}\) about the reference surface are related to those about the mid-surface, \(\xi_{Bi}^0\) and \(\xi_{Di}^0\), by \(\xi_{Bi} = \xi_{Bi}^0 + 4\bar{e} \xi_{Ai}\) and \(\xi_{Di} = \xi_{Di}^0 + 6\bar{e} \xi_{Bi}^0 + 12\bar{e}^2 \xi_{Ai}\), such that \(B = B^0 + e A\) and \(D = D^0 + 2 e B^0 + e^2 A\), the shift of the stiffness integrals to another reference plane (Vasiliev and Morozov [2], Eq. (5.28), p. 235), with \(B^0\), \(D^0\) about the mid-surface.
Aand the transverse shear stiffnesses do not depend onoffset, andlpwith an offset may lie outside the feasible region of the lamination parameters about the mid-surface.With the plane-stress invariants of
MatLamina.rebuild(), its defaultplane_stress=True, these are the stiffnesses of the classical lamination theory, the thickness integrals of the plane-stress \(q_{ijL}\) (Jones [1], Eq. (4.24), p. 198), equal to those oflaminated_plate()for the same layup andoffset, also whene3,nu13andnu23are given; aftermat.rebuild(plane_stress=False)they integrate the rotated three-dimensional stiffnesses instead, seeMatLamina.rebuild(), which the shell elements of pyfe3d do not use. Since the through-thickness distribution of the plies is not known from the lamination parameters, no shear correction can be computed, hence the uncorrected transverse shear stiffnesses. Without plies, the elements rotate them as a tensor, seeShellProp.calc_Ats_element().References
- pyfe3d.shellprop.shellprop_from_lamination_parameters(double thickness, MatLamina matlamina, double xiA1, double xiA2, double xiA3, double xiA4, double xiB1, double xiB2, double xiB3, double xiB4, double xiD1, double xiD2, double xiD3, double xiD4, double xiAts1=0, double xiAts2=0, double offset=0.) ShellProp#
Return a
ShellPropobject based in the thickness, material and lamination parametersThe 14 lamination parameters according to the first-order shear deformation theory are \(\xi_{A1} \cdots \xi_{A4}\), \(\xi_{B1} \cdots \xi_{B4}\), \(\xi_{D1} \cdots \xi_{D4}\), \(\xi_{Ats,1}\) and \(\xi_{Ats,2}\). They are stored in a new
LaminationParametersobject, passed toshellprop_from_LaminationParameters().- Parameters:
- thicknessfloat
The total thickness of the plate, length
- matlamina
MatLaminaobject Material object
- xiA1, xiA2, xiA3, xiA4float
Lamination parameters \(\xi_{A1} \cdots \xi_{A4}\), dimensionless.
- xiB1, xiB2, xiB3, xiB4float
Lamination parameters \(\xi_{B1} \cdots \xi_{B4}\), dimensionless.
- xiD1, xiD2, xiD3, xiD4float
Lamination parameters \(\xi_{D1} \cdots \xi_{D4}\), dimensionless.
- xiAts1, xiAts2float, optional
Lamination parameters \(\xi_{Ats,1}\) and \(\xi_{Ats,2}\), dimensionless. Default
0.- offsetfloat, optional
Offset of the mid-surface from the reference surface, about which the lamination parameters are defined, see
shellprop_from_LaminationParameters(). Length. Default0..
- Returns:
- lam
ShellProp Shell property with the ABD and Ats matrices already calculated. See
shellprop_from_LaminationParameters()for the transverse shear stiffnesses.
- lam
Notes
Note that \(\xi_{Ats,1}\) and \(\xi_{Ats,2}\) are optional and usually equal to zero, becoming important only when the transverse shear modulus is different in the two directions, i.e. when \(G_{13} \ne G{23}\), since they multiply the invariant \(u_7 = (q_{44} - q_{55})/2 = (g_{23} - g_{13})/2\), see
shellprop_from_LaminationParameters().
See also
The theory of the shell properties, Shell properties.