You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
</div></figure><div class="op-version">Version 0.0.0</div><h2 class="op-des-h2">Supported file types</h2><supported-file-types content='{"mapdl":["rst","rth","rstp"]}'></supported-file-types><h2 class="op-des-h2">Inputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number-optional n="1" ellipsis = "false"></pin-number-optional></td><td><pin-name name="solver_element_types_ids"></pin-name></td><td><req-type typeName="(int32 | vector<int32>)"></req-type></td><td><div class = "pin-des-text"><p>Element Type ids to recover used by the solver. If not set, all available element types to be recovered.</p>
6186
6186
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="3" ellipsis = "false"></pin-number-optional></td><td><pin-name name="streams"></pin-name></td><td><req-type typeName="(streams_container)"></req-type></td><td><div class = "pin-des-text"><p>Result file container allowed to be kept open to cache data.</p>
6187
6187
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number n="4" ellipsis = "false"></pin-number></td><td><pin-name name="data_sources"></pin-name></td><td><req-type typeName="(data_sources)"></req-type></td><td><div class = "pin-des-text"><p>Result file path container, used if no streams are set.</p>
6188
-
</div></td></tr></tbody></table></div><h2 class="op-des-h2">Outputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="element_types_data"></pin-name></td><td><req-type typeName="(generic_data_container)"></req-type></td><td><div class = "pin-des-text"><p>The generic_data_container has a class_name: ElementTypesProperties. It contains the following property fields: element_routine_number: Element routine number. E.g 186 for SOLID186, keyopts: Element type option keys, kdofs: DOF/node for this element type.This is a bit mapping, nodelm: Number of nodes for this element type, nodfor: Number of nodes per element having nodal forces, nodstr: Number of nodes per element having nodal stresses, new_gen_element: Element of new generation.</p>
6188
+
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="200" ellipsis = "false"></pin-number-optional></td><td><pin-name name="output_type"></pin-name></td><td><req-type typeName="(int32)"></req-type></td><td><div class = "pin-des-text"><p>Get the output as a GenericDataContainer (pin value 1, default) or as a PropertyField (pin value 2). If a PropertyField is recovered, the 200 ElementTypesProperties are recovered for each element type, in order.</p>
6189
+
</div></td></tr></tbody></table></div><h2 class="op-des-h2">Outputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="element_types_data"></pin-name></td><td><req-type typeName="(generic_data_container | property_field)"></req-type></td><td><div class = "pin-des-text"><p>The generic_data_container has a class_name: ElementTypesProperties. It contains the following property fields: element_routine_number: Element routine number. E.g 186 for SOLID186, keyopts: Element type option keys, kdofs: DOF/node for this element type.This is a bit mapping, nodelm: Number of nodes for this element type, nodfor: Number of nodes per element having nodal forces, nodstr: Number of nodes per element having nodal stresses, new_gen_element: Element of new generation.</p>
6189
6190
</div></td></tr></tbody></table></div><h2 class="op-des-h2">Configurations</h2><config-spec name="mutex" default="false" doc="If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads." types="bool" ></config-spec><config-spec name="num_threads" default="0" doc="Number of threads to use to run in parallel" types="int32" ></config-spec><config-spec name="run_in_parallel" default="true" doc="Loops are allowed to run in parallel if the value of this config is set to true." types="bool" ></config-spec><h2 class="op-des-h2">Scripting</h2><scripting-part scripting_name="element_types_provider" license="none" cat="metadata" plugin="core" cpp-name="element_types_provider"></scripting-part><h2 class="op-des-h2">Changelog</h2><op-changelog content='{"0.0.0":"New"}'></op-changelog></div><div class="operator" id="delegate to operator" scripting_name="delegate_to_operator"plugin="core"cat="utility"><h1 class="op-des-h1">utility: delegate to operator</h1><figure class="figure-op-des"> <figcaption > Description </figcaption><div class = "figure-op-des-text"><p>Delegate the run to an Operator instantiated by the name in input (forwards all the input of this Operator to the sub Operator).</p>
</div></td></tr></tbody></table></div><h2 class="op-des-h2">Configurations</h2><config-spec name="mutex" default="false" doc="If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads." types="bool" ></config-spec><h2 class="op-des-h2">Scripting</h2><scripting-part scripting_name="delegate_to_operator" license="none" cat="utility" plugin="core" cpp-name="delegate_to_operator"></scripting-part><h2 class="op-des-h2">Changelog</h2><op-changelog content='{"0.0.0":"New"}'></op-changelog></div><div class="operator" id="acceleration Y" scripting_name="acceleration_Y"plugin="core"cat="result"><h1 class="op-des-h1">result: acceleration Y</h1><figure class="figure-op-des"> <figcaption > Description </figcaption><div class = "figure-op-des-text"><p>Read/compute nodal accelerations Y component of the vector (2nd component) by calling the readers defined by the datasources.</p>
@@ -28,10 +29,12 @@ class element_types_provider(Operator):
28
29
Result file container allowed to be kept open to cache data.
29
30
data_sources: DataSources
30
31
Result file path container, used if no streams are set.
32
+
output_type: int, optional
33
+
Get the output as a GenericDataContainer (pin value 1, default) or as a PropertyField (pin value 2). If a PropertyField is recovered, the 200 ElementTypesProperties are recovered for each element type, in order.
31
34
32
35
Returns
33
36
-------
34
-
element_types_data: GenericDataContainer
37
+
element_types_data: GenericDataContainer or PropertyField
35
38
The generic_data_container has a class_name: ElementTypesProperties. It contains the following property fields: element_routine_number: Element routine number. E.g 186 for SOLID186, keyopts: Element type option keys, kdofs: DOF/node for this element type.This is a bit mapping, nodelm: Number of nodes for this element type, nodfor: Number of nodes per element having nodal forces, nodstr: Number of nodes per element having nodal stresses, new_gen_element: Element of new generation.
36
39
37
40
Examples
@@ -48,12 +51,15 @@ class element_types_provider(Operator):
document=r"""Result file path container, used if no streams are set.""",
106
115
),
116
+
200: PinSpecification(
117
+
name="output_type",
118
+
type_names=["int32"],
119
+
optional=True,
120
+
document=r"""Get the output as a GenericDataContainer (pin value 1, default) or as a PropertyField (pin value 2). If a PropertyField is recovered, the 200 ElementTypesProperties are recovered for each element type, in order.""",
document=r"""The generic_data_container has a class_name: ElementTypesProperties. It contains the following property fields: element_routine_number: Element routine number. E.g 186 for SOLID186, keyopts: Element type option keys, kdofs: DOF/node for this element type.This is a bit mapping, nodelm: Number of nodes for this element type, nodfor: Number of nodes per element having nodal forces, nodstr: Number of nodes per element having nodal stresses, new_gen_element: Element of new generation.""",
114
129
),
@@ -174,6 +189,8 @@ class InputsElementTypesProvider(_Inputs):
r"""Allows to connect output_type input to the operator.
279
+
280
+
Get the output as a GenericDataContainer (pin value 1, default) or as a PropertyField (pin value 2). If a PropertyField is recovered, the 200 ElementTypesProperties are recovered for each element type, in order.
281
+
282
+
Returns
283
+
-------
284
+
input:
285
+
An Input instance for this pin.
286
+
287
+
Examples
288
+
--------
289
+
>>> from ansys.dpf import core as dpf
290
+
>>> op = dpf.operators.metadata.element_types_provider()
291
+
>>> op.inputs.output_type.connect(my_output_type)
292
+
>>> # or
293
+
>>> op.inputs.output_type(my_output_type)
294
+
"""
295
+
returnself._output_type
296
+
255
297
256
298
classOutputsElementTypesProvider(_Outputs):
257
299
"""Intermediate class used to get outputs from
@@ -267,27 +309,19 @@ class OutputsElementTypesProvider(_Outputs):
r"""Allows to get element_types_data output of the operator
278
-
279
-
The generic_data_container has a class_name: ElementTypesProperties. It contains the following property fields: element_routine_number: Element routine number. E.g 186 for SOLID186, keyopts: Element type option keys, kdofs: DOF/node for this element type.This is a bit mapping, nodelm: Number of nodes for this element type, nodfor: Number of nodes per element having nodal forces, nodstr: Number of nodes per element having nodal stresses, new_gen_element: Element of new generation.
280
-
281
-
Returns
282
-
-------
283
-
output:
284
-
An Output instance for this pin.
285
-
286
-
Examples
287
-
--------
288
-
>>> from ansys.dpf import core as dpf
289
-
>>> op = dpf.operators.metadata.element_types_provider()
0 commit comments