Get elastic strain result#

Get an elastic strain result that deals with phase. It contains a field for real values and a field for imaginary values.

elastic_strain_result = solution.elastic_strain()
elastic_strain = elastic_strain_result.tensor

# Check number of fields
# ~~~~~~~~~~~~~~~~~~~~~~
# Check the number of shell and solid elements in distinct fields.

elastic_strain.num_fields
2

If the result file contains results, you can use this method to get the elastic strain result.

print(solution.plastic_strain())
Complex tensor object.

Tensor object.

Object properties:
 - location   : Nodal

Complex plastic strain object.

Total running time of the script: (0 minutes 1.063 seconds)

Gallery generated by Sphinx-Gallery