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 the update_* methods of BeamC, BeamLR and Truss that 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, G13 and GJ follow G until they are set: reading G12 or G13 returns G, and reading GJ returns G*J, with the values of G and J at the time of reading. Once set, the attribute keeps its own value, independently of G and J, until it is deleted, e.g. del prop.G12, which makes it follow G again. A property that sets only G and J uses G in the two transverse shear planes and G*J in torsion.

The elements read the stiffness of the cross section through the sectional stiffness matrix C, see the Notes. C follows the 11 stiffness attributes A, E, G12, G13, GJ, Ay, Az, Iyy, Izz and Iyz until it is set: reading C returns the matrix built from them. Once set, C keeps 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 set C gives the matrices of the 11 stiffness attributes.

C must be positive semi-definite: the strain energy per unit length, see the Notes, must not be negative for any strains. BeamC and BeamLR check it each time one of their update_* methods reads C, set or built from the 11 attributes, and raise ValueError for a negative diagonal entry, a zero diagonal entry with a non-zero entry in its row, or a C whose Cholesky factorization with diagonal pivoting, after scaling to a unit diagonal, fails to a tolerance of 1e-10. Zero stiffnesses are allowed, e.g. GJ = 0 and Iyy = 0 in a planar model whose out-of-plane degrees of freedom are constrained. With couplings other than C[0, 3], BeamC needs C positive definite, see the Notes. Truss does not check C.

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 G12 and G13 when they are not set, and it multiplies J in GJ when GJ is not set.

G12,float

Transverse shear modulus of the element plane \(xy\), of the bending with the displacement \(v\), force per unit area. Returns G when not set.

G13,float

Transverse shear modulus of the element plane \(xz\), of the bending with the displacement \(w\), force per unit area. Returns G when not set.

GJ,float

Torsional stiffness, dimension force times length squared. Returns G*J when 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, when GJ is 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 indices i, j that are 3, 4 or 5, e.g. force for C[0, 0] and force times length squared for C[4, 4]. Reading it returns a copy, which is the matrix of the 11 stiffness attributes when C is not set. It can be set with any array-like of shape (6, 6), e.g. yu_to_pyfe3d(sec.Kt) of pyfe3d.vabs, whose asymmetry, if any, must not exceed 1e-10 times 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}\) = G12 multiplying the first and \(G_{13}\) = G13 the 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. G12 and G13 also enter the shape functions of BeamC, through its shear parameters \(\alpha_y\) and \(\alpha_z\) without couplings. With non-zero Ay and Az, 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, intrhoz and intrhoyz couple the inertia of the translations and of the rotations, see BeamC.update_M().

Sectional stiffness matrix. BeamC and BeamLR take the strain energy per unit length as \(\frac{1}{2} \boldsymbol{\epsilon}^\top \boldsymbol{C} \boldsymbol{\epsilon}\), with \(\boldsymbol{C}\) = C and 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 0 is the axial strain, 1 and 2 are the transverse shear strains of the planes \(xy\) and \(xz\), 3 is the twist, and 4 and 5 are 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 of yu_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.Kt of pyfe3d.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 indices 0, 1, 2, 3, 4, 5 become 0, 1, 2, 3, 5, 4, and the entries that couple \(\kappa_3\) with another strain change sign.

When C is 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 through C. When the only coupling of C is C[0, 3], the shear parameters \(\alpha_y\) and \(\alpha_z\) of the shape functions of BeamC are 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 of Ay, Az and Iyz, its shape functions depend on all entries of C, which must then be positive definite, and the element remains exact under nodal loads, see the notes of BeamC. The axial force of the geometric stiffness is the first row of \(\boldsymbol{C} \boldsymbol{\epsilon}\). Truss reads only C[0, 0], its \(E A\), and C[3, 3], its \(G J\). The mass integrals intrho, etc., are independent of C.

The shear correction factors \(k_y\) and \(k_z\) of the two planes are applied to the moduli, G12 \(= k_y G\) and G13 \(= k_z G\), which leaves the torsional stiffness G*J unchanged. It is possible to have more complex scenarios where the different cross section parameters Ay, Az and GJ have 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 rho is the material density:

intrho = A*rho intrhoy2 = Izz*rho intrhoz2 = Iyy*rho intrhoyz = Iyz*rho

References

[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 C

The 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, Izz and Iyz when C is 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 attribute C of the class.

E#

E: ‘double’

G#

G: ‘double’

G12#

Return the transverse shear modulus G12 of the element plane \(xy\)

The value read by the elements: the value set, or G when G12 is not set.

Returns:
G12float

The transverse shear modulus G12 of the element plane \(xy\), force per unit area.

G13#

Return the transverse shear modulus G13 of the element plane \(xz\)

The value read by the elements: the value set, or G when G13 is not set.

Returns:
G13float

The transverse shear modulus G13 of the element plane \(xz\), force per unit area.

GJ#

Return the torsional stiffness GJ

The value read by the elements: the value set, or G*J when GJ is not set, with the values of G and J at 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.