InputsMac
#
- class ansys.dpf.core.operators.math.mac.InputsMac(op: ansys.dpf.core.dpf_operator.Operator)#
Bases:
ansys.dpf.core.inputs._Inputs
Intermediate class used to connect user inputs to mac operator.
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.math.mac() >>> my_fields_containerA = dpf.FieldsContainer() >>> op.inputs.fields_containerA.connect(my_fields_containerA) >>> my_fields_containerB = dpf.FieldsContainer() >>> op.inputs.fields_containerB.connect(my_fields_containerB) >>> my_ponderation = dpf.Field() >>> op.inputs.ponderation.connect(my_ponderation)
Overview#
Allows to connect fields_containerA input to the operator. |
|
Allows to connect fields_containerB input to the operator. |
|
Allows to connect ponderation input to the operator. |
Import detail#
from ansys.dpf.core.operators.math.mac import InputsMac
Property detail#
- property InputsMac.fields_containerA#
Allows to connect fields_containerA input to the operator.
Fields container a.
- Parameters:
my_fields_containerA (FieldsContainer)
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.math.mac() >>> op.inputs.fields_containerA.connect(my_fields_containerA) >>> # or >>> op.inputs.fields_containerA(my_fields_containerA)
- property InputsMac.fields_containerB#
Allows to connect fields_containerB input to the operator.
Fields container b.
- Parameters:
my_fields_containerB (FieldsContainer)
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.math.mac() >>> op.inputs.fields_containerB.connect(my_fields_containerB) >>> # or >>> op.inputs.fields_containerB(my_fields_containerB)
- property InputsMac.ponderation#
Allows to connect ponderation input to the operator.
Field m, optional weighting for mac matrix computation.
- Parameters:
my_ponderation (Field)
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.math.mac() >>> op.inputs.ponderation.connect(my_ponderation) >>> # or >>> op.inputs.ponderation(my_ponderation)