Model

class compas_fea2.model.Model[source]

Bases: FEAData

Class representing an FEA model.

Parameters:
descriptionOptional[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.

authorOptional[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:
descriptionOptional[str]

Some description of the model.

authorOptional[str]

The name of the author of the model.

partsSet[compas_fea2.model.Part]

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[compas_fea2.model.materials.Material]

The materials assigned in the model.

sectionsSet[compas_fea2.model._Section]

The sections assigned in the model.

problemsSet[compas_fea2.problem._Problem]

The problems added to the model.

pathpathlib.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_connector

add_connectors

add_elements_ics

add_fix_bc

add_group

add_groups

add_interface

add_interfaces

add_material

add_materials

add_new_part

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

add_section

add_sections

analyse

analyse_and_extract

analyse_and_store

analyze

array_parts

assign_keys

check

contains_material

contains_node

contains_part

contains_section

copy_part

extract_interfaces

find_closest_nodes_to_node

find_closest_nodes_to_point

find_element_by_key

find_element_by_name

find_faces_in_polygon

find_material_by_inputkey

find_material_by_key

find_material_by_name

find_materials_by_attribute

find_node_by_key

find_node_by_name

find_nodes_in_polygon

find_nodes_on_plane

find_part_by_name

find_problem_by_name

find_section_by_inputkey

find_section_by_key

find_section_by_name

find_sections_by_attribute

from_cfm

from_template

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

write_input_file

Inherited Methods

ToString

Converts the instance to a string.

copy

Make an independent copy of the data object.

from_hdf5

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_hdf5

to_json

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

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.