Model
- class compas_fea2.model.Model(*args, **kwargs)[source]
Class representing an FEA model.
- Parameters:
name (str, optional) – Uniqe identifier. If not provided it is automatically generated. Set a name if you want a more human-readable input file.
description (str, optional) – Some description of the model, by default
None
. This will be added to the input file and can be useful for future reference.author (str, 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:
name (str) – Uniqe identifier. If not provided it is automatically generated. Set a name if you want a more human-readable input file.
description (str) – Some description of the model. This will be added to the input file and can be useful for future reference.
author (str) – The name of the author of the model. This will be added to the input file and can be useful for future reference.
parts (Set[
compas_fea2.model.DeformablePart
]) – The parts of the model.bcs (dict) – Dictionary with the boundary conditions of the model and the nodes where these are applied.
ics (dict) – The initial conditions of the model.
constraints (Set[
compas_fea2.model._Constraint
]) – The constraints of the model.partgroups (Set[
compas_fea2.model.PartsGroup
]) – The part groups of the model.facesgroups (Set[
compas_fea2.model.FacesGroup
]) – The surfaces of the model.
Methods
Add a
compas_fea2.model._BoundaryCondition
to the model.Add a fixed boundary condition type free about XX to some nodes in a part.
Add a fixed boundary condition free about YY type to some nodes in a part.
Add a fixed boundary condition free about ZZ type to some nodes in a part.
Add a
compas_fea2.model._InitialCondition
to the model.Add a
compas_fea2.model.FixedBC
to the nodes in a part.Add a
compas_fea2.model._InitialCondition
to the model.Adds a DeformablePart to the Model.
Add multiple parts to the model.
Add a PartsGroup object to the Model.
Add a multiple PartsGroup object to the Model.
Add a pinned boundary condition type to some nodes in a part.
Add a
compas_fea2.problem.Problem
object to the model.Add multiple
compas_fea2.problem.Problem
objects to the model.Add a roller free on XY boundary condition type to some nodes in a part.
Add a roller free on XZ boundary condition type to some nodes in a part.
Add a roller free on X boundary condition type to some nodes in a part.
Add a roller free on YZ boundary condition type to some nodes in a part.
Add a roller free on Y boundary condition type to some nodes in a part.
Add a roller free on Z boundary condition type to some nodes in a part.
Check for possible problems in the model
Verify that the model contains a specific part.
Find if there is a part with a given name in the model.
Find a problem in the model using its name.
Imports a Problem object from an .cfm file through Pickle.
Group a set of parts with a give value of a given attribute.
Removes all the boundary conditions from the Model.
Release a node previously restrained.
WIP
Prints a summary of the Model object.
Exports the Model object to an .cfm file through Pickle.
Serialize the data representation of an object 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 the provided data.
Construct an object from serialized data contained in a JSON file.
Construct an object from serialized data contained in a JSON string.
Create an instance of a class of the registered plugin from its name.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Convert an object to its native data representation.
Serialize the data representation of an object to a JSON string.
Validate the object's data against its data schema.
Validate the object's data against its json schema.