DisplacementResult

class compas_fea2.results.DisplacementResult[source]

Bases: Result

DisplacementResult object.

Parameters:
nodecompas_fea2.model.Node

The location of the result.

xfloat

The x component of the displacement vector

yfloat

The y component of the displacement vector

zfloat

The z component of the displacement vector

Notes

DisplacementResults are registered to a compas_fea2.model.Node

Attributes:
locationcompas_fea2.model.Node `

The location of the result.

nodecompas_fea2.model.Node

The location of the result.

componentsdict

A dictionary with {“component name”: component value} for each component of the result.

invariantsdict

A dictionary with {“invariant name”: invariant value} for each invariant of the result.

u1float

The x component of the displacement vector.

u2float

The y component of the displacement vector.

u3float

The z component of the displacement vector.

vectorcompas.geometry.Vector

The displacement vector.

magnitudefloat

The absolute value of the displacement.

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

safety_factor

sha256

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

to_file

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.