Structure
- class compas_fea.structure.Structure(path, name='compas_fea-Structure')[source]
Bases:
compas_fea.structure.mixins.objectmixins.ObjectMixins
,compas_fea.structure.mixins.elementmixins.ElementMixins
,compas_fea.structure.mixins.nodemixins.NodeMixins
Initialises Structure object for use in finite element analysis.
- Parameters
path (str) – Path to save all compas_fea associated files.
name (str) – Name of the structure.
- Attributes
constraints (dict) – Constraint objects.
displacements (dict) – Displacement objects.
elements (dict) – Element objects.
element_index (dict) – Index of elements (element centroid geometric keys).
element_properties (dict) – ElementProperties objects.
interactions (dict) – Interaction objects.
loads (dict) – Load objects.
materials (dict) – Material objects.
misc (dict) – Misc objects.
name (str) – Structure name.
nodes (dict) – Node objects.
node_index (dict) – Index of nodes (node geometric keys).
path (str) – Path to save files.
results (dict) – Dictionary containing analysis results.
sections (dict) – Section objects.
sets (dict) – Set objects.
steps (dict) – Step objects.
steps_order (list) – Sorted list of Step object names.
tol (str) – Geometric key tolerance.
virtual_nodes (dict) – Node objects for virtual nodes.
virtual_elements (dict) – Element objects for virtual elements.
virtual_element_index (dict) – Index of virtual elements (element centroid geometric keys).
Methods
Adds the nodes and faces of a Mesh to the Structure object.
Adds the nodes and edges of a Network to the Structure object.
Adds the nodes and cells of a VolMesh to the Structure object.
Adds a node, element or surface set to structure.sets.
Runs the analysis through the chosen FEA software / library.
Runs the analysis through the chosen FEA software / library and extracts data.
Extracts data from the analysis output files.
Extract element results from self.results.
Extract nodal results from self.results.
Imports a Structure object from an .obj file through Pickle.
Exports the Structure object to an .obj file through Pickle.
Scales displacements by a given factor.
Scales loads by a given factor.
Sets the order that the Steps will be analysed.
Prints a summary of the Structure object.
Starts the PyQt app for visualisation.
Writes the FE software's input file.
Inherited Methods
Adds object(s) to their correct attribute dictionary in the structure.
Adds a Constraint object to structure.constraints.
Adds a Displacement object to structure.displacements.
Adds Displacement objects to structure.displacements.
Adds an element to structure.elements with centroid geometric key.
Adds ElementProperties object(s) to structure.element_properties.
Adds the element to the element_index dictionary.
Adds multiple elements of the same type to structure.elements.
Adds an Interaction object to structure.interactions.
Adds a Load object to structure.loads.
Adds Load objects to structure.loads.
Adds a Material object to structure.materials.
Adds Material objects to structure.materials.
Adds a Misc object to structure.misc.
Adds a nodal element to structure.elements with the possibility of adding a coincident virtual node.
Adds a node to structure.nodes at co-ordinates xyz with local frame [ex, ey, ez].
Adds the node to the node_index dictionary.
Adds a list of nodes to structure.nodes at given co-ordinates all with local frame [ex, ey, ez].
Adds a Section object to structure.sections.
Adds Section objects to structure.sections.
Adds a Step object to structure.steps.
Adds Step objects to structure.steps.
Adds a virtual element to structure.elements and to element set 'virtual_elements'.
Assign the ElementProperties object name to associated Elements.
Check if an element already exists based on nodes or centroid.
Check if a node already exists at given x, y, z co-ordinates.
Edit a node's data.
Return the centroid of an element.
Return the number of elements in the Structure.
Return the bounds formed by the Structure's nodal co-ordinates.
Return the number of nodes in the Structure.
Return the xyz co-ordinates of a node.
Return the xyz co-ordinates of given or all nodes.