InputsExtractSubMc#

class ansys.dpf.core.operators.utility.extract_sub_mc.InputsExtractSubMc(op: ansys.dpf.core.dpf_operator.Operator)#

Bases: ansys.dpf.core.inputs._Inputs

Intermediate class used to connect user inputs to extract_sub_mc operator.

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.extract_sub_mc()
>>> my_meshes = dpf.MeshesContainer()
>>> op.inputs.meshes.connect(my_meshes)
>>> my_label_space = dict()
>>> op.inputs.label_space.connect(my_label_space)
>>> my_collapse_labels = bool()
>>> op.inputs.collapse_labels.connect(my_collapse_labels)

Overview#

connect

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

meshes

Allows to connect meshes input to the operator.

label_space

Allows to connect label_space input to the operator.

collapse_labels

Allows to connect collapse_labels input to the operator.

Import detail#

from ansys.dpf.core.operators.utility.extract_sub_mc import InputsExtractSubMc

Property detail#

property InputsExtractSubMc.meshes: ansys.dpf.core.inputs.Input[ansys.dpf.core.meshes_container.MeshesContainer]#

Allows to connect meshes input to the operator.

meshes

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.extract_sub_mc()
>>> op.inputs.meshes.connect(my_meshes)
>>> # or
>>> op.inputs.meshes(my_meshes)
property InputsExtractSubMc.label_space: ansys.dpf.core.inputs.Input[dict | ansys.dpf.core.scoping.Scoping]#

Allows to connect label_space input to the operator.

Label space, or scoping defining the label space (scoping location), values to keep (scoping IDs)

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.extract_sub_mc()
>>> op.inputs.label_space.connect(my_label_space)
>>> # or
>>> op.inputs.label_space(my_label_space)
property InputsExtractSubMc.collapse_labels: ansys.dpf.core.inputs.Input[bool]#

Allows to connect collapse_labels input to the operator.

If set to true (default) the input label space (scoping location) is suppressed from the output meshes container, otherwise, label space is kept.

Returns:

An Input instance for this pin.

Return type:

input

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.utility.extract_sub_mc()
>>> op.inputs.collapse_labels.connect(my_collapse_labels)
>>> # or
>>> op.inputs.collapse_labels(my_collapse_labels)

Method detail#

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

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