Node
- class compas_fea2.model.Node[source]
Bases:
FEADataClass representing a Node object.
- Parameters:
- xyzlist[float, float, float] |
compas.geometry.Point The location of the node in the global coordinate system.
- massfloat, tuple, or list, optional
Lumped nodal mass. If float, same value is used in x,y,z. If sequence of length 3, interpreted as (mx,my,mz). All values in the active unit system (“mass”). Default None.
- temperaturefloat, optional
Initial temperature at the node, in the active unit system (“temperature”).
- namestr, optional
Unique identifier. If not provided, it is automatically generated. Set a name if you want a more human-readable input file.
- xyzlist[float, float, float] |
- Attributes:
- namestr
Unique identifier.
- masstuple
Lumped nodal mass (mx,my,mz) in active mass units.
- keystr, read-only
The identifier of the node.
xyzlist[float]Coordinates [x,y,z] in active length units.
- 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.partcompas_fea2.model._Part, read-onlyThe Part where the Node is registered.
- model
compas_fea2.model.Model, read-only The Model where the element is assigned.
- point
compas.geometry.Point The Point equivalent of the Node.
temperaturefloatGet the temperature of the node at a given step.
Notes
Nodes are registered to a
compas_fea2.model.Partobject and can belong to only one Part. Every time a node is added to a Part, it gets registered to that Part.All physical attributes are interpreted in the active unit system.
Examples
>>> node = Node(xyz=(1.0, 2.0, 3.0), mass=10.0, temperature=293.15)
Methods
Get the displacement of the node at a given step.
Get the displacements of the node for all steps in the model.
Create a Node from a
compas.geometry.Point.Get the reaction of the node at a given step.
Get the reactions of the node for all steps in the model.
Get the temperature of the node at a given step.
Get the temperatures of the node for all steps in the model.
Transform the node using a transformation matrix.
Return a copy of the node transformed by a transformation matrix.
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.