Skip to content

SpLoad

SpLoad

SpLoad(*, dof: int, value: float, node_tag: Optional[int] = None, node_mask: Optional[object] = None, pids: Optional[List[int]] = None)

Bases: Load

Single-point load component for applying values to a specific degree of freedom.

SpLoad represents a single-point boundary value applied to a specific DOF at a node. It is typically registered under a Plain pattern to prescribe displacements or boundary loads.

Tcl form

sp <nodeTag> <dof> <value>

Note
  • The degree of freedom (dof) is 1-indexed (e.g., 1 for X, 2 for Y).
  • If a node_mask is provided, the single-point load is applied to all selected nodes.
  • In parallel computing contexts, partition IDs (pids) specify which processor core(s) should execute the command.
Example
from femora.core.model import Model

model = Model()
ts = model.time_series.constant(factor=1.0)
pattern = model.pattern.plain(time_series=ts)

# Apply a prescribed value of -5.0 to DOF 2 of node 3
load = pattern.add_load.sp(
    node_tag=3,
    dof=2,
    value=-5.0,
)

Create a single-point load component.

Parameters:

Name Type Description Default
dof int

1-indexed degree of freedom (DOF) to apply the value to.

required
value float

Numerical value of the applied single-point excitation.

required
node_tag Optional[int]

Optional explicit tag of the target node.

None
node_mask Optional[object]

Optional NodeMask object to apply this load to multiple nodes.

None
pids Optional[List[int]]

Optional processor partition IDs for parallel execution.

None

Raises:

Type Description
ValueError

If neither node_tag nor node_mask is specified, if node_mask is not a NodeMask, or if input validation fails.