Problem

class compas_fea2.problem.Problem[source]

Bases: FEAData

A Problem is a collection of analysis steps (:class:`compas_fea2.problem._Step) applied in a specific sequence.

Parameters:
namestr, optional

Uniqe identifier. If not provided it is automatically generated. Set a name if you want a more human-readable input file.

describptionstr, optional

Brief description of the Problem, , by default None. This will be added to the input file and can be useful for future reference.

Warning

Factore Steps are new objects! check the :class:`compas_fea2.problem._Step documentation.

Notes

Problems are registered to a compas_fea2.model.Model.

Problems can also be used as canonical load combinations, where each load is actually a factored step. For example, a typical load combination such as 1.35*DL+1.50LL can be applied to the model by creating the Steps DL and LL, factoring them (see :class:`compas_fea2.problem.Step documentation) and adding them to Problme

While for linear models the sequence of the steps is irrelevant, it is not the case for non-linear models.

Attributes:
namestr

Uniqe identifier. If not provided it is automatically generated. Set a name if you want a more human-readable input file.

modelcompas_fea2.model.Model

Model object to analyse.

describptionstr

Brief description of the Problem. This will be added to the input file and can be useful for future reference.

stepslist of compas_fea2.problem._Step

list of analysis steps in the order they are applied.

pathstr, pathlib.Path

Path to the analysis folder where all the files will be saved.

resultscompas_fea2.results.Results

Results object with the analyisis results.

Methods

add_linear_perturbation_step

add_static_step

add_step

add_steps

analyse

analyse_and_extract

analyze

define_steps_order

find_step_by_name

get_min_max_reactions

get_min_max_reactions_component

get_total_reaction

is_step_in_problem

restart_analysis

show

show_deformed

show_elements_field_vector

show_nodes_field_contour

show_nodes_field_vector

show_reactions

show_stress_contours

summary

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_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.