Model
- class compas_fea2.model.Model[source]
Bases:
FEADataClass representing an FEA model.
- Parameters:
- descriptionstr, optional
Some description of the model, by default
None. This will be added to the input file and can be useful for future reference.- authorstr, optional
The name of the author of the model, by default
None. This will be added to the input file and can be useful for future reference.
- Attributes:
- descriptionstr
Some description of the model.
- authorstr
The name of the author of the model.
partsSet[compas_fea2.model.Part]Return all the parts registered to the Model.
bcsDict[compas_fea2.model._BoundaryCondition, Set[compas_fea2.model.Node]]Return the boundary conditions of the model.
- tbcsDict[
compas_fea2.model._ThermalBoundaryCondition, Set[compas_fea2.model.Node]] Dictionary with the thermal boundary conditions of the model and the nodes where these are applied.
icsDict[compas_fea2.model._InitialCondition, Set[Union[compas_fea2.model.Node,compas_fea2.model._Element]]]Return the initial conditions of the model.
constraintsSet[compas_fea2.model._Constraint]Return the constraints of the model.
- partgroupsSet[
compas_fea2.model.PartsGroup] The part groups of the model.
materialsSet[compas_fea2.model.Material]Return a set of all materials in the model.
sectionsSet[compas_fea2.model.Section]Return a set of all sections in the model.
problemsSet[compas_fea2.problem.Problem]Return all the problems registered to the Model.
pathpathlib.PathReturn the path of the model.
Notes
Quantities such as volume and gravity are exposed in the active unit system. See
compas_fea2.unitsfor configuration.
Methods
Constructors
Construct an object of this type from a JSON file. |
Conversions
Convert an object to its native data representation and save it to a JSON file. |
Builders and Modifiers
Adds a Part to the Model. |
Attributes
Return all the parts registered to the Model. |
Geometry
Return the total volume of the model in the active unit system. |