DisplacementFieldResults

class compas_fea2.results.DisplacementFieldResults[source]

Bases: NodeFieldResults

Displacement field results.

This class handles the displacement field results from a finite element analysis.

Parameters:
stepcompas_fea2.problem._Step

The analysis step where the results are defined.

Attributes:
components_nameslist of str

Names of the components of the field results.

invariants_nameslist of str

Names of the invariants of the displacement field.

results_classclass

The class used to instantiate the displacement results.

results_funcstr

The function used to find nodes by key.

Inherited Methods

ToString

Converts the instance to a string.

component_scalar

Return the value of selected component.

components_vectors

Return a vector representing the given components.

components_vectors_rotation

Return a vector representing the given components.

compute_resultant

Compute the translation resultant, moment resultant, and location of the field.

copy

Make an independent copy of the data object.

filter_by_component

Filter results by a specific component, optionally using a threshold.

from_json

Construct an object of this type from a JSON file.

from_jsonstring

Construct an object of this type from a JSON string.

get_limits_component

Get the result objects with the min and max value of a given component in a step.

get_max_result

Get the result where a component is maximum for a given step.

get_min_result

Get the result where a component is minimum for a given step.

get_result_at

Get the result for a given location.

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.