InputsMeshToMc#

class ansys.dpf.core.operators.utility.mesh_to_mc.InputsMeshToMc(op: ansys.dpf.core.dpf_operator.Operator)#

Bases: ansys.dpf.core.inputs._Inputs

Intermediate class used to connect user inputs to mesh_to_mc operator.

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.mesh_to_mc()
>>> my_mesh = dpf.MeshedRegion()
>>> op.inputs.mesh.connect(my_mesh)
>>> my_label = dict()
>>> op.inputs.label.connect(my_label)

Overview#

connect

Connect any input (an entity or an operator output) to any input pin of this operator.

mesh

Allows to connect mesh input to the operator.

label

Allows to connect label input to the operator.

Import detail#

from ansys.dpf.core.operators.utility.mesh_to_mc import InputsMeshToMc

Property detail#

property InputsMeshToMc.mesh: ansys.dpf.core.inputs.Input[ansys.dpf.core.meshed_region.MeshedRegion | ansys.dpf.core.meshes_container.MeshesContainer]#

Allows to connect mesh input to the operator.

If a meshes container is set in input, it is passed on as an output with the additional label space (if any).

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.mesh_to_mc()
>>> op.inputs.mesh.connect(my_mesh)
>>> # or
>>> op.inputs.mesh(my_mesh)
property InputsMeshToMc.label: ansys.dpf.core.inputs.Input[dict]#

Allows to connect label input to the operator.

Sets a label space.

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.mesh_to_mc()
>>> op.inputs.label.connect(my_label)
>>> # or
>>> op.inputs.label(my_label)

Method detail#

InputsMeshToMc.__str__()#
InputsMeshToMc.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.

InputsMeshToMc.__call__(inpt)#
InputsMeshToMc.__getitem__(item) → Input#