Skip to content

BrickElementManager

BrickElementManager

BrickElementManager(manager: 'ElementManager')

Create continuum brick definitions through model.element.brick.

Pass a managed nD material object, preferably from the same Model. Integer material tags are resolved through that model's material registry. A string is interpreted as an integer tag, not a material name. Component constructors validate compatible nodal DOFs and options. Mesh geometry is supplied later through model.meshpart.

Example
from femora import Model

model = Model()
soil = model.material.nd.elastic_isotropic(user_name="soil", E=1e5, nu=0.3, rho=1.8)
brick = model.element.brick.std(ndof=3, material=soil, b3=-9.81 * 1.8)
assert brick.get_material() is soil

Methods:

Name Description
std

Create a stdBrickElement with validated material and body-force inputs.

pml3d

Create a PML3DElement with validated PML and Newmark parameters.

ssp

Create an SSPbrickElement with validated material and body-force inputs.

Methods:

std

std(ndof: int, material: Material | int | str, *, b1: float = 0.0, b2: float = 0.0, b3: float = 0.0, lumped: bool = False) -> stdBrickElement

Create a stdBrickElement with validated material and body-force inputs.

Parameters:

Name Type Description Default
ndof int

Number of DOFs per node. Must be 3 for this element.

required
material Material | int | str

Managed 3D nDMaterial assigned to the brick.

required
b1 float

Constant body force in the global x-direction.

0.0
b2 float

Constant body force in the global y-direction.

0.0
b3 float

Constant body force in the global z-direction.

0.0
lumped bool

When True, export the -lumped mass-matrix flag.

False

Raises:

Type Description
ValueError

If the material is incompatible, if ndof is not 3, or if any provided parameter is invalid.

Returns:

Name Type Description
component stdBrickElement

Registered definition; no solver is launched.

pml3d

pml3d(ndof: int, material: Material | int | str, *, PML_Thickness: float, meshType: str, meshTypeParameters: list[float] | str, gamma: float = 0.5, beta: float = 0.25, eta: float = 1.0 / 12.0, ksi: float = 1.0 / 48.0, m: float = 2.0, R: float = 1e-08, Cp: float | None = None, alpha0: float | None = None, beta0: float | None = None) -> PML3DElement

Create a PML3DElement with validated PML and Newmark parameters.

Parameters:

Name Type Description Default
ndof int

Number of DOFs per node. Must be 9 for this element.

required
material Material | int | str

Managed isotropic elastic 3D nDMaterial.

required
PML_Thickness float

Thickness of the PML layer.

required
meshType str

box or general mesh type passed to OpenSees.

required
meshTypeParameters list[float] | str

Six numeric values or a comma-separated string describing the PML mesh orientation.

required
gamma float

Newmark gamma parameter.

0.5
beta float

Newmark beta parameter.

0.25
eta float

Newmark eta parameter.

1.0 / 12.0
ksi float

Newmark ksi parameter.

1.0 / 48.0
m float

PML attenuation parameter when alpha0/beta0 are omitted.

2.0
R float

PML reflection parameter when alpha0/beta0 are omitted.

1e-08
Cp float | None

Optional P-wave speed override.

None
alpha0 float | None

Optional PML alpha parameter; must be paired with beta0.

None
beta0 float | None

Optional PML beta parameter; must be paired with alpha0.

None

Raises:

Type Description
ValueError

If the material is incompatible, if ndof is not 9, or if any PML or Newmark parameter is invalid.

Returns:

Name Type Description
component PML3DElement

Registered definition; no solver is launched.

ssp

ssp(ndof: int, material: Material | int | str, *, b1: float = 0.0, b2: float = 0.0, b3: float = 0.0) -> SSPbrickElement

Create an SSPbrickElement with validated material and body-force inputs.

Parameters:

Name Type Description Default
ndof int

Number of DOFs per node. Must be 3 for this element.

required
material Material | int | str

Managed 3D nDMaterial assigned to the brick.

required
b1 float

Constant body force in the global x-direction.

0.0
b2 float

Constant body force in the global y-direction.

0.0
b3 float

Constant body force in the global z-direction.

0.0

Raises:

Type Description
ValueError

If the material is incompatible, if ndof is not 3, or if any provided parameter is invalid.

Returns:

Name Type Description
component SSPbrickElement

Registered definition; no solver is launched.