ansys.dpf.core.operators.utility.unitary_field#
- class ansys.dpf.core.operators.utility.unitary_field(field=None, config=None, server=None)#
Bases:
ansys.dpf.core.dpf_operator.Operator
Takes a field and returns another field of scalars in the same location and scoping as the input field.
- Parameters:
field (Field or FieldsContainer) – field or fields container with only one field is expected
- Returns:
field
- Return type:
Examples
>>> from ansys.dpf import core as dpf
>>> # Instantiate operator >>> op = dpf.operators.utility.unitary_field()
>>> # Make input connections >>> my_field = dpf.Field() >>> op.inputs.field.connect(my_field)
>>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.utility.unitary_field( ... field=my_field, ... )
>>> # 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: InputsUnitaryField#
Enables to connect inputs to the operator
- Returns:
An instance of InputsUnitaryField.
- Return type:
inputs
- property outputs: OutputsUnitaryField#
Enables to get outputs of the operator by evaluating it
- Returns:
An instance of OutputsUnitaryField.
- Return type:
outputs