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

add_bcs

add_clampXX_bc

add_clampYY_bc

add_clampZZ_bc

add_elements_ics

add_fix_bc

add_nodes_ics

add_part

add_parts

add_parts_group

add_parts_groups

add_pin_bc

add_problem

add_problems

add_rollerXY_bc

add_rollerXZ_bc

add_rollerX_bc

add_rollerYZ_bc

add_rollerY_bc

add_rollerZ_bc

analyse

analyse_and_extract

analyse_and_store

analyze

check

contains_node

contains_part

find_closest_nodes_to_node

find_closest_nodes_to_point

find_element_by_key

find_elements_by_name

find_node_by_key

find_nodes_around_node

find_nodes_around_point

find_nodes_by_attribute

find_nodes_by_name

find_nodes_in_polygon

find_nodes_on_plane

find_nodes_where

find_part_by_name

find_problem_by_name

from_cfm

get_displacement_at_nodes_sql

get_displacement_at_point_sql

get_displacements_sql

get_max_displacement_sql

get_min_displacement_sql

get_reaction_forces_sql

get_reaction_moments_sql

group_parts_where

remove_all_bcs

remove_bcs

restart_analysis

show

show_displacements

store_results_in_model

summary

to_cfm

to_json

Convert an object to its native data representation and save it to a JSON file.

write_input_file

Inherited Methods

ToString

Converts the instance to a string.

copy

Make an independent copy of the data object.

data

from_json

Construct an object of this type from a JSON file.

from_jsonstring

Construct an object of this type from a JSON string.

from_name

jobdata

sha256

Compute a hash of the data for comparison during version control using the sha256 algorithm.

to_jsonstring

Convert an object to its native data representation and save it to a JSON string.

validate_data

Validate the data against the object's data schema.