Skip to content

LineMeshPart

LineMeshPart

LineMeshPart(category: str, mesh_type: str, user_name: str, element: Optional[Element], region: Optional[RegionBase] = None)

Bases: MeshPart

Extension base for concrete line mesh parts and line-mass bookkeeping.

Normal construction goes through model.meshpart.line. Subclasses inherit the MeshPart contract and share density resolution and rotational-mass helpers. This base does not itself generate a line mesh. Density and mass-per-length inputs are alternatives, not additive mass contributions.

Methods:

Name Description
is_elemnt_compatible

Test a type name against the line family's case-insensitive allowlist.

Methods:

is_elemnt_compatible classmethod

is_elemnt_compatible(element: str) -> bool

Test a type name against the line family's case-insensitive allowlist.

Parameters:

Name Type Description Default
element str

Element formulation name, not an element object or tag.

required

Returns:

Name Type Description
compatible bool

Membership in the supported type-name list. Material compatibility and geometric validity are not tested.