EmbeddedNodeInterface
EmbeddedNodeInterface
EmbeddedNodeInterface(name: str, constrained_node: 'MeshPart | str | int', retained_nodes: 'List[MeshPart | str | int] | None' = None, rot: bool = False, p: bool = False, K: float | None = None, KP: float | None = None, offset: float = None, use_mesh_part_points=True, normal_filter: list[float] | None = None, filter_tolerance: float = 0.98, contact: bool = False, Kn: float = 100000000.0, Kt: float = 100000000.0, mu: float = 0.5, int_type: int = 1, area_scaled: bool = False, *, meshpart)
Bases: InterfaceBase, GeneratesMeshMixin
Embedded node constraint contact interface.
EmbeddedNodeInterface models multi-point constraint boundary connections in OpenSees by constraining the displacements (and optionally rotations) of a constrained node to be a weighted average of a set of surrounding retained nodes. It leverages a penalty approach element formulation internally.
Tcl form
None (renders internally via OpenSees interface-specific TCL commands).
Example
from femora.core.model import Model
model = Model()
# Create an embedded node interface mapping a constrained node part to retained parts
interface = model.interface.node_interface(
name="node_soil_interface",
constrained_node="pile_head_node",
retained_nodes=["soil_volume"],
rot=True,
p=True,
K=1e10,
)
Initialize the EmbeddedNodeInterface.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Unique name of the node interface. |
required |
constrained_node
|
'MeshPart | str | int'
|
The constrained node part instance, name, or tag. |
required |
retained_nodes
|
'List[MeshPart | str | int] | None'
|
Optional list of retained node part instances, names, or tags. If None, uses all mesh parts in the model except the constrained node. |
None
|
rot
|
bool
|
If True, constrains rotational degrees of freedom. Defaults to False. |
False
|
p
|
bool
|
If True, activates pressure-dof constraints. Defaults to False. |
False
|
K
|
float | None
|
Penalty stiffness parameter for translation constraints. |
None
|
KP
|
float | None
|
Penalty stiffness parameter for rotational constraints. |
None
|
offset
|
float
|
Geometric normal offset for locating coupling nodes. Defaults to None. |
None
|
use_mesh_part_points
|
If True, uses mesh part nodal points directly. Defaults to True. |
True
|
|
normal_filter
|
list[float] | None
|
Optional 3D orientation direction vector to filter points. Defaults to None. |
None
|
filter_tolerance
|
float
|
Direction cosine tolerance for the normal filter. Defaults to 0.98. |
0.98
|
contact
|
bool
|
If True, creates a frictional |
False
|
Kn
|
float
|
Normal penalty stiffness for contact. Defaults to 1e8. |
100000000.0
|
Kt
|
float
|
Tangential penalty stiffness for contact. Defaults to 1e8. |
100000000.0
|
mu
|
float
|
Friction coefficient for contact. Defaults to 0.5. |
0.5
|
int_type
|
int
|
Contact integration type: 0 for implicit or 1 for IMPL-EX. Defaults to 1. |
1
|
area_scaled
|
bool
|
If True, |
False
|
normal_filter
|
list[float] | None
|
Either a 3-vector (nodes whose surface normal is within
|
None
|
meshpart
|
MeshPart registry manager from the parent model. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Methods:
plot
plot(*, show_mesh: bool = True, show_selected_hosts: bool = True, show_generated_interface: bool = True, show_normals: bool = True, show_edges: bool = True, mesh_opacity: float = 0.08, host_opacity: float = 0.55, interface_opacity: float = 0.9, constrained_color: str = 'black', host_color: str = 'orange', point_color: str = 'deepskyblue', interface_color: str = 'crimson', normal_color: str = 'seagreen', off_screen: bool = False, screenshot: str | None = None, window_size: tuple[int, int] = (1400, 900), return_plotter: bool = False) -> pv.Plotter | None
Plot the assembled embedded-node interface selection.
The plot shows the constrained mesh part, the selected retained host cells that contain constrained points, the constrained points used by the interface, optional normals, and the generated interface cells when they are present in the assembled mesh.