ansys.dpf.core.operators.result.euler_nodes#

class ansys.dpf.core.operators.result.euler_nodes(streams_container=None, data_sources=None, filter_zeros=None, coord_and_euler=None, mesh=None, config=None, server=None)#

Bases: ansys.dpf.core.dpf_operator.Operator

Reads a field made of 3 coordinates and 3 Euler angles (6 dofs) by node from the result file.

Parameters:
  • streams_container (StreamsContainer or Stream, optional)

  • data_sources (DataSources)

  • filter_zeros (bool) – if true, then the field will only contain the scoping if any rotation is not zero. (default is false).

  • coord_and_euler (bool) – if true, then the field has ncomp=6 with 3 coordinates and 3 Euler angles, else there is only the Euler angles (default is true).

  • mesh (MeshedRegion, optional)

Returns:

fields_container

Return type:

FieldsContainer

Examples

>>> from ansys.dpf import core as dpf
>>> # Instantiate operator
>>> op = dpf.operators.result.euler_nodes()
>>> # Make input connections
>>> my_streams_container = dpf.StreamsContainer()
>>> op.inputs.streams_container.connect(my_streams_container)
>>> my_data_sources = dpf.DataSources()
>>> op.inputs.data_sources.connect(my_data_sources)
>>> my_filter_zeros = bool()
>>> op.inputs.filter_zeros.connect(my_filter_zeros)
>>> my_coord_and_euler = bool()
>>> op.inputs.coord_and_euler.connect(my_coord_and_euler)
>>> my_mesh = dpf.MeshedRegion()
>>> op.inputs.mesh.connect(my_mesh)
>>> # Instantiate operator and connect inputs in one line
>>> op = dpf.operators.result.euler_nodes(
...     streams_container=my_streams_container,
...     data_sources=my_data_sources,
...     filter_zeros=my_filter_zeros,
...     coord_and_euler=my_coord_and_euler,
...     mesh=my_mesh,
... )
>>> # Get output data
>>> result_fields_container = op.outputs.fields_container()
_inputs#
_outputs#
static _spec() ansys.dpf.core.operators.specification.Specification#
static default_config(server: ansys.dpf.core.server_types.AnyServerType = None) ansys.dpf.core.config.Config#

Returns the default config of the operator.

This config can then be changed to the user needs and be used to instantiate the operator. The Configuration allows to customize how the operation will be processed by the operator.

Parameters:

server – Server with channel connected to the remote or local instance. When None, attempts to use the global server.

Returns:

A new Config instance equivalent to the default config for this operator.

Return type:

config

property inputs: InputsEulerNodes#

Enables to connect inputs to the operator

Returns:

An instance of InputsEulerNodes.

Return type:

inputs

property outputs: OutputsEulerNodes#

Enables to get outputs of the operator by evaluating it

Returns:

An instance of OutputsEulerNodes.

Return type:

outputs