Skip to content

BeamElementManager

BeamElementManager

BeamElementManager(manager: 'ElementManager')

Create beam-column and truss definitions through model.element.beam.

Pass a section object or section tag, and for beam-columns a managed transformation object or integer tag. Transformation names are unsupported. All returned definitions enter the parent ElementManager's registry. Creating a definition does not create a line mesh, connectivity, or boundary conditions.

Example
from femora import Model

model = Model()
section = model.section.beam.elastic(
    user_name="beam", E=200e6, G=77e6, A=0.01,
    Iy=1e-4, Iz=1e-4, J=2e-4,
)
transform = model.transformation.transformation3d("Linear", 0, 0, 1)
beam = model.element.beam.disp(
    ndof=6, section=section, transformation=transform, numIntgrPts=5,
)
assert beam.get_section() is section

Methods:

Name Description
elastic

Create an ElasticBeamColumnElement with validated dependencies.

disp

Create a DispBeamColumnElement with validated dependencies.

force

Create a ForceBeamColumnElement with validated dependencies.

truss

Create a TrussElement with validated section and mass options.

Methods:

elastic

elastic(ndof: int, section: Section | int | str, transformation: GeometricTransformation | int, *, massDens: float = 0.0, cMass: bool = False) -> ElasticBeamColumnElement

Create an ElasticBeamColumnElement with validated dependencies.

Parameters:

Name Type Description Default
ndof int

Number of DOFs per node. Must be 3 for 2D or 6 for 3D.

required
section Section | int | str

Managed section object defining axial and bending stiffness.

required
transformation GeometricTransformation | int

Managed geometric transformation defining the local element axis.

required
massDens float

Optional mass per unit length for dynamic analyses.

0.0
cMass bool

When True, use a consistent mass matrix.

False

Raises:

Type Description
ValueError

If ndof is unsupported, if the section or transformation is missing, if mass density is negative, or if dependencies cannot be resolved.

Returns:

Name Type Description
component ElasticBeamColumnElement

Registered definition; no solver is launched.

disp

disp(ndof: int, section: Section | int | str, transformation: GeometricTransformation | int, *, numIntgrPts: int = 5, massDens: float = 0.0) -> DispBeamColumnElement

Create a DispBeamColumnElement with validated dependencies.

Parameters:

Name Type Description Default
ndof int

Number of DOFs per node. Must be 3 for 2D or 6 for 3D.

required
section Section | int | str

Managed section object integrated along the member.

required
transformation GeometricTransformation | int

Managed geometric transformation defining the local element axis.

required
numIntgrPts int

Number of Gauss integration points along the element.

5
massDens float

Optional mass per unit length for dynamic analyses.

0.0

Raises:

Type Description
ValueError

If ndof is unsupported, if the section or transformation is missing, if integration-point or mass inputs are invalid, or if dependencies cannot be resolved.

Returns:

Name Type Description
component DispBeamColumnElement

Registered definition; no solver is launched.

force

force(ndof: int, section: Section | int | str, transformation: GeometricTransformation | int, *, numIntgrPts: int = 5, massDens: float = 0.0, maxIters: int = 10, tol: float = 1e-12) -> ForceBeamColumnElement

Create a ForceBeamColumnElement with validated dependencies.

Parameters:

Name Type Description Default
ndof int

Number of DOFs per node. Must be 3 for 2D or 6 for 3D.

required
section Section | int | str

Managed section object integrated along the member.

required
transformation GeometricTransformation | int

Managed geometric transformation defining the local element axis.

required
numIntgrPts int

Number of Gauss integration points along the element.

5
massDens float

Optional mass per unit length for dynamic analyses.

0.0
maxIters int

Maximum number of internal compatibility iterations.

10
tol float

Convergence tolerance for compatibility iteration.

1e-12

Raises:

Type Description
ValueError

If ndof is unsupported, if the section or transformation is missing, if integration, mass, or iteration inputs are invalid, or if dependencies cannot be resolved.

Returns:

Name Type Description
component ForceBeamColumnElement

Registered definition; no solver is launched.

truss

truss(ndof: int, section: Section | int | str, rho: float = 0.0, cMass: int = 0, doRayleigh: int = 0) -> TrussElement

Create a TrussElement with validated section and mass options.

Parameters:

Name Type Description Default
ndof int

Number of nodal DOFs in the surrounding model (2, 3, or 6).

required
section Section | int | str

Managed section object defining axial stiffness and area.

required
rho float

Optional mass per unit length.

0.0
cMass int

Consistent mass flag, 0 or 1.

0
doRayleigh int

Rayleigh damping flag, 0 or 1.

0

Raises:

Type Description
ValueError

If inputs are invalid or the section cannot be resolved.

Returns:

Name Type Description
component TrussElement

Registered definition; no solver is launched.