Node
- class compas_fea2.model.Node[source]
Bases:
FEAData
Class representing a Node object.
- Parameters:
- xyzlist[float, float, float] |
compas.geometry.Point
The location of the node in the global coordinate system.
- massfloat or tuple, optional
Lumped nodal mass, by default
None
. Iffloat
, the same value is used in all 3 directions. if you want to specify a different mass for each direction, provide atuple
as (mass_x, mass_y, mass_z) in global coordinates.- temperaturefloat, optional
The temperature at the Node.
- namestr, optional
Uniqe identifier. If not provided it is automatically generated. Set a name if you want a more human-readable input file.
- xyzlist[float, float, float] |
Notes
Nodes are registered to a
compas_fea2.model.Part
object and can belong to only one Part. Every time a node is added to a Part, it gets registered to that Part.Examples
>>> node = Node(xyz=(1.0, 2.0, 3.0))
- Attributes:
- namestr
Uniqe identifier. If not provided it is automatically generated. Set a name if you want a more human-readable input file.
- masstuple
Lumped nodal mass in the 3 global directions (mass_x, mass_y, mass_z).
- keystr, read-only
The identifier of the node.
- xyzlist[float]
The location of the node in the global coordinate system.
- xfloat
The X coordinate.
- yfloat
The Y coordinate.
- zfloat
The Z coordinate.
- gkeystr, read-only
The geometric key of the Node.
- dofdict
Dictionary with the active degrees of freedom.
- on_boundarybool | None, read-only
True if the node is on the boundary mesh of the part, False otherwise, by default None.
- is_referencebool, read-only
True if the node is a reference point of
compas_fea2.model.RigidPart
, False otherwise.- part
compas_fea2.model._Part
, read-only The Part where the element is assigned.
- model
compas_fea2.model.Model
, read-only The Model where the element is assigned.
- point
compas.geometry.Point
The Point equivalent of the Node.
- temperaturefloat
The temperature at the Node.
Inherited Methods
Converts the instance to a string.
Make an independent copy of the data object.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Convert an object to its native data representation and save it to a JSON file.
Convert an object to its native data representation and save it to a JSON string.
Validate the data against the object's data schema.