InputsMaterialPropertyOfElement#
- class ansys.dpf.core.operators.result.material_property_of_element.InputsMaterialPropertyOfElement(op: ansys.dpf.core.dpf_operator.Operator)#
Bases:
ansys.dpf.core.inputs._InputsIntermediate class used to connect user inputs to material_property_of_element operator.
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.result.material_property_of_element() >>> my_mesh_scoping = dpf.Scoping() >>> op.inputs.mesh_scoping.connect(my_mesh_scoping) >>> my_streams = dpf.StreamsContainer() >>> op.inputs.streams.connect(my_streams) >>> my_data_sources = dpf.DataSources() >>> op.inputs.data_sources.connect(my_data_sources) >>> my_property_name = str() >>> op.inputs.property_name.connect(my_property_name)
Overview#
Connect any input (an entity or an operator output) to any input pin of this operator. |
Allows to connect mesh_scoping input to the operator. |
|
Allows to connect streams input to the operator. |
|
Allows to connect data_sources input to the operator. |
|
Allows to connect property_name input to the operator. |
Import detail#
from ansys.dpf.core.operators.result.material_property_of_element import InputsMaterialPropertyOfElement
Property detail#
- property InputsMaterialPropertyOfElement.mesh_scoping: ansys.dpf.core.inputs.Input[ansys.dpf.core.scoping.Scoping]#
Allows to connect mesh_scoping input to the operator.
Element scoping that restricts which elements are processed. If not provided, all elements in the result file are used.
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.result.material_property_of_element() >>> op.inputs.mesh_scoping.connect(my_mesh_scoping) >>> # or >>> op.inputs.mesh_scoping(my_mesh_scoping)
- property InputsMaterialPropertyOfElement.streams: ansys.dpf.core.inputs.Input[ansys.dpf.core.streams_container.StreamsContainer]#
Allows to connect streams input to the operator.
result file container allowed to be kept open to cache data
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.result.material_property_of_element() >>> op.inputs.streams.connect(my_streams) >>> # or >>> op.inputs.streams(my_streams)
- property InputsMaterialPropertyOfElement.data_sources: ansys.dpf.core.inputs.Input[ansys.dpf.core.data_sources.DataSources]#
Allows to connect data_sources input to the operator.
result file path container, used if no streams are set
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.result.material_property_of_element() >>> op.inputs.data_sources.connect(my_data_sources) >>> # or >>> op.inputs.data_sources(my_data_sources)
- property InputsMaterialPropertyOfElement.property_name: ansys.dpf.core.inputs.Input[str]#
Allows to connect property_name input to the operator.
Name of the linear scalar material property to extract, for example “EX” for Young’s modulus or “DENS” for density.
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.result.material_property_of_element() >>> op.inputs.property_name.connect(my_property_name) >>> # or >>> op.inputs.property_name(my_property_name)
Method detail#
- InputsMaterialPropertyOfElement.__str__()#
- InputsMaterialPropertyOfElement.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.
- InputsMaterialPropertyOfElement.__call__(inpt)#