_Element
- class compas_fea2.model._Element[source]
Bases:
FEAData,FrameableInitialises a base Element object.
- Parameters:
- nodeslist[
compas_fea2.model.Node] Ordered list of node identifiers to which the element connects.
- section
compas_fea2.model._Section Section Object assigned to the element.
- implementationstr, optional
The name of the backend model implementation of the element.
- rigidbool, optional
Define the element as rigid (no deformations allowed) or not. Defaults to False.
- heatbool, optional
Define the element as a heat transfer element. Defaults to False.
- frame
compas.geometry.Frame, optional Optional local reference frame. If not provided, the GLOBAL frame is assumed (via Frameable).
- nodeslist[
- Attributes:
- keyint, read-only
Identifier of the element in the parent part.
nodeslist[compas_fea2.model.Node]Return the list of nodes to which the element is connected.
- nodes_keystr, read-only
Identifier based on the connected nodes.
sectioncompas_fea2.model._SectionReturn the section object assigned to the element.
implementationstrReturn the implementation name of the element.
partcompas_fea2.model.Part| NoneReturn the part to which the element is registered.
on_boundarybool | NoneReturn whether the element has a face on the boundary mesh.
modelcompas_fea2.model.Model, read-onlyReturn the model to which the element belongs.
areafloat, read-onlyReturn the element area in the active unit system.
volumefloat, read-onlyReturn the element volume in the active unit system.
rigidbool, read-onlyReturn whether the element is rigid.
heatbool, read-onlyReturn whether the element is a heat transfer element.
Warning
When an Element is added to a Part, the nodes of the elements are also added and registered to the same part. This might change the original registration of the nodes!
Notes
Elements and their nodes are registered to the same
compas_fea2.model._Partand can belong to only one Part.Methods
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.