GhostNodeElement
GhostNodeElement
Bases: Element
Virtual element that owns mesh nodes without creating OpenSees elements.
GhostNodeElement keeps nodes in the Femora mesh and Tcl export pipeline
without emitting a structural element command. It is commonly used for
center-of-mass nodes, control or reference nodes, and mass application
points that should not participate in element stiffness.
Note
- Each instance receives a unique sentinel
ndfvalue so mesh merging does not combine ghost nodes with structural nodes or with one another. At export, the sentinel is mapped back to the real DOF count throughresolve_ndf. to_tclreturns a Tcl comment rather than an OpenSees element command; the owning nodes are still written by the export loop.
Example
Create a GhostNodeElement with merge-protected sentinel DOF metadata.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ndof
|
int
|
Real number of DOFs per node written during Tcl export. Must be 3 or 6. |
3
|
**kwargs
|
Additional keyword arguments forwarded to the base element constructor. |
{}
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Attributes
Methods:
resolve_ndf
classmethod
Map a mesh ndf value to the real DOF count for Tcl export.
If ndf_value is a ghost sentinel, it is resolved through the
internal map. Otherwise the input is returned unchanged.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ndf_value
|
int
|
Raw |
required |
Returns:
| Type | Description |
|---|---|
int
|
The real DOF count to write into the Tcl |