Model
- class compas_fea2.model.Model[source]
Bases:
FEAData
Class 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. This will be added to the input file and can be useful for future reference.
- authorstr
The name of the author of the model. This will be added to the input file and can be useful for future reference.
- partsSet[
compas_fea2.model.DeformablePart
] The parts of the model.
- bcsdict
Dictionary with the boundary conditions of the model and the nodes where these are applied.
- icsdict
Dictionary with the initial conditions of the model and the nodes/elements where these are applied.
- constraintsSet[
compas_fea2.model._Constraint
] The constraints of the model.
- partgroupsSet[
compas_fea2.model.PartsGroup
] The part groups of the model.
- materialsSet[:class:`compas_fea2.model.materials.Material]
The materials assigned in the model.
- sectionsSet[:class:`compas_fea2.model._Section]
The sections assigned in the model.
- problemsSet[:class:`compas_fea2.problem._Problem]
The problems added to the model.
- path::class::pathlib.Path
Path to the main folder where the problems’ results are stored.
Methods
Convert an object to its native data representation and save it to a JSON file.
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 string.
Validate the data against the object's data schema.