BoundaryCondition#
- class planestress.pre.boundary_condition.BoundaryCondition(direction: str, value: float, priority: int)[source]#
Bases:
object
Abstract base class for a boundary condition.
- Variables:
mesh_tag – Tagged entity object.
Methods
Applies the boundary condition.
Gets the degrees of freedom based on the BC direction.
- __init__(direction: str, value: float, priority: int) None [source]#
Inits the BoundaryCondition class.
- apply_bc(k: lil_array, f: npt.NDArray[np.float64]) tuple[lil_array, npt.NDArray[np.float64]] [source]#
Applies the boundary condition.
- Parameters:
k (lil_array) – Stiffness matrix.
f (npt.NDArray[np.float64]) – Load vector.
- Raises:
NotImplementedError – If this method has not been implemented.
- Return type:
tuple[lil_array, npt.NDArray[np.float64]]