Beam property module (pyfe3d.beamprop)#
Defines BeamProp, the cross-section and material properties read
by the elements BeamC, BeamLR and Truss.
- class pyfe3d.beamprop.BeamProp#
General class to represent beam properties.
No shear correction factors or geometric correction factors are applied internally during the calculation of the structural matrices; any correction must be applied by the user to the attributes.
The constructor takes no argument and sets all attributes to
0. The attributes are read, each time it is called, by theupdate_*methods ofBeamC,BeamLRandTrussthat receive the property.The integrals over the cross section are taken with the coordinates \(y\) and \(z\) of the element coordinate system, measured from the beam axis that joins the two nodes of the element.
G12,G13andGJfollowGuntil they are set: readingG12orG13returnsG, and readingGJreturnsG*J, with the values ofGandJat the time of reading. Once set, the attribute keeps its own value, independently ofGandJ, until it is deleted, e.g.del prop.G12, which makes it followGagain. A property that sets onlyGandJusesGin the two transverse shear planes andG*Jin torsion.The elements read the stiffness of the cross section through the sectional stiffness matrix
C, see the Notes.Cfollows the 11 stiffness attributesA,E,G12,G13,GJ,Ay,Az,Iyy,IzzandIyzuntil it is set: readingCreturns the matrix built from them. Once set,Ckeeps its own 21 independent entries and the elements no longer read the 11 attributes, until it is deleted,del prop.C. A property that does not setCgives the matrices of the 11 stiffness attributes.Cmust be positive semi-definite: the strain energy per unit length, see the Notes, must not be negative for any strains.BeamCandBeamLRcheck it each time one of theirupdate_*methods readsC, set or built from the 11 attributes, and raiseValueErrorfor a negative diagonal entry, a zero diagonal entry with a non-zero entry in its row, or aCwhose Cholesky factorization with diagonal pivoting, after scaling to a unit diagonal, fails to a tolerance of1e-10. Zero stiffnesses are allowed, e.g.GJ = 0andIyy = 0in a planar model whose out-of-plane degrees of freedom are constrained. With couplings other thanC[0, 3],BeamCneedsCpositive definite, see the Notes.Trussdoes not checkC.- Attributes:
- A,float
Area of the cross section, dimension length squared.
- E,float
Young modulus, force per unit area.
- G,float
Shear modulus, force per unit area. It is the value of
G12andG13when they are not set, and it multipliesJinGJwhenGJis not set.- G12,float
Transverse shear modulus of the element plane \(xy\), of the bending with the displacement \(v\), force per unit area. Returns
Gwhen not set.- G13,float
Transverse shear modulus of the element plane \(xz\), of the bending with the displacement \(w\), force per unit area. Returns
Gwhen not set.- GJ,float
Torsional stiffness, dimension force times length squared. Returns
G*Jwhen not set.- Iyy,float
Second moment of area about the y axis, the integral of the square of \(z\) over the cross section, dimension length to the fourth.
- Izz,float
Second moment of area about the z axis, the integral of the square of \(y\) over the cross section, dimension length to the fourth.
- Iyz,float
Product moment of area, the integral of \(y\) times \(z\) over the cross section, dimension length to the fourth.
- J,float
Torsion constant, dimension length to the fourth. The elements use it only through
GJ, whenGJis not set.- Ay,float
Integral of \(y\) over the cross section, dimension length cubed.
- Az,float
Integral of \(z\) over the cross section, dimension length cubed.
- intrho,float
Integral of the density over the cross section, dimension mass per unit length.
- intrhoy,float
Integral of \(y\) times the density over the cross section, dimension mass.
- intrhoz,float
Integral of \(z\) times the density over the cross section, dimension mass.
- intrhoy2,float
Integral of the square of \(y\) times the density over the cross section, dimension mass times length.
- intrhoz2,float
Integral of the square of \(z\) times the density over the cross section, dimension mass times length.
- intrhoyz,float
Integral of \(y\) times \(z\) times the density over the cross section, dimension mass times length.
- C,np.ndarray
Sectional stiffness matrix, shape
(6, 6), symmetric, of the strains \(\{\bar{\varepsilon}, \bar{\gamma}_y, \bar{\gamma}_z, \kappa_x, \kappa_y, \kappa_z\}\), see the Notes; dimension force times length to the number of its indicesi,jthat are3,4or5, e.g. force forC[0, 0]and force times length squared forC[4, 4]. Reading it returns a copy, which is the matrix of the 11 stiffness attributes whenCis not set. It can be set with any array-like of shape(6, 6), e.g.yu_to_pyfe3d(sec.Kt)ofpyfe3d.vabs, whose asymmetry, if any, must not exceed1e-10times its largest entry; the symmetric part is stored. It must be positive semi-definite, see above.
Notes
The attributes are the following integrals over the cross section, where \(\rho\) Is the density:
Iyy: \(\int_y \int_z z^2 dy dz\)Izz: \(\int_y \int_z y^2 dy dz\)Iyz: \(\int_y \int_z y z dy dz\)Ay: \(\int_y \int_z y dy dz\)Az: \(\int_y \int_z z dy dz\)intrho: \(\int_{y_e} \int_{z_e} \rho(y, z) dy dz\)intrhoy: \(\int_y \int_z y \rho(y, z) dy dz\)intrhoz: \(\int_y \int_z z \rho(y, z) dy dz\)intrhoy2: \(\int_y \int_z y^2 \rho(y, z) dy dz\)intrhoz2: \(\int_y \int_z z^2 \rho(y, z) dy dz\)intrhoyz: \(\int_y \int_z y z \rho(y, z) dy dz\)
In the beam elements, see
BeamC, the transverse shear strains of the rigid cross section at the point \((y, z)\) are \(\gamma_{xy} - z {r_x}_{,x}\) and \(\gamma_{xz} + y {r_x}_{,x}\), where \(\gamma_{xy}\) and \(\gamma_{xz}\) are those of the beam axis and \({r_x}_{,x}\) is the twist. With \(G_{12}\) =G12multiplying the first and \(G_{13}\) =G13the second, their integral over the cross section gives the shear part of the strain energy per unit length, \(\frac{1}{2} \boldsymbol{\gamma}^\top \boldsymbol{D}_s \boldsymbol{\gamma}\) with \(\boldsymbol{\gamma} = \{\gamma_{xy}, \gamma_{xz}, {r_x}_{,x}\}^\top\) and\[\begin{split}\boldsymbol{D}_s = \begin{bmatrix} G_{12} A & 0 & -G_{12} A_z \\ 0 & G_{13} A & G_{13} A_y \\ -G_{12} A_z & G_{13} A_y & G_{12} I_{yy} + G_{13} I_{zz} \end{bmatrix}\end{split}\]The elements replace the last entry, the torsional stiffness of the rigid cross section without warping, by
GJ, given by the user, e.g. \(G J\) with the torsion constant \(J\) [1] of the Saint-Venant torsion, in which the cross section warps freely.G12andG13also enter the shape functions ofBeamC, through its shear parameters \(\alpha_y\) and \(\alpha_z\) without couplings. With non-zeroAyandAz, i.e. when the beam axis is not the centroidal axis, the axial strain is coupled with the bending curvatures and the transverse shear strains with the twist.intrhoy,intrhozandintrhoyzcouple the inertia of the translations and of the rotations, seeBeamC.update_M().Sectional stiffness matrix.
BeamCandBeamLRtake the strain energy per unit length as \(\frac{1}{2} \boldsymbol{\epsilon}^\top \boldsymbol{C} \boldsymbol{\epsilon}\), with \(\boldsymbol{C}\) =Cand the generalized strains of the beam axis\[\boldsymbol{\epsilon} = \{\bar{\varepsilon}, \bar{\gamma}_y, \bar{\gamma}_z, \kappa_x, \kappa_y, \kappa_z\}^\top = \{u_{,x}, v_{,x} - r_z, w_{,x} + r_y, {r_x}_{,x}, -{r_z}_{,x}, {r_y}_{,x}\}^\top\]i.e. the index
0is the axial strain,1and2are the transverse shear strains of the planes \(xy\) and \(xz\),3is the twist, and4and5are the curvatures that give the axial strain \(\bar{\varepsilon} + y \kappa_y + z \kappa_z\) at the point \((y, z)\) of the rigid cross section. The work-conjugate sectional forces \(\boldsymbol{C} \boldsymbol{\epsilon}\) are \(\{N, V_y, V_z, M_x, M_z, M_y\}\), with \(M_z = \int \sigma_{xx} y \, dA\) and \(M_y = \int \sigma_{xx} z \, dA\). This is the order ofyu_to_pyfe3d(), which converts the generalized Timoshenko stiffness matrix of the strains \(\{\gamma_{11}, 2\gamma_{12}, 2\gamma_{13}, \kappa_1, \kappa_2, \kappa_3\}\) of VABS [2], e.g.CrossSection.Ktofpyfe3d.vabs: with \(x_2 = y\) and \(x_3 = z\), \(\kappa_1 = \kappa_x\), \(\kappa_2 = \kappa_z\) and \(\kappa_3 = -\kappa_y\), so the VABS indices0, 1, 2, 3, 4, 5become0, 1, 2, 3, 5, 4, and the entries that couple \(\kappa_3\) with another strain change sign.When
Cis not set, it is built from the 11 stiffness attributes, as the integral over the rigid cross section given below:\[\begin{split}\boldsymbol{C} = \begin{bmatrix} E A & 0 & 0 & 0 & E A_y & E A_z \\ 0 & G_{12} A & 0 & -G_{12} A_z & 0 & 0 \\ 0 & 0 & G_{13} A & G_{13} A_y & 0 & 0 \\ 0 & -G_{12} A_z & G_{13} A_y & G J & 0 & 0 \\ E A_y & 0 & 0 & 0 & E I_{zz} & E I_{yz} \\ E A_z & 0 & 0 & 0 & E I_{yz} & E I_{yy} \end{bmatrix}\end{split}\]with \(G J\) =
GJ. This pattern has 11 parameters, against the 21 independent entries of a general symmetric matrix: the extension-shear (C[0, 1],C[0, 2]), extension-twist (C[0, 3]), shear-shear (C[1, 2]), bending-shear (C[1:3, 4:6]) and bending-twist (C[3, 4],C[3, 5]) couplings of a composite section, e.g. of the circumferentially uniform stiffness (CUS) box of [2], can only be given throughC. When the only coupling ofCisC[0, 3], the shear parameters \(\alpha_y\) and \(\alpha_z\) of the shape functions ofBeamCare taken from its diagonal, \(\alpha_y = -12 C_{44}/(C_{11} L^2)\) and \(\alpha_z = -12 C_{55}/(C_{22} L^2)\), which with the matrix above are \(-12 E I_{zz}/(G_{12} A L^2)\) and \(-12 E I_{yy}/(G_{13} A L^2)\); with any other coupling, including those ofAy,AzandIyz, its shape functions depend on all entries ofC, which must then be positive definite, and the element remains exact under nodal loads, see the notes ofBeamC. The axial force of the geometric stiffness is the first row of \(\boldsymbol{C} \boldsymbol{\epsilon}\).Trussreads onlyC[0, 0], its \(E A\), andC[3, 3], its \(G J\). The mass integralsintrho, etc., are independent ofC.The shear correction factors \(k_y\) and \(k_z\) of the two planes are applied to the moduli,
G12\(= k_y G\) andG13\(= k_z G\), which leaves the torsional stiffnessG*Junchanged. It is possible to have more complex scenarios where the different cross section parametersAy,AzandGJhave different corrections applied due to geometric properties. It is the user’s responsability to apply these correction factors properly to achieve a general representation of the beam element behaviour by means of this property class.For beams with homogeneous material along the cross section some of the quantities above can be calculated as follows, assuming that
rhois the material density:intrho = A*rhointrhoy2 = Izz*rhointrhoz2 = Iyy*rhointrhoyz = Iyz*rhoReferences
[1]Torsion constant, Wikipedia, https://en.wikipedia.org/wiki/Torsion_constant
[2] (1,2)Yu, W., Hodges, D. H., and Ho, J. C., “Variational asymptotic beam sectional analysis – An updated version”, International Journal of Engineering Science, 59, pp. 40–64, 2012. https://doi.org/10.1016/j.ijengsci.2012.03.006
Examples
A steel square section of side
0.05, in SI units:>>> from pyfe3d.beamprop import BeamProp >>> prop = BeamProp() >>> prop.A = 0.05*0.05 >>> prop.E = 203e9 >>> prop.G = 78e9 >>> prop.Iyy = prop.Izz = 0.05**4/12 >>> prop.J = prop.Iyy + prop.Izz >>> prop.intrho = 7830*prop.A >>> prop.C.shape (6, 6) >>> float(prop.G12) 78000000000.0
- A#
A: ‘double’
- Ay#
Ay: ‘double’
- Az#
Az: ‘double’
- C#
Return the sectional stiffness matrix
CThe matrix read by the elements: the matrix set, or the matrix built from the 11 stiffness attributes
A,E,G12,G13,GJ,Ay,Az,Iyy,IzzandIyzwhenCis not set. A copy is returned: changing it does not change the property.- Returns:
- Cnp.ndarray
Symmetric matrix of shape
(6, 6), in the order of the strains and the dimensions given in the attributeCof the class.
- E#
E: ‘double’
- G#
G: ‘double’
- G12#
Return the transverse shear modulus
G12of the element plane \(xy\)The value read by the elements: the value set, or
GwhenG12is not set.- Returns:
- G12float
The transverse shear modulus
G12of the element plane \(xy\), force per unit area.
- G13#
Return the transverse shear modulus
G13of the element plane \(xz\)The value read by the elements: the value set, or
GwhenG13is not set.- Returns:
- G13float
The transverse shear modulus
G13of the element plane \(xz\), force per unit area.
- GJ#
Return the torsional stiffness
GJThe value read by the elements: the value set, or
G*JwhenGJis not set, with the values ofGandJat the time of reading.- Returns:
- GJfloat
The torsional stiffness
GJ, force times length squared.
- Iyy#
Iyy: ‘double’
- Iyz#
Iyz: ‘double’
- Izz#
Izz: ‘double’
- J#
J: ‘double’
- intrho#
intrho: ‘double’
- intrhoy#
intrhoy: ‘double’
- intrhoy2#
intrhoy2: ‘double’
- intrhoyz#
intrhoyz: ‘double’
- intrhoz#
intrhoz: ‘double’
- intrhoz2#
intrhoz2: ‘double’
See also
The theory of this module in context: Beam properties.