Result class#

Result 类可访问不同类型的结果数据。

本代码展示了如何访问位移、应力和弹性应变的结果数据: .. code:: python

>>> 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 为每种支持的结果类型提供了独立的 result 类。有关可用类型及其接口的信息,请参阅 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.