NodeSupport#
- class planestress.pre.boundary_condition.NodeSupport(point: tuple[float, float], direction: str, value: float = 0.0)[source]#
Bases:
NodeBoundaryCondition
Class for adding a support to a node.
- Variables:
mesh_tag – Tagged node object.
Methods
Applies the boundary condition.
Gets the degrees of freedom based on the BC direction.
Get the degrees of freedom of the node.
- __init__(point: tuple[float, float], direction: str, value: float = 0.0) None [source]#
Inits the NodeSupport class.
- Parameters:
Example
TODO.
- 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.
- Returns:
Modified stiffness matrix and load vector (
k
,f
).- Return type:
tuple[lil_array, npt.NDArray[np.float64]]