InputsFcGetAttribute#
- class ansys.dpf.core.operators.utility.fc_get_attribute.InputsFcGetAttribute(op: ansys.dpf.core.dpf_operator.Operator)#
Bases:
ansys.dpf.core.inputs._InputsIntermediate class used to connect user inputs to fc_get_attribute operator.
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.fc_get_attribute() >>> my_fields_container = dpf.FieldsContainer() >>> op.inputs.fields_container.connect(my_fields_container) >>> my_property_name = str() >>> op.inputs.property_name.connect(my_property_name) >>> my_property_identifier = str() >>> op.inputs.property_identifier.connect(my_property_identifier)
Overview#
Connect any input (an entity or an operator output) to any input pin of this operator. |
Allows to connect fields_container input to the operator. |
|
Allows to connect property_name input to the operator. |
|
Allows to connect property_identifier input to the operator. |
Import detail#
from ansys.dpf.core.operators.utility.fc_get_attribute import InputsFcGetAttribute
Property detail#
- property InputsFcGetAttribute.fields_container: ansys.dpf.core.inputs.Input[ansys.dpf.core.fields_container.FieldsContainer]#
Allows to connect fields_container input to the operator.
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.fc_get_attribute() >>> op.inputs.fields_container.connect(my_fields_container) >>> # or >>> op.inputs.fields_container(my_fields_container)
- property InputsFcGetAttribute.property_name: ansys.dpf.core.inputs.Input[str]#
Allows to connect property_name input to the operator.
Supported property names are: “label_scoping”, “label_values”, “time_freq_support”, “labels”, “field_scoping”, “base_name”, “field_names” and “field”.
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.fc_get_attribute() >>> op.inputs.property_name.connect(my_property_name) >>> # or >>> op.inputs.property_name(my_property_name)
- property InputsFcGetAttribute.property_identifier: ansys.dpf.core.inputs.Input[str | int]#
Allows to connect property_identifier input to the operator.
Additional pin for some property : the label name for “label_scoping” or “label_values”, the field index (default 0) for “field_scoping” or “field”.
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.fc_get_attribute() >>> op.inputs.property_identifier.connect(my_property_identifier) >>> # or >>> op.inputs.property_identifier(my_property_identifier)
Method detail#
- InputsFcGetAttribute.__str__()#
- InputsFcGetAttribute.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.
- InputsFcGetAttribute.__call__(inpt)#