ResultInfo

class ansys.dpf.core.result_info.physics_types(value)

'Physics_types' enumerates the different types of physics that an analysis can have.

MECANIC
THERMAL
MAGNETIC
ELECTRIC
UNKNOWN_PHYSICS
class ansys.dpf.core.result_info.analysis_types(value)

'Analysis_types' enumerates the different types of analysis.

MECANIC
THERMAL
MAGNETIC
ELECTRIC
UNKNOWN_PHYSICS
class ansys.dpf.core.result_info.ResultInfo(result_info, server=None)

Class representation the result information. Describes the metadata of the analysis and the available results

Parameters
  • result_info (ansys.grpc.dpf.result_info_pb2.ResultInfo message) –

  • server (server.DPFServer, optional) – Server with channel connected to the remote or local instance. When None, attempts to use the the global server.

Examples

Explore the result info from the model

>>> from ansys.dpf import core as dpf
>>> from ansys.dpf.core import examples
>>> transient = examples.download_transient_result()
>>> model = dpf.Model(transient)
>>> result_info = model.metadata.result_info # printable result_info
>>> result_info.available_results[0].name
'displacement'
>>> result_info.available_results[0].homogeneity
'length'
property analysis_type

Returns the analysis type.

Returns

analysis_type – type of analysis (ex : static, transient…)

Return type

str

Examples

>>> from ansys.dpf import core as dpf
>>> from ansys.dpf.core import examples
>>> transient = examples.download_transient_result()
>>> model = dpf.Model(transient)
>>> result_info = model.metadata.result_info
>>> result_info.analysis_type
'static'
property physics_type

Type of physics.

Examples

Mechanical result

>>> from ansys.dpf import core as dpf
>>> from ansys.dpf.core import examples
>>> transient = examples.download_transient_result()
>>> model = dpf.Model(transient)
>>> result_info = model.metadata.result_info
>>> result_info.physics_type
'mecanic'
property unit_system

Unit system

property cyclic_symmetry_type

Cyclic Symmetry Type

Returns

cyclic_symmetry_type – “single_stage”, “multi_stage” or “not_cyclic”

Return type

str

property has_cyclic

Has cyclic symmetry

Returns

has_cyclic – returns true if the result file has cyclic symmetry (or multistage)

Return type

bool

property cyclic_support

returns the cyclic support if the result file has cyclic symmetry (or multistage). The CyclicSupport contains information relevant for cyclic expansion

Returns

cyclic_support

Return type

CyclicSupport

Examples

Get a CyclicSupport from a model.

>>> from ansys.dpf.core import Model
>>> from ansys.dpf.core import examples
>>> multi_stage = examples.download_multi_stage_cyclic_result()
>>> model = Model(multi_stage)
>>> result_info = model.metadata.result_info
>>> cyc_support = result_info.cyclic_support
property available_results

Available results wraps all the information about results present in the result files

Returns

available_result

Return type

list[AvailableResult]