invariants
#
- class ansys.dpf.core.operators.invariant.invariants.invariants(field=None, config=None, server=None)#
Bases:
ansys.dpf.core.dpf_operator.Operator
Computes the element-wise invariants of a tensor field.
- Parameters:
field (Field)
- Returns:
field_int (Field) – Stress intensity field
field_eqv (Field) – Stress equivalent intensity
field_max_shear (Field) – Max shear stress field
Examples
>>> from ansys.dpf import core as dpf
>>> # Instantiate operator >>> op = dpf.operators.invariant.invariants()
>>> # Make input connections >>> my_field = dpf.Field() >>> op.inputs.field.connect(my_field)
>>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.invariant.invariants( ... field=my_field, ... )
>>> # Get output data >>> result_field_int = op.outputs.field_int() >>> result_field_eqv = op.outputs.field_eqv() >>> result_field_max_shear = op.outputs.field_max_shear()
Overview#
Returns the default config of the operator. |
Import detail#
from ansys.dpf.core.operators.invariant.invariants import invariants
Property detail#
- property invariants.inputs#
Enables to connect inputs to the operator
- Returns:
inputs
- Return type:
- property invariants.outputs#
Enables to get outputs of the operator by evaluating it
- Returns:
outputs
- Return type:
Method detail#
- static invariants.default_config(server=None)#
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.DPFServer, optional) – Server with channel connected to the remote or local instance. When
None
, attempts to use the global server.