InputsMergeMaterials#
- class ansys.dpf.core.operators.utility.merge_materials.InputsMergeMaterials(op: ansys.dpf.core.dpf_operator.Operator)#
Bases:
ansys.dpf.core.inputs._InputsIntermediate class used to connect user inputs to merge_materials operator.
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.merge_materials() >>> my_materials1 = dpf.Materials() >>> op.inputs.materials1.connect(my_materials1) >>> my_materials2 = dpf.Materials() >>> op.inputs.materials2.connect(my_materials2)
Overview#
Connect any input (an entity or an operator output) to any input pin of this operator. |
Allows to connect materials1 input to the operator. |
|
Allows to connect materials2 input to the operator. |
Import detail#
from ansys.dpf.core.operators.utility.merge_materials import InputsMergeMaterials
Property detail#
- property InputsMergeMaterials.materials1: ansys.dpf.core.inputs.Input#
Allows to connect materials1 input to the operator.
A vector of materials to merge or materials from pin 0 to …
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.merge_materials() >>> op.inputs.materials1.connect(my_materials1) >>> # or >>> op.inputs.materials1(my_materials1)
- property InputsMergeMaterials.materials2: ansys.dpf.core.inputs.Input#
Allows to connect materials2 input to the operator.
A vector of materials to merge or materials from pin 0 to …
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.merge_materials() >>> op.inputs.materials2.connect(my_materials2) >>> # or >>> op.inputs.materials2(my_materials2)
Method detail#
- InputsMergeMaterials.__str__()#
- InputsMergeMaterials.connect(inpt)#
Connect any input (an entity or an operator output) to any input pin of this operator.
Searches for the input type corresponding to the output.
Deprecated since version Deprecated: in favor of explicit output-to-input connections.
- InputsMergeMaterials.__call__(inpt)#