Result class#

The Result class provides access to different types of result data.

This code shows how you can access result data for displacements, stresses, and elastic strains:

>>> from ansys.dpf import post
>>> from ansys.dpf.post import examples
>>> solution = post.load_solution(examples.multishells_rst)

Displacement result object

>>> displacement = solution.displacement()

Stress result object

>>> stress = solution.stress()

Elastic strain result object

>>> elastic_strain = solution.elastic_strain()

DPF-Post features separate Result classes for each supported result type. For information on the available types and their interfaces, see Access results.

result_object.Result(data_sources, model, ...)

Provides the Result class.

displacement.Displacement(**kwargs)

Defines the displacement object, which is a vector object.

electric_results.ElectricField(**kwargs)

Defines the temperature object for a thermal/electric analysis.

electric_results.ElectricPotential(**kwargs)

Defines the temperature object for a thermal/electric analysis.

misc_results.MecanicMisc(model, data_sources)

Provides the miscellaneous mecanic result.

strain.ElasticStrain(**kwargs)

Defines the elastic strain object, which is a tensor object.

strain.PlasticStrain(**kwargs)

Defines the plastic strain object, which is a tensor object.

stress.Stress(**kwargs)

Defines the stress object, which is a tensor object.

temperature.HeatFlux(**kwargs)

Defines the heat flux object, which is a scalar object, for thermal analysis.

temperature.StructuralTemperature(**kwargs)

Defines the structural temperature object, which is a scalar object.

temperature.Temperature(**kwargs)

Defines the temperature object, which is a scalar object, for thermal analysis.