ansys.dpf.core.operators.averaging.nodal_difference#

class ansys.dpf.core.operators.averaging.nodal_difference(field=None, mesh_scoping=None, mesh=None, config=None, server=None)#

Bases: ansys.dpf.core.dpf_operator.Operator

Transforms an Elemental Nodal field into a Nodal field. Each nodal value is the maximum difference between the unaveraged computed result for all elements that share this particular node. The result is computed on a given node’s scoping.

Parameters:
Returns:

field

Return type:

Field

Examples

>>> from ansys.dpf import core as dpf
>>> # Instantiate operator
>>> op = dpf.operators.averaging.nodal_difference()
>>> # Make input connections
>>> my_field = dpf.Field()
>>> op.inputs.field.connect(my_field)
>>> my_mesh_scoping = dpf.Scoping()
>>> op.inputs.mesh_scoping.connect(my_mesh_scoping)
>>> my_mesh = dpf.MeshedRegion()
>>> op.inputs.mesh.connect(my_mesh)
>>> # Instantiate operator and connect inputs in one line
>>> op = dpf.operators.averaging.nodal_difference(
...     field=my_field,
...     mesh_scoping=my_mesh_scoping,
...     mesh=my_mesh,
... )
>>> # Get output data
>>> result_field = op.outputs.field()
_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: InputsNodalDifference#

Enables to connect inputs to the operator

Returns:

An instance of InputsNodalDifference.

Return type:

inputs

property outputs: OutputsNodalDifference#

Enables to get outputs of the operator by evaluating it

Returns:

An instance of OutputsNodalDifference.

Return type:

outputs