TetrahedronElement
- class compas_fea2.model.TetrahedronElement[source]
Bases:
_Element3DA Solid element with 4 or 10 nodes.
- Attributes:
nodesList[“Node”]Return the list of nodes to which the element is connected.
is_quadraticboolCheck if the element is quadratic (C3D10) or linear (C3D4).
midside_nodesdict | NoneMapping edge tag -> midside Node (only for C3D10); otherwise None.
material_frameFrameFrame used for anisotropic material directions.
Notes
This element can be either: - C3D4: A 4-node tetrahedral element. - C3D10: A 10-node tetrahedral element (with midside nodes).
Face labels (for the first 4 corner nodes) are: - S1: (0, 1, 2) - S2: (0, 1, 3) - S3: (1, 2, 3) - S4: (0, 2, 3)
The C3D10 element includes 6 additional midside nodes: - Edge (0,1) → Node 4 - Edge (1,2) → Node 5 - Edge (2,0) → Node 6 - Edge (0,3) → Node 7 - Edge (1,3) → Node 8 - Edge (2,3) → Node 9
Methods
Define or override the local material orientation frame.
Inherited Methods
Converts the instance to a string.
Clear the local frame, reverting to GLOBAL_FRAME.
Make an independent copy of the data object.
Return local axes expressed as global vectors (x, y, z).
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Return True if local frame coincides with GLOBAL frame within tolerance.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Convert a local point to the global frame.
Convert a local vector to the global frame.
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.
Convert a global point to the local frame.
Convert a global vector to the local frame.
Get the transformation from this object's local frame to another frame.
Validate the data against the object's data schema.