From a37957327cf5558c099d4cd9c8507706a5eb3202 Mon Sep 17 00:00:00 2001 From: PProfizi <100710998+PProfizi@users.noreply.github.com> Date: Mon, 4 Aug 2025 09:17:20 +0000 Subject: [PATCH] update generated code --- doc/source/_static/dpf_operators.html | 470 ++++------ .../math/compute_residual_and_error.py | 18 +- .../operators/math/modal_superposition.py | 41 + .../dpf/core/operators/result/__init__.py | 8 +- .../operators/result/gasket_deformation.py | 835 ------------------ .../operators/result/gasket_total_closure.py | 281 ++++++ ...rmation_X.py => gasket_total_closure_X.py} | 92 +- ...ation_XY.py => gasket_total_closure_XY.py} | 84 +- ...ation_XZ.py => gasket_total_closure_XZ.py} | 84 +- .../scoping/adapt_with_scopings_container.py | 41 + .../dpf/core/operators/utility/__init__.py | 1 + .../utility/customtypefield_get_attribute.py | 39 +- .../operators/utility/field_get_attribute.py | 39 +- .../utility/multiply_fields_containers.py | 417 +++++++++ .../utility/propertyfield_get_attribute.py | 39 +- .../core/operators/utility/set_property.py | 72 +- src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll | Bin 12921856 -> 12925952 bytes src/ansys/dpf/gatebin/DPFClientAPI.dll | Bin 915968 -> 861184 bytes .../dpf/gatebin/libAns.Dpf.GrpcClient.so | Bin 33152296 -> 33152664 bytes src/ansys/dpf/gatebin/libDPFClientAPI.so | Bin 2350400 -> 2023888 bytes 20 files changed, 1216 insertions(+), 1345 deletions(-) delete mode 100644 src/ansys/dpf/core/operators/result/gasket_deformation.py create mode 100644 src/ansys/dpf/core/operators/result/gasket_total_closure.py rename src/ansys/dpf/core/operators/result/{gasket_deformation_X.py => gasket_total_closure_X.py} (88%) rename src/ansys/dpf/core/operators/result/{gasket_deformation_XY.py => gasket_total_closure_XY.py} (89%) rename src/ansys/dpf/core/operators/result/{gasket_deformation_XZ.py => gasket_total_closure_XZ.py} (89%) create mode 100644 src/ansys/dpf/core/operators/utility/multiply_fields_containers.py diff --git a/doc/source/_static/dpf_operators.html b/doc/source/_static/dpf_operators.html index 2bccc4bdbd..ad08271819 100644 --- a/doc/source/_static/dpf_operators.html +++ b/doc/source/_static/dpf_operators.html @@ -5285,9 +5285,9 @@
unit as a string, ex 'm' for meter, 'Pa' for pascal,... |
Computes the element-wise L2 norm of the field elementary data. This process is applied on each field of the input fields container.
Lp normalisation type, p = 1, 2, ...n - Default Lp=2 - |
A PropertyField in pin 0 and a property name (string) in pin 1 are expected in input.
-Accepted inputs are: 'time_freq_support', 'scoping' and 'header'. - |
Property value. + |
Gets a property from an input field/field container. A PropertyFieldin pin 0, a property name (string) in pin 1 are expected as inputs
+Property to get. Accepted inputs are specific strings namely: 'unit, 'name','time_freq_support', 'scoping' and 'header'. + |
Property value that is returned. Accepted Outputs are: Field, PropertyField, CustomTypeField or their containers. |
Read/compute element euler angles X component of the vector (1st component) by calling the readers defined by the datasources. Regarding the requested location and the input mesh scoping, the result location can be Nodal/ElementalNodal/Elemental.
time/freq values (use doubles or field), time/freq set ids (use ints or scoping) or time/freq step ids (use scoping with TimeFreq_steps location) required in output. To specify time/freq values at specific load steps, put a Field (and not a list) in input with a scoping located on "TimeFreq_steps". Linear time freq intrapolation is performed if the values are not in the result files and the data at the max time or freq is taken when time/freqs are higher than available time/freqs in result files. To get all data for all time/freq sets, connect an int with value -1. |
nodes or elements scoping required in output. The output fields will be scoped on these node or element IDs. To figure out the ordering of the fields data, look at their scoping IDs as they might not be ordered as the input scoping was. The scoping's location indicates whether nodes or elements are asked for. Using scopings container allows you to split the result fields container into domains @@ -5528,18 +5528,7 @@Configurating operators |
Computes component-wise product between two fields of same dimensionality. If one field's scoping has an 'overall' location, then this field's values are applied on the other field entirely. When using a constant or 'work_by_index', you can use 'inplace' to reuse one of the fields.
field or fields container with only one field is expected |
field or fields container with only one field is expected - |
Checks if two meshes_container are identical.
-Double positive small value. Smallest value which will be considered during the comparison step. All the abs(values) in the field less than this value are considered as null, (default value:1.0e-14). - |
Double relative tolerance. Maximum tolerance gap between two compared values. Values within relative tolerance are considered identical (v1-v2)/v2 < relativeTol (default is 0.001). - |
compare auxiliary data (i.e property fields, scopings...). Default value is 'false'. - |
bool (true if identical...) - |
Computes component-wise product between two fields of same dimensionality. If one field's scoping has an 'overall' location, then this field's values are applied on the other field entirely. When using a constant or 'work_by_index', you can use 'inplace' to reuse one of the fields.
-field or fields container with only one field is expected - |
field or fields container with only one field is expected - |
Reads a field made of 3 coordinates and 3 Euler angles (6 dofs) by node from the result file.
-if true, then the field will only contain the scoping if any rotation is not zero. (default is false). - |
if true, then the field has ncomp=6 with 3 coordinates and 3 Euler angles, else there is only the Euler angles (default is true). - |
Reads/computes element nodal component stresses, average it on nodes (by default) and computes its invariants. +
Reads/computes element nodal component stresses, average it on nodes (by default) and computes its invariants. This operation is independent of the coordinate system unless averaging across elements is requested, in which case a rotation to the global coordinate system is performed.
time/freq values (use doubles or field), time/freq set ids (use ints or scoping) or time/freq step ids (use scoping with TimeFreq_steps location) required in output. To specify time/freq values at specific load steps, put a Field (and not a list) in input with a scoping located on "TimeFreq_steps". Linear time freq intrapolation is performed if the values are not in the result files and the data at the max time or freq is taken when time/freqs are higher than available time/freqs in result files. To get all data for all time/freq sets, connect an int with value -1. |
nodes or elements scoping required in output. The output fields will be scoped on these node or element IDs. To figure out the ordering of the fields data, look at their scoping IDs as they might not be ordered as the input scoping was. The scoping's location indicates whether nodes or elements are asked for. Using scopings container allows you to split the result fields container into domains @@ -5550,7 +5539,18 @@Configurating operators |
prevents from reading the mesh in the result files |
if 0 cyclic symmetry is ignored, if 1 cyclic sector is read, if 2 cyclic expansion is done, if 3 cyclic expansion is done and stages are merged (default is 1) |
elemental nodal beam results are read if this pin is set to true (default is false) - |
Read Beam TR Shear Stress (LSDyna) by calling the readers defined by the datasources.
+Checks if two meshes_container are identical.
+Double positive small value. Smallest value which will be considered during the comparison step. All the abs(values) in the field less than this value are considered as null, (default value:1.0e-14). + |
Double relative tolerance. Maximum tolerance gap between two compared values. Values within relative tolerance are considered identical (v1-v2)/v2 < relativeTol (default is 0.001). + |
compare auxiliary data (i.e property fields, scopings...). Default value is 'false'. + |
bool (true if identical...) + |
Computes component-wise product between two fields of same dimensionality. If one field's scoping has an 'overall' location, then this field's values are applied on the other field entirely. When using a constant or 'work_by_index', you can use 'inplace' to reuse one of the fields.
+field or fields container with only one field is expected + |
field or fields container with only one field is expected + |
Reads a field made of 3 coordinates and 3 Euler angles (6 dofs) by node from the result file.
+if true, then the field will only contain the scoping if any rotation is not zero. (default is false). + |
if true, then the field has ncomp=6 with 3 coordinates and 3 Euler angles, else there is only the Euler angles (default is true). + |
Read Beam TR Shear Stress (LSDyna) by calling the readers defined by the datasources.
time/freq values (use doubles or field), time/freq set ids (use ints or scoping) or time/freq step ids (use scoping with TimeFreq_steps location) required in output. To specify time/freq values at specific load steps, put a Field (and not a list) in input with a scoping located on "TimeFreq_steps". Linear time freq intrapolation is performed if the values are not in the result files and the data at the max time or freq is taken when time/freqs are higher than available time/freqs in result files. To get all data for all time/freq sets, connect an int with value -1. |
elements scoping required in output. |
result file container allowed to be kept open to cache data @@ -5704,7 +5704,17 @@Configurating operators |
If connected, this pin allows you to extract the result only on the selected shell layer(s). The available values are: 0: Top, 1: Bottom, 2: TopBottom, 3: Mid, 4: TopBottomMid. |
Computes element-wise ln(field[i]).
field or fields container with only one field is expected - |
Computes the element-wise invariants of a tensor field.
+Export a MeshedRegion in the pyVista format.
+Node coordinates. If not set, the node coordinates of the mesh are employed. + |
Export a linear version of the mesh (quadratic surface elements do no include midside nodes). If not set, defaults to true. + |
mesh to export in pyVista format + |
True if the VTK version employed by pyVista is > VTK 9. Default true. + |
Export elements as polyhedrons (cell-face-node representation). Default false. + |
Node coordinates double vector + |
Cell connectivity int vector + |
Cell types property int vector + |
If vtk_updated=false, offsets int vector + |
Computes the element-wise invariants of a tensor field.
stress intensity field |
stress equivalent intensity |
max shear stress field @@ -6388,10 +6398,7 @@Configurating operators |
result file path container, used if no streams are set |
integration point where the result will be read from. Default value: 0 (first integration point). |
(LSDyna) Unit System ID (int), semicolon-separated list of base unit strings (str) or UnitSystem instance - |
Sets a property to an input field/field container.
-Property to set - |
Property to set - |
Read/compute Electric flux density Y component of the vector (2nd component) by calling the readers defined by the datasources. Regarding the requested location and the input mesh scoping, the result location can be Nodal/ElementalNodal/Elemental.
+Read/compute Electric flux density Y component of the vector (2nd component) by calling the readers defined by the datasources. Regarding the requested location and the input mesh scoping, the result location can be Nodal/ElementalNodal/Elemental.
time/freq values (use doubles or field), time/freq set ids (use ints or scoping) or time/freq step ids (use scoping with TimeFreq_steps location) required in output. To specify time/freq values at specific load steps, put a Field (and not a list) in input with a scoping located on "TimeFreq_steps". Linear time freq intrapolation is performed if the values are not in the result files and the data at the max time or freq is taken when time/freqs are higher than available time/freqs in result files. To get all data for all time/freq sets, connect an int with value -1. |
nodes or elements scoping required in output. The output fields will be scoped on these node or element IDs. To figure out the ordering of the fields data, look at their scoping IDs as they might not be ordered as the input scoping was. The scoping's location indicates whether nodes or elements are asked for. Using scopings container allows you to split the result fields container into domains |
FieldsContainer already allocated modified inplace @@ -7435,7 +7442,7 @@Configurating operatorsVersion 0.0.0 Inputs
OutputsConfigurationsScriptingChangelogresult: stress principal 2Read/compute element nodal component stresses 2nd principal component by calling the readers defined by the datasources and computing its eigen values. This operation is independent of the coordinate system unless averaging across elements is requested, in which case a rotation to the global coordinate system is performed. -Version 1.0.0 Supported file typesInputs
OutputsConfigurationsScriptingChangelogmesh: mesh providerReads a mesh from result files. Version 0.0.0 Supported file typesInputs
OutputsConfigurationsScriptingChangelogresult: elastic strain XRead/compute element nodal component elastic strains XX normal component (00 component) by calling the readers defined by the datasources. Regarding the requested location and the input mesh scoping, the result location can be Nodal/ElementalNodal/Elemental. + |
computes the gasket total closure (sum of gasket thermal closure and gasket inelastic closure).
+Read/compute elemental gasket total closure XX normal component (00 component) by calling the readers defined by the datasources. Regarding the requested location and the input mesh scoping, the result location can be Nodal/ElementalNodal/Elemental.
+time/freq values (use doubles or field), time/freq set ids (use ints or scoping) or time/freq step ids (use scoping with TimeFreq_steps location) required in output. To specify time/freq values at specific load steps, put a Field (and not a list) in input with a scoping located on "TimeFreq_steps". Linear time freq intrapolation is performed if the values are not in the result files and the data at the max time or freq is taken when time/freqs are higher than available time/freqs in result files. To get all data for all time/freq sets, connect an int with value -1. + |
nodes or elements scoping required in output. The output fields will be scoped on these node or element IDs. To figure out the ordering of the fields data, look at their scoping IDs as they might not be ordered as the input scoping was. The scoping's location indicates whether nodes or elements are asked for. Using scopings container allows you to split the result fields container into domains + |
FieldsContainer already allocated modified inplace + |
result file container allowed to be kept open to cache data + |
result file path container, used if no streams are set + |
if true the field is rotated to global coordinate system (default true) + |
prevents from reading the mesh in the result files + |
requested location, default is Nodal + |
if 0 cyclic symmetry is ignored, if 1 cyclic sector is read, if 2 cyclic expansion is done, if 3 cyclic expansion is done and stages are merged (default is 1) + |
elemental nodal beam results are read if this pin is set to true (default is false) + |
Calculates for a mesh, the surface of each element's facet over time for each specified time step. The output is a new mesh made with only surface elements.
+Displacement field's container. + |
Mesh must be defined if the displacement field's container does not contain it, or if there is no displacement. + |
Surfaces field. + |
Mesh made of surface elements only. + |
Read/compute elemental gasket total closure XY shear component (01 component) by calling the readers defined by the datasources. Regarding the requested location and the input mesh scoping, the result location can be Nodal/ElementalNodal/Elemental.
+time/freq values (use doubles or field), time/freq set ids (use ints or scoping) or time/freq step ids (use scoping with TimeFreq_steps location) required in output. To specify time/freq values at specific load steps, put a Field (and not a list) in input with a scoping located on "TimeFreq_steps". Linear time freq intrapolation is performed if the values are not in the result files and the data at the max time or freq is taken when time/freqs are higher than available time/freqs in result files. To get all data for all time/freq sets, connect an int with value -1. + |
nodes or elements scoping required in output. The output fields will be scoped on these node or element IDs. To figure out the ordering of the fields data, look at their scoping IDs as they might not be ordered as the input scoping was. The scoping's location indicates whether nodes or elements are asked for. Using scopings container allows you to split the result fields container into domains + |
FieldsContainer already allocated modified inplace + |
result file container allowed to be kept open to cache data + |
result file path container, used if no streams are set + |
if true the field is rotated to global coordinate system (default true) + |
prevents from reading the mesh in the result files + |
requested location, default is Nodal + |
if 0 cyclic symmetry is ignored, if 1 cyclic sector is read, if 2 cyclic expansion is done, if 3 cyclic expansion is done and stages are merged (default is 1) + |
elemental nodal beam results are read if this pin is set to true (default is false) + |
Read/compute element nodal component creep strains XX normal component (00 component) by calling the readers defined by the datasources. Regarding the requested location and the input mesh scoping, the result location can be Nodal/ElementalNodal/Elemental.
+time/freq values (use doubles or field), time/freq set ids (use ints or scoping) or time/freq step ids (use scoping with TimeFreq_steps location) required in output. To specify time/freq values at specific load steps, put a Field (and not a list) in input with a scoping located on "TimeFreq_steps". Linear time freq intrapolation is performed if the values are not in the result files and the data at the max time or freq is taken when time/freqs are higher than available time/freqs in result files. To get all data for all time/freq sets, connect an int with value -1. + |
nodes or elements scoping required in output. The output fields will be scoped on these node or element IDs. To figure out the ordering of the fields data, look at their scoping IDs as they might not be ordered as the input scoping was. The scoping's location indicates whether nodes or elements are asked for. Using scopings container allows you to split the result fields container into domains + |
FieldsContainer already allocated modified inplace + |
result file container allowed to be kept open to cache data + |
result file path container, used if no streams are set + |
if true the field is rotated to global coordinate system (default true) + |
prevents from reading the mesh in the result files + |
requested location, default is Nodal + |
if 0 cyclic symmetry is ignored, if 1 cyclic sector is read, if 2 cyclic expansion is done, if 3 cyclic expansion is done and stages are merged (default is 1) + |
elemental nodal beam results are read if this pin is set to true (default is false) + |
Provides the property values for a set of elements for a defined property name.
+scoping that defines the set of elements to fetch the property values for. If not specified, applied on all the elements of the mesh. + |
optional if using a dataSources + |
optional if using a streamsContainer + |
property to read, that can be the following: elements_connectivity, nodes_connectivity, material, element_type, apdl_section_id, apdl_real_id, apdl_esys_id, mapdl_element_type, mapdl_element_type_id, harmonic_index, step, substep, keyopt_i (i = 1 -> 18). + |
property field + |
Read/compute elemental gasket total closure XZ shear component (02 component) by calling the readers defined by the datasources. Regarding the requested location and the input mesh scoping, the result location can be Nodal/ElementalNodal/Elemental.
+time/freq values (use doubles or field), time/freq set ids (use ints or scoping) or time/freq step ids (use scoping with TimeFreq_steps location) required in output. To specify time/freq values at specific load steps, put a Field (and not a list) in input with a scoping located on "TimeFreq_steps". Linear time freq intrapolation is performed if the values are not in the result files and the data at the max time or freq is taken when time/freqs are higher than available time/freqs in result files. To get all data for all time/freq sets, connect an int with value -1. + |
nodes or elements scoping required in output. The output fields will be scoped on these node or element IDs. To figure out the ordering of the fields data, look at their scoping IDs as they might not be ordered as the input scoping was. The scoping's location indicates whether nodes or elements are asked for. Using scopings container allows you to split the result fields container into domains + |
FieldsContainer already allocated modified inplace + |
result file container allowed to be kept open to cache data + |
result file path container, used if no streams are set + |
if true the field is rotated to global coordinate system (default true) + |
prevents from reading the mesh in the result files + |
requested location, default is Nodal + |
if 0 cyclic symmetry is ignored, if 1 cyclic sector is read, if 2 cyclic expansion is done, if 3 cyclic expansion is done and stages are merged (default is 1) + |
elemental nodal beam results are read if this pin is set to true (default is false) + |
Read/compute element nodal component elastic strains XX normal component (00 component) by calling the readers defined by the datasources. Regarding the requested location and the input mesh scoping, the result location can be Nodal/ElementalNodal/Elemental.
time/freq values (use doubles or field), time/freq set ids (use ints or scoping) or time/freq step ids (use scoping with TimeFreq_steps location) required in output. To specify time/freq values at specific load steps, put a Field (and not a list) in input with a scoping located on "TimeFreq_steps". Linear time freq intrapolation is performed if the values are not in the result files and the data at the max time or freq is taken when time/freqs are higher than available time/freqs in result files. To get all data for all time/freq sets, connect an int with value -1. |
nodes or elements scoping required in output. The output fields will be scoped on these node or element IDs. To figure out the ordering of the fields data, look at their scoping IDs as they might not be ordered as the input scoping was. The scoping's location indicates whether nodes or elements are asked for. Using scopings container allows you to split the result fields container into domains |
FieldsContainer already allocated modified inplace @@ -8648,12 +8515,7 @@Configurating operators |
prevents from reading the mesh in the result files |
if 0 cyclic symmetry is ignored, if 1 cyclic sector is read, if 2 cyclic expansion is done, if 3 cyclic expansion is done and stages are merged (default is 1) |
elemental nodal beam results are read if this pin is set to true (default is false) - |
Transforms Input fields into Elemental fields using an averaging process. The result is computed on a given element's scoping.
-if it is set to true, Elemental Nodal fields are first averaged on nodes and then averaged on elements (default is false). - |
If true, the data across different shell layers is averaged as well (default is false). - |
For shell/solid mixed fields, group in the same field all solids and shells (false by default). If this pin is true and collapse_shell_layers is false, a shell_layer needs to be specified. - |
0: Top, 1: Bottom, 2: TopBottom, 3: Mid, 4: TopBottomMid. If merge_solid_shell is true, this pin needs to be specified to a value that extracts only one layer (Top, Bottom or Mid). - |
Read Turbulent Specific Dissipation Rate (omega) by calling the readers defined by the datasources.
+Read Turbulent Specific Dissipation Rate (omega) by calling the readers defined by the datasources.
time/freq values (use doubles or field), time/freq set ids (use ints or scoping) or time/freq step ids (use scoping with TimeFreq_steps location) required in output. To specify time/freq values at specific load steps, put a Field (and not a list) in input with a scoping located on "TimeFreq_steps". Linear time freq intrapolation is performed if the values are not in the result files and the data at the max time or freq is taken when time/freqs are higher than available time/freqs in result files. To get all data for all time/freq sets, connect an int with value -1. |
nodes or elements scoping required in output. The output fields will be scoped on these node or element IDs. To figure out the ordering of the fields data, look at their scoping IDs as they might not be ordered as the input scoping was. The scoping's location indicates whether nodes or elements are asked for. Using scopings container allows you to split the result fields container into domains |
result file container allowed to be kept open to cache data @@ -8661,7 +8523,12 @@Configurating operators |
prevents from reading the mesh in the result files |
region id (integer) or vector of region ids (vector) or region scoping (scoping) of the model (region corresponds to zone for Fluid results or part for LSDyna results). |
(for Fluid results only) LabelSpace with combination of zone, phases or species ids - |
Read/compute element nodal component plastic strains by calling the readers defined by the datasources.
+Transforms Input fields into Elemental fields using an averaging process. The result is computed on a given element's scoping.
+if it is set to true, Elemental Nodal fields are first averaged on nodes and then averaged on elements (default is false). + |
If true, the data across different shell layers is averaged as well (default is false). + |
For shell/solid mixed fields, group in the same field all solids and shells (false by default). If this pin is true and collapse_shell_layers is false, a shell_layer needs to be specified. + |
0: Top, 1: Bottom, 2: TopBottom, 3: Mid, 4: TopBottomMid. If merge_solid_shell is true, this pin needs to be specified to a value that extracts only one layer (Top, Bottom or Mid). + |
Read/compute element nodal component plastic strains by calling the readers defined by the datasources.
elemental nodal beam results are read if this pin is set to true (default is false) |
If true, this pin forces the results to be split by element shape, indicated by the presence of the 'elshape' label in the output. If false, the results for all elements shapes are combined. Default value is false if averaging is not required and true if averaging is required. |
If connected, this pin allows you to extract the result only on the selected shell layer(s). The available values are: 0: Top, 1: Bottom, 2: TopBottom, 3: Mid, 4: TopBottomMid. - |
Read/compute element nodal component plastic strains XX normal component (00 component) by calling the readers defined by the datasources. Regarding the requested location and the input mesh scoping, the result location can be Nodal/ElementalNodal/Elemental.
+Transposes the input scoping or scopings container (Elemental/Faces --> Nodal, or Nodal ---> Elemental/Faces), based on the input mesh region.
+Scoping or scopings container (the input type is the output type) + |
if inclusive == 1 then all the elements/faces adjacent to the nodes/faces ids in input are added, if inclusive == 0, only the elements/faces which have all their nodes/faces in the scoping are included + |
Output scoping location for meshes with nodes, faces and elements. By default, elemental and faces scopings transpose to nodal, and nodal scopings transpose to elemental. + |
Scoping or scopings container (the input type is the output type) + |
Read/compute element nodal component plastic strains XX normal component (00 component) by calling the readers defined by the datasources. Regarding the requested location and the input mesh scoping, the result location can be Nodal/ElementalNodal/Elemental.
time/freq values (use doubles or field), time/freq set ids (use ints or scoping) or time/freq step ids (use scoping with TimeFreq_steps location) required in output. To specify time/freq values at specific load steps, put a Field (and not a list) in input with a scoping located on "TimeFreq_steps". Linear time freq intrapolation is performed if the values are not in the result files and the data at the max time or freq is taken when time/freqs are higher than available time/freqs in result files. To get all data for all time/freq sets, connect an int with value -1. |
nodes or elements scoping required in output. The output fields will be scoped on these node or element IDs. To figure out the ordering of the fields data, look at their scoping IDs as they might not be ordered as the input scoping was. The scoping's location indicates whether nodes or elements are asked for. Using scopings container allows you to split the result fields container into domains |
FieldsContainer already allocated modified inplace @@ -9121,17 +8993,7 @@Configurating operators |
global mass matrix multiplier |
global stiffness matrix multiplier |
field of modal damping ratio. - |
Export DPF data into vtu format.
-directory path - |
vtu base file name, (default is file) - |
mesh - |
Nodal, Face, or Elemental field, fields container (over time), or property field to export. When there is no support available in the exported mesh, that data is ignored. - |
Available are rawbinarycompressed, rawbinary, base64appended, base64inline, ascii, default is (rawbinarycompressed) - |
Whether to export the mesh as a point cloud. Default is False. - |
Whether to also export faces as shell elements when the mesh contains cells. Default is False. - |
List of names of mesh properties to export. - |
list of output vtu file path - |
Read/compute element nodal component creep strains by calling the readers defined by the datasources.
+Read/compute element nodal component creep strains by calling the readers defined by the datasources.
elemental nodal beam results are read if this pin is set to true (default is false) |
If true, this pin forces the results to be split by element shape, indicated by the presence of the 'elshape' label in the output. If false, the results for all elements shapes are combined. Default value is false if averaging is not required and true if averaging is required. |
If connected, this pin allows you to extract the result only on the selected shell layer(s). The available values are: 0: Top, 1: Bottom, 2: TopBottom, 3: Mid, 4: TopBottomMid. - |
Read/compute element nodal component creep strains YY normal component (11 component) by calling the readers defined by the datasources. Regarding the requested location and the input mesh scoping, the result location can be Nodal/ElementalNodal/Elemental.
+Export DPF data into vtu format.
+directory path + |
vtu base file name, (default is file) + |
mesh + |
Nodal, Face, or Elemental field, fields container (over time), or property field to export. When there is no support available in the exported mesh, that data is ignored. + |
Available are rawbinarycompressed, rawbinary, base64appended, base64inline, ascii, default is (rawbinarycompressed) + |
Whether to export the mesh as a point cloud. Default is False. + |
Whether to also export faces as shell elements when the mesh contains cells. Default is False. + |
List of names of mesh properties to export. + |
list of output vtu file path + |
Read/compute element nodal component creep strains YY normal component (11 component) by calling the readers defined by the datasources. Regarding the requested location and the input mesh scoping, the result location can be Nodal/ElementalNodal/Elemental.
time/freq values (use doubles or field), time/freq set ids (use ints or scoping) or time/freq step ids (use scoping with TimeFreq_steps location) required in output. To specify time/freq values at specific load steps, put a Field (and not a list) in input with a scoping located on "TimeFreq_steps". Linear time freq intrapolation is performed if the values are not in the result files and the data at the max time or freq is taken when time/freqs are higher than available time/freqs in result files. To get all data for all time/freq sets, connect an int with value -1. |
nodes or elements scoping required in output. The output fields will be scoped on these node or element IDs. To figure out the ordering of the fields data, look at their scoping IDs as they might not be ordered as the input scoping was. The scoping's location indicates whether nodes or elements are asked for. Using scopings container allows you to split the result fields container into domains |
FieldsContainer already allocated modified inplace @@ -9669,7 +9541,8 @@Configurating operators |
angle phi in degrees (default value 0.0), use if cyclic expansion is to be done. |
region id (integer) or vector of region ids (vector) or region scoping (scoping) of the model (region corresponds to zone for Fluid results or part for LSDyna results). |
(for Fluid results only) LabelSpace with combination of zone, phases or species ids - |
Read/compute nodal reaction forces X component of the vector (1st component) by calling the readers defined by the datasources.
+Converts 3D field from cartesian coordinates to spherical coordinates.
+Read/compute nodal reaction forces X component of the vector (1st component) by calling the readers defined by the datasources.
time/freq values (use doubles or field), time/freq set ids (use ints or scoping) or time/freq step ids (use scoping with TimeFreq_steps location) required in output. To specify time/freq values at specific load steps, put a Field (and not a list) in input with a scoping located on "TimeFreq_steps". Linear time freq intrapolation is performed if the values are not in the result files and the data at the max time or freq is taken when time/freqs are higher than available time/freqs in result files. To get all data for all time/freq sets, connect an int with value -1. |
nodes or elements scoping required in output. The output fields will be scoped on these node or element IDs. To figure out the ordering of the fields data, look at their scoping IDs as they might not be ordered as the input scoping was. The scoping's location indicates whether nodes or elements are asked for. Using scopings container allows you to split the result fields container into domains |
FieldsContainer already allocated modified inplace @@ -9687,8 +9560,7 @@Configurating operators |
if true the field is rotated to global coordinate system (default true) |
prevents from reading the mesh in the result files |
if 0 cyclic symmetry is ignored, if 1 cyclic sector is read, if 2 cyclic expansion is done, if 3 cyclic expansion is done and stages are merged (default is 1) - |
Converts 3D field from cartesian coordinates to spherical coordinates.
-Read Global External Work (LSDyna) by calling the readers defined by the datasources.
+Read Global External Work (LSDyna) by calling the readers defined by the datasources.
result file container allowed to be kept open to cache data |
result file path container, used if no streams are set |
(LSDyna) Unit System ID (int), semicolon-separated list of base unit strings (str) or UnitSystem instance @@ -10315,7 +10187,15 @@Configurating operators |
elemental nodal beam results are read if this pin is set to true (default is false) |
If true, this pin forces the results to be split by element shape, indicated by the presence of the 'elshape' label in the output. If false, the results for all elements shapes are combined. Default value is false if averaging is not required and true if averaging is required. |
If connected, this pin allows you to extract the result only on the selected shell layer(s). The available values are: 0: Top, 1: Bottom, 2: TopBottom, 3: Mid, 4: TopBottomMid. - |
Read/compute Temperature Gradient X component of the vector (1st component) by calling the readers defined by the datasources. Regarding the requested location and the input mesh scoping, the result location can be Nodal/ElementalNodal/Elemental.
+Read/compute names result from result streams.
+time/freq (use doubles or field), time/freq set ids (use ints or scoping) or time/freq step ids (use scoping with TimeFreq_steps location) required in output + |
nodes or elements scoping required in output. The scoping's location indicates whether nodes or elements are asked. Using scopings container enables to split the result fields container in domains + |
result file container allowed to be kept open to cache data + |
result file path container, used if no streams are set + |
name of the result to read. By default the name of the operator is taken. + |
Optional zone name/Id of the mesh. + |
Results + |
Read/compute Temperature Gradient X component of the vector (1st component) by calling the readers defined by the datasources. Regarding the requested location and the input mesh scoping, the result location can be Nodal/ElementalNodal/Elemental.
time/freq values (use doubles or field), time/freq set ids (use ints or scoping) or time/freq step ids (use scoping with TimeFreq_steps location) required in output. To specify time/freq values at specific load steps, put a Field (and not a list) in input with a scoping located on "TimeFreq_steps". Linear time freq intrapolation is performed if the values are not in the result files and the data at the max time or freq is taken when time/freqs are higher than available time/freqs in result files. To get all data for all time/freq sets, connect an int with value -1. |
nodes or elements scoping required in output. The output fields will be scoped on these node or element IDs. To figure out the ordering of the fields data, look at their scoping IDs as they might not be ordered as the input scoping was. The scoping's location indicates whether nodes or elements are asked for. Using scopings container allows you to split the result fields container into domains |
FieldsContainer already allocated modified inplace @@ -14051,9 +13931,9 @@Configurating operatorsVersion 0.0.0 Inputs
OutputsConfigurationsScriptingChangelogmetadata: boundary condition providerReads boundary conditions from the results files contained in the streams or data sources. Version 0.0.0 Supported file typesInputsOutputs
ConfigurationsScriptingChangelogutility: custom type field get attributeA CustomTypeField in pin 0 and a property name (string) in pin 1 are expected in input. -Version 0.0.0 Inputs
Outputs
ConfigurationsScriptingChangelogutility: custom type field get attributeGets a property from an input field/field container. A CustomTypeFieldin pin 0, a property name (string) in pin 1 are expected as inputs +Version 0.0.0 Inputs
Outputs
ConfigurationsScriptingChangelogutility: merge property fieldsAssembles a set of property fields into a unique one. Version 0.0.0 Inputs
ConfigurationsScriptingChangelogutility: overlap fieldsTake two fields and superpose them, the overlapping field will override values of base_field. Version 0.0.0 InputsOutputsConfigurationsScriptingChangelogmapping: find reduced coordinatesFinds the elements corresponding to the given coordinates in input and computes their reduced coordinates in those elements. Version 0.0.0 Inputs
OutputsConfigurationsScriptingChangelogaveraging: elemental nodal to nodal elemental (field)Transforms an Elemental Nodal field to Nodal Elemental. The result is computed on a given node's scoping. Version 0.0.0 Inputs
OutputsConfigurationsScriptingChangelogscoping: adapt with scopings containerRescopes/splits a fields container to correspond to a scopings container. -Version 0.0.0 InputsOutputsConfigurationsScriptingChangelogscoping: nodes in meshRetrieves the nodal scoping of a given input mesh, which contains the node IDs. +Version 0.0.0 Inputs
OutputsConfigurationsScriptingChangelogscoping: nodes in meshRetrieves the nodal scoping of a given input mesh, which contains the node IDs. Version 0.0.0 InputsOutputsConfigurationsScriptingChangelogutility: merge any objectsMerges a list of objects having the same data types. Once the data type is found, the merge operation is forwarded to the correct merge Operator. Version 0.0.0 Inputs
OutputsConfigurationsScriptingChangelogutility: merge time freq supportsAssembles a set of time/frequency supports into a unique one. @@ -14320,10 +14196,10 @@Configurating operators |
Iterable object, generated by make_for_each_range oeprator, that can be combined with the one currently generated. |
Operator that must be reconnected with the range values. |
Incrementaly merge the input.
-Apply a transformation (rotation) matrix on all the fields of a fields container.
+Incrementaly merge the input.
+Apply a transformation (rotation) matrix on all the fields of a fields container.
3-3 rotation matrix - |
Incrementaly merge the input.
-Incrementaly merge the input.
+Incrementaly merge the input.
Extract a mesh made of points elements. This mesh is made from input meshes coordinates on the input scopings.
Incrementaly merge the input.
Assemble fields in a fields container.
@@ -14351,9 +14227,13 @@Supported property names are: "labels". |
Value of the property to be set : vector of string or LabelSpace for "labels". |
Returns the modified FieldsContainer. - |
A Field in pin 0 and a property name (string) in pin 1 are expected in input.
-Accepted inputs are: 'time_freq_support', 'scoping' and 'header'. - |
Property value. + |
Sets a property to an input field/field container. A Fieldin pin 0, a property name (string) in pin 1 and a valid property value in pin 2 are expected as inputs
+Property to set. Accepted inputs are specific strings namely: 'unit', 'name', 'time_freq_support', 'scoping', 'header'. + |
Property Value to set. Accepted inputs on this pin are: CTimeFreqSupport, CScoping, DataTree, int, double, string. + |
Accepted Outputs are: Field, PropertyField, CustomTypeField or their containers. + |
Gets a property from an input field/field container. A Fieldin pin 0, a property name (string) in pin 1 are expected as inputs
+Property to get. Accepted inputs are specific strings namely: 'unit, 'name','time_freq_support', 'scoping' and 'header'. + |
Property value that is returned. Accepted Outputs are: Field, PropertyField, CustomTypeField or their containers. |
Expand the mesh.
sectors to expand (start at 0), for multistage: use scopings container with 'stage' label. |
expanded meshed region. @@ -14598,10 +14478,10 @@Configurating operatorsVersion 0.0.0 InputsOutputs
ConfigurationsScriptingChangeloginvariant: segalman von mises eqv (fields container)Computes the element-wise Segalman Von-Mises criteria on all the tensor fields of a fields container. -Version 0.0.0 InputsOutputsConfigurationsScriptingChangeloginvariant: von mises eqv (fields container)Computes the element-wise Von-Mises criteria on all the tensor fields of a fields container. + |
Computes the element-wise Von-Mises criteria on all the tensor fields of a fields container.
Poisson ratio to be used in equivalent strain calculation. - |
Computes the element centroids of the mesh. It also outputs the element measure.
+Computes the element-wise Segalman Von-Mises criteria on all the tensor fields of a fields container.
+Computes the element centroids of the mesh. It also outputs the element measure.
If provided, only the centroids of the elements in the scoping are computed. |
Mesh to compute centroids |
element centroids. @@ -14675,7 +14555,14 @@Configurating operatorsVersion 0.0.0 Inputs
OutputsConfigurationsScriptingChangeloggeo: elements volumes over timeCalculates for a mesh, the volume of each element over time for each specified time step. + |
Multiply two fields containers with only labels as time and/or complex using dgemm() for real, and zgeem for complex: fcC=fcA*fcB.Matrices for both fcA and fcB represents rows as data and columns as a time step
+If true, output will be a a custom container, otherwise a reconstructed fields_container. Default is false. + |
It is assumed that the first container (fcA). + |
label to use as combined columns from the container A (combined column fields must have the same scoping). Default is none. + |
It is assumed that the second container (fcB). + |
label to use as combined columns from the container B (combined column fields must have the same scoping). Default is none. + |
If a non empty fields container is introduced, it will be modified inplace (and sent to the output) to add the contributionof the requested expansion.It is required that the label spaces produced from the multiplication are the same as the incremental ones. + |
Calculates for a mesh, the volume of each element over time for each specified time step.
Displacement field's container. Must contain the mesh if mesh not specified in input. |
Mesh must be defined if the displacement field's container does not contain it, or if there is no displacement. |
Apply bartlett windowing on a given FieldsContainer having time label or a Field located on time. Assume that time sampling is evenly spaced (use time_freq_interpolation before otherwise).
@@ -14889,7 +14776,8 @@Take a mesh and a scoping (elemental or nodal) and create a new mesh that contains this selection only.
Number of extension layer |
Computes the solution in the time/frequency space from a modal solution by multiplying a modal basis (in 0)by the solution in this modal space (coefficients for each mode for each time/frequency) (in 1).
-One field by mode with each field representing a mode shape on nodes or elements. +Version 0.0.0 Inputs
Outputs
ConfigurationsScriptingChangelogresult: compute total strain YComputes the strain from a displacement field. + |
Extract all results from a datasources and exports them into vtu format. All the connected inputs are forwarded to the result providers operators.
+time sets to export, default is all + |
result file container allowed to be kept open to cache data + |
result file path container, used if no streams are set + |
directory path + |
vtu base file name, (default is file) + |
if Operator's names are connected to this Pin, only these results are exported (else all available results are exported) + |
Available are rawbinarycompressed, rawbinary, base64appended, base64inline, ascii, default is (rawbinarycompressed) + |
list of output vtu file path + |
Computes the strain from a displacement field. Only SOLID185 (B-Bar, Simplified Enhanced Strain, Enhanced Strain formulations), SOLID186 (Full Integration) & SOLID187 elements are supported. Layered elements are not supported. Thermal strains are not supported. @@ -15224,39 +15121,12 @@
Average the Elemental Nodal result to the requested location. |
Field/or fields container containing only the elastic strain field (element nodal). |
The computed result fields container (elemental nodal). - |
Extract all results from a datasources and exports them into vtu format. All the connected inputs are forwarded to the result providers operators.
-time sets to export, default is all - |
result file container allowed to be kept open to cache data - |
result file path container, used if no streams are set - |
directory path - |
vtu base file name, (default is file) - |
if Operator's names are connected to this Pin, only these results are exported (else all available results are exported) - |
Available are rawbinarycompressed, rawbinary, base64appended, base64inline, ascii, default is (rawbinarycompressed) - |
list of output vtu file path - |
Export a MeshedRegion in the pyVista format.
-Node coordinates. If not set, the node coordinates of the mesh are employed. - |
Export a linear version of the mesh (quadratic surface elements do no include midside nodes). If not set, defaults to true. - |
mesh to export in pyVista format - |
True if the VTK version employed by pyVista is > VTK 9. Default true. - |
Export elements as polyhedrons (cell-face-node representation). Default false. - |
Node coordinates double vector - |
Cell connectivity int vector - |
Cell types property int vector - |
If vtk_updated=false, offsets int vector - |
Decimate a meshed region
+Decimate a meshed region
Mesh to decimate |
Target ratio of elements to preserve, the actual number of elements preserved might differ. Default value is 0.5. |
Quality measure for the resulting decimated mesh. Lower aggresiveness will provide a higher quality mesh with the tradeoff of higher execution time. Value range is 0 to 150, default is 0. |
Decimated mesh with triangle elements - |
Read/compute names result from result streams.
-time/freq (use doubles or field), time/freq set ids (use ints or scoping) or time/freq step ids (use scoping with TimeFreq_steps location) required in output - |
nodes or elements scoping required in output. The scoping's location indicates whether nodes or elements are asked. Using scopings container enables to split the result fields container in domains - |
result file container allowed to be kept open to cache data - |
result file path container, used if no streams are set - |
name of the result to read. By default the name of the operator is taken. - |
Optional zone name/Id of the mesh. - |
Results - |
Generates a workflow that computes the equivalent (Von Mises) stresses and averages it to the nodes (by default). For multibody simulations, averaging across bodies can either be activated or deactivated.
+Generates a workflow that computes the equivalent (Von Mises) stresses and averages it to the nodes (by default). For multibody simulations, averaging across bodies can either be activated or deactivated.
time/freq (use doubles or field), time/freq set ids (use ints or scoping) or time/freq step ids use scoping with TimeFreq_steps location) required in output. |
nodes or elements scoping required in output. |
result file container allowed to be kept open to cache data. diff --git a/src/ansys/dpf/core/operators/math/compute_residual_and_error.py b/src/ansys/dpf/core/operators/math/compute_residual_and_error.py index a08dbbee36..8372945032 100644 --- a/src/ansys/dpf/core/operators/math/compute_residual_and_error.py +++ b/src/ansys/dpf/core/operators/math/compute_residual_and_error.py @@ -33,9 +33,9 @@ class compute_residual_and_error(Operator): normalization_type: int, optional type of normalization applied to the residuals and norm calculation (optional, defaut: absolute): 0 for absolute, - 1 for relative to the first entry at a given time step, - 2 for normalized by the max at a given time step of the first entry or residuals depending on the reference field option, - 3 for normalized by the max over all time steps of the first entry or residuals depending on the reference field option + 1 for relative to the first entry, + 2 for normalized by the max of each field of the first entry or residuals depending on the reference field option, + 3 for normalized by the max over all fields of the first entry or residuals depending on the reference field option norm_calculation_type: int, optional type for norm calculation (optional, default: L2) - It is normalized depending on Pin2 selection 1 for L1, ie sum(abs(xi)), @@ -140,9 +140,9 @@ def _spec() -> Specification: optional=True, document=r"""type of normalization applied to the residuals and norm calculation (optional, defaut: absolute): 0 for absolute, - 1 for relative to the first entry at a given time step, - 2 for normalized by the max at a given time step of the first entry or residuals depending on the reference field option, - 3 for normalized by the max over all time steps of the first entry or residuals depending on the reference field option""", + 1 for relative to the first entry, + 2 for normalized by the max of each field of the first entry or residuals depending on the reference field option, + 3 for normalized by the max over all fields of the first entry or residuals depending on the reference field option""", ), 2: PinSpecification( name="norm_calculation_type", @@ -308,9 +308,9 @@ def normalization_type(self) -> Input: type of normalization applied to the residuals and norm calculation (optional, defaut: absolute): 0 for absolute, - 1 for relative to the first entry at a given time step, - 2 for normalized by the max at a given time step of the first entry or residuals depending on the reference field option, - 3 for normalized by the max over all time steps of the first entry or residuals depending on the reference field option + 1 for relative to the first entry, + 2 for normalized by the max of each field of the first entry or residuals depending on the reference field option, + 3 for normalized by the max over all fields of the first entry or residuals depending on the reference field option Returns ------- diff --git a/src/ansys/dpf/core/operators/math/modal_superposition.py b/src/ansys/dpf/core/operators/math/modal_superposition.py index b12ac71377..1e26c3c3cc 100644 --- a/src/ansys/dpf/core/operators/math/modal_superposition.py +++ b/src/ansys/dpf/core/operators/math/modal_superposition.py @@ -23,6 +23,8 @@ class modal_superposition(Operator): Parameters ---------- + is_output_custom: bool, optional + If true, output will be a a custom container, otherwise a reconstructed fields_container. Default is false. modal_basis: FieldsContainer One field by mode with each field representing a mode shape on nodes or elements. solution_in_modal_space: FieldsContainer @@ -46,6 +48,8 @@ class modal_superposition(Operator): >>> op = dpf.operators.math.modal_superposition() >>> # Make input connections + >>> my_is_output_custom = bool() + >>> op.inputs.is_output_custom.connect(my_is_output_custom) >>> my_modal_basis = dpf.FieldsContainer() >>> op.inputs.modal_basis.connect(my_modal_basis) >>> my_solution_in_modal_space = dpf.FieldsContainer() @@ -59,6 +63,7 @@ class modal_superposition(Operator): >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.math.modal_superposition( + ... is_output_custom=my_is_output_custom, ... modal_basis=my_modal_basis, ... solution_in_modal_space=my_solution_in_modal_space, ... incremental_fc=my_incremental_fc, @@ -72,6 +77,7 @@ class modal_superposition(Operator): def __init__( self, + is_output_custom=None, modal_basis=None, solution_in_modal_space=None, incremental_fc=None, @@ -85,6 +91,8 @@ def __init__( ) self._inputs = InputsModalSuperposition(self) self._outputs = OutputsModalSuperposition(self) + if is_output_custom is not None: + self.inputs.is_output_custom.connect(is_output_custom) if modal_basis is not None: self.inputs.modal_basis.connect(modal_basis) if solution_in_modal_space is not None: @@ -105,6 +113,12 @@ def _spec() -> Specification: spec = Specification( description=description, map_input_pin_spec={ + -1: PinSpecification( + name="is_output_custom", + type_names=["bool"], + optional=True, + document=r"""If true, output will be a a custom container, otherwise a reconstructed fields_container. Default is false.""", + ), 0: PinSpecification( name="modal_basis", type_names=["fields_container"], @@ -201,6 +215,8 @@ class InputsModalSuperposition(_Inputs): -------- >>> from ansys.dpf import core as dpf >>> op = dpf.operators.math.modal_superposition() + >>> my_is_output_custom = bool() + >>> op.inputs.is_output_custom.connect(my_is_output_custom) >>> my_modal_basis = dpf.FieldsContainer() >>> op.inputs.modal_basis.connect(my_modal_basis) >>> my_solution_in_modal_space = dpf.FieldsContainer() @@ -215,6 +231,10 @@ class InputsModalSuperposition(_Inputs): def __init__(self, op: Operator): super().__init__(modal_superposition._spec().inputs, op) + self._is_output_custom = Input( + modal_superposition._spec().input_pin(-1), -1, op, -1 + ) + self._inputs.append(self._is_output_custom) self._modal_basis = Input(modal_superposition._spec().input_pin(0), 0, op, -1) self._inputs.append(self._modal_basis) self._solution_in_modal_space = Input( @@ -230,6 +250,27 @@ def __init__(self, op: Operator): self._mesh_scoping = Input(modal_superposition._spec().input_pin(4), 4, op, -1) self._inputs.append(self._mesh_scoping) + @property + def is_output_custom(self) -> Input: + r"""Allows to connect is_output_custom input to the operator. + + If true, output will be a a custom container, otherwise a reconstructed fields_container. Default is false. + + Returns + ------- + input: + An Input instance for this pin. + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.math.modal_superposition() + >>> op.inputs.is_output_custom.connect(my_is_output_custom) + >>> # or + >>> op.inputs.is_output_custom(my_is_output_custom) + """ + return self._is_output_custom + @property def modal_basis(self) -> Input: r"""Allows to connect modal_basis input to the operator. diff --git a/src/ansys/dpf/core/operators/result/__init__.py b/src/ansys/dpf/core/operators/result/__init__.py index 0c78f96868..3921cfe789 100644 --- a/src/ansys/dpf/core/operators/result/__init__.py +++ b/src/ansys/dpf/core/operators/result/__init__.py @@ -126,10 +126,6 @@ from .euler_load_buckling import euler_load_buckling from .euler_nodes import euler_nodes from .fluid_velocity import fluid_velocity -from .gasket_deformation import gasket_deformation -from .gasket_deformation_X import gasket_deformation_X -from .gasket_deformation_XY import gasket_deformation_XY -from .gasket_deformation_XZ import gasket_deformation_XZ from .gasket_inelastic_closure import gasket_inelastic_closure from .gasket_inelastic_closure_X import gasket_inelastic_closure_X from .gasket_inelastic_closure_XY import gasket_inelastic_closure_XY @@ -142,6 +138,10 @@ from .gasket_thermal_closure_X import gasket_thermal_closure_X from .gasket_thermal_closure_XY import gasket_thermal_closure_XY from .gasket_thermal_closure_XZ import gasket_thermal_closure_XZ +from .gasket_total_closure import gasket_total_closure +from .gasket_total_closure_X import gasket_total_closure_X +from .gasket_total_closure_XY import gasket_total_closure_XY +from .gasket_total_closure_XZ import gasket_total_closure_XZ from .global_added_mass import global_added_mass from .global_added_mass_pct import global_added_mass_pct from .global_center_mass import global_center_mass diff --git a/src/ansys/dpf/core/operators/result/gasket_deformation.py b/src/ansys/dpf/core/operators/result/gasket_deformation.py deleted file mode 100644 index b46246cd53..0000000000 --- a/src/ansys/dpf/core/operators/result/gasket_deformation.py +++ /dev/null @@ -1,835 +0,0 @@ -""" -gasket_deformation - -Autogenerated DPF operator classes. -""" - -from __future__ import annotations - -from warnings import warn -from ansys.dpf.core.dpf_operator import Operator -from ansys.dpf.core.inputs import Input, _Inputs -from ansys.dpf.core.outputs import Output, _Outputs -from ansys.dpf.core.operators.specification import PinSpecification, Specification -from ansys.dpf.core.config import Config -from ansys.dpf.core.server_types import AnyServerType - - -class gasket_deformation(Operator): - r"""Read/compute elemental gasket deformation by calling the readers defined - by the datasources. - The ‘requested_location’ and ‘mesh_scoping’ inputs - are processed to see if they need scoping transposition or result - averaging. The resulting output fields have a ‘Nodal’, ‘ElementalNodal’ - or ‘Elemental’ location. - Once the need for averaging has been - detected, the behavior of the combined connection of the ‘split_shells’ - and ‘shell_layer’ pins is: - - +-------------------+-------------------+-------------+---------------+ - | Averaging is | ‘split_shells’ | ‘s | Expected | - | needed | | hell_layer’ | output | - +===================+===================+=============+===============+ - | No | Not | Not | Location as | - | | connected/false | connected | in the result | - | | | | file. Fields | - | | | | with all | - | | | | element | - | | | | shapes | - | | | | combined. All | - | | | | shell layers | - | | | | present. | - +-------------------+-------------------+-------------+---------------+ - | No | true | Not | Location as | - | | | connected | in the result | - | | | | file. Fields | - | | | | split | - | | | | according to | - | | | | element | - | | | | shapes. All | - | | | | shell layers | - | | | | present. | - +-------------------+-------------------+-------------+---------------+ - | No | true | Connected | Location as | - | | | | in the result | - | | | | file. Fields | - | | | | split | - | | | | according to | - | | | | element | - | | | | shapes. Only | - | | | | the requested | - | | | | shell layer | - | | | | present. | - +-------------------+-------------------+-------------+---------------+ - | No | Not | Connected | Location as | - | | connected/false | | in the result | - | | | | file. Fields | - | | | | with all | - | | | | element | - | | | | shapes | - | | | | combined. | - | | | | Only the | - | | | | requested | - | | | | shell layer | - | | | | present. | - +-------------------+-------------------+-------------+---------------+ - | Yes | Not | Not | Location as | - | | connected/true | connected | requested. | - | | | | Fields split | - | | | | according to | - | | | | element | - | | | | shapes. All | - | | | | shell layers | - | | | | present. | - +-------------------+-------------------+-------------+---------------+ - | Yes | false | Not | Location as | - | | | connected | requested. | - | | | | Fields with | - | | | | all element | - | | | | shapes | - | | | | combined. All | - | | | | shell layers | - | | | | present. | - +-------------------+-------------------+-------------+---------------+ - | Yes | false | Connected | Location as | - | | | | requested. | - | | | | Fields with | - | | | | all element | - | | | | shapes | - | | | | combined. | - | | | | Only the | - | | | | requested | - | | | | shell layer | - | | | | present. | - +-------------------+-------------------+-------------+---------------+ - | Yes | Not | Connected | Location as | - | | connected/true | | requested. | - | | | | Fields split | - | | | | according to | - | | | | element | - | | | | shapes. Only | - | | | | the requested | - | | | | shell layer | - | | | | present. | - +-------------------+-------------------+-------------+---------------+ - - - The available ‘elshape’ values are: - - ======= ====================================================== - elshape Related elements - ======= ====================================================== - 1 Shell (generic) - 2 Solid - 3 Beam - 4 Skin - 5 Contact - 6 Load - 7 Point - 8 Shell with 1 result across thickness (membrane) - 9 Shell with 2 results across thickness (top/bottom) - 10 Shell with 3 results across thickness (top/bottom/mid) - 11 Gasket - 12 Multi-Point Constraint - 13 Pretension - ======= ====================================================== - - - Parameters - ---------- - time_scoping: Scoping or int or float or Field, optional - time/freq values (use doubles or field), time/freq set ids (use ints or scoping) or time/freq step ids (use scoping with TimeFreq_steps location) required in output. To specify time/freq values at specific load steps, put a Field (and not a list) in input with a scoping located on "TimeFreq_steps". Linear time freq intrapolation is performed if the values are not in the result files and the data at the max time or freq is taken when time/freqs are higher than available time/freqs in result files. To get all data for all time/freq sets, connect an int with value -1. - mesh_scoping: ScopingsContainer or Scoping, optional - nodes or elements scoping required in output. The output fields will be scoped on these node or element IDs. To figure out the ordering of the fields data, look at their scoping IDs as they might not be ordered as the input scoping was. The scoping's location indicates whether nodes or elements are asked for. Using scopings container allows you to split the result fields container into domains - fields_container: FieldsContainer, optional - Fields container already allocated modified inplace - streams_container: StreamsContainer, optional - result file container allowed to be kept open to cache data - data_sources: DataSources - result file path container, used if no streams are set - bool_rotate_to_global: bool, optional - if true the field is rotated to global coordinate system (default true). Please check your results carefully if 'false' is used for Elemental or ElementalNodal results averaged to the Nodes when adjacent elements do not share the same coordinate system, as results may be incorrect. - mesh: MeshedRegion or MeshesContainer, optional - prevents from reading the mesh in the result files - requested_location: str, optional - requested location Nodal, Elemental or ElementalNodal - read_beams: bool, optional - elemental nodal beam results are read if this pin is set to true (default is false) - split_shells: bool, optional - If true, this pin forces the results to be split by element shape, indicated by the presence of the 'elshape' label in the output. If false, the results for all elements shapes are combined. Default value is false if averaging is not required and true if averaging is required. - shell_layer: int, optional - If connected, this pin allows you to extract the result only on the selected shell layer(s). The available values are: 0: Top, 1: Bottom, 2: TopBottom, 3: Mid, 4: TopBottomMid. - - Returns - ------- - fields_container: FieldsContainer - - Examples - -------- - >>> from ansys.dpf import core as dpf - - >>> # Instantiate operator - >>> op = dpf.operators.result.gasket_deformation() - - >>> # Make input connections - >>> my_time_scoping = dpf.Scoping() - >>> op.inputs.time_scoping.connect(my_time_scoping) - >>> my_mesh_scoping = dpf.ScopingsContainer() - >>> op.inputs.mesh_scoping.connect(my_mesh_scoping) - >>> my_fields_container = dpf.FieldsContainer() - >>> op.inputs.fields_container.connect(my_fields_container) - >>> my_streams_container = dpf.StreamsContainer() - >>> op.inputs.streams_container.connect(my_streams_container) - >>> my_data_sources = dpf.DataSources() - >>> op.inputs.data_sources.connect(my_data_sources) - >>> my_bool_rotate_to_global = bool() - >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) - >>> my_mesh = dpf.MeshedRegion() - >>> op.inputs.mesh.connect(my_mesh) - >>> my_requested_location = str() - >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_beams = bool() - >>> op.inputs.read_beams.connect(my_read_beams) - >>> my_split_shells = bool() - >>> op.inputs.split_shells.connect(my_split_shells) - >>> my_shell_layer = int() - >>> op.inputs.shell_layer.connect(my_shell_layer) - - >>> # Instantiate operator and connect inputs in one line - >>> op = dpf.operators.result.gasket_deformation( - ... time_scoping=my_time_scoping, - ... mesh_scoping=my_mesh_scoping, - ... fields_container=my_fields_container, - ... streams_container=my_streams_container, - ... data_sources=my_data_sources, - ... bool_rotate_to_global=my_bool_rotate_to_global, - ... mesh=my_mesh, - ... requested_location=my_requested_location, - ... read_beams=my_read_beams, - ... split_shells=my_split_shells, - ... shell_layer=my_shell_layer, - ... ) - - >>> # Get output data - >>> result_fields_container = op.outputs.fields_container() - """ - - def __init__( - self, - time_scoping=None, - mesh_scoping=None, - fields_container=None, - streams_container=None, - data_sources=None, - bool_rotate_to_global=None, - mesh=None, - requested_location=None, - read_beams=None, - split_shells=None, - shell_layer=None, - config=None, - server=None, - ): - super().__init__(name="GKD", config=config, server=server) - self._inputs = InputsGasketDeformation(self) - self._outputs = OutputsGasketDeformation(self) - if time_scoping is not None: - self.inputs.time_scoping.connect(time_scoping) - if mesh_scoping is not None: - self.inputs.mesh_scoping.connect(mesh_scoping) - if fields_container is not None: - self.inputs.fields_container.connect(fields_container) - if streams_container is not None: - self.inputs.streams_container.connect(streams_container) - if data_sources is not None: - self.inputs.data_sources.connect(data_sources) - if bool_rotate_to_global is not None: - self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) - if mesh is not None: - self.inputs.mesh.connect(mesh) - if requested_location is not None: - self.inputs.requested_location.connect(requested_location) - if read_beams is not None: - self.inputs.read_beams.connect(read_beams) - if split_shells is not None: - self.inputs.split_shells.connect(split_shells) - if shell_layer is not None: - self.inputs.shell_layer.connect(shell_layer) - - @staticmethod - def _spec() -> Specification: - description = r"""Read/compute elemental gasket deformation by calling the readers defined -by the datasources. - The ‘requested_location’ and ‘mesh_scoping’ inputs -are processed to see if they need scoping transposition or result -averaging. The resulting output fields have a ‘Nodal’, ‘ElementalNodal’ -or ‘Elemental’ location. - Once the need for averaging has been -detected, the behavior of the combined connection of the ‘split_shells’ -and ‘shell_layer’ pins is: - -+-------------------+-------------------+-------------+---------------+ -| Averaging is | ‘split_shells’ | ‘s | Expected | -| needed | | hell_layer’ | output | -+===================+===================+=============+===============+ -| No | Not | Not | Location as | -| | connected/false | connected | in the result | -| | | | file. Fields | -| | | | with all | -| | | | element | -| | | | shapes | -| | | | combined. All | -| | | | shell layers | -| | | | present. | -+-------------------+-------------------+-------------+---------------+ -| No | true | Not | Location as | -| | | connected | in the result | -| | | | file. Fields | -| | | | split | -| | | | according to | -| | | | element | -| | | | shapes. All | -| | | | shell layers | -| | | | present. | -+-------------------+-------------------+-------------+---------------+ -| No | true | Connected | Location as | -| | | | in the result | -| | | | file. Fields | -| | | | split | -| | | | according to | -| | | | element | -| | | | shapes. Only | -| | | | the requested | -| | | | shell layer | -| | | | present. | -+-------------------+-------------------+-------------+---------------+ -| No | Not | Connected | Location as | -| | connected/false | | in the result | -| | | | file. Fields | -| | | | with all | -| | | | element | -| | | | shapes | -| | | | combined. | -| | | | Only the | -| | | | requested | -| | | | shell layer | -| | | | present. | -+-------------------+-------------------+-------------+---------------+ -| Yes | Not | Not | Location as | -| | connected/true | connected | requested. | -| | | | Fields split | -| | | | according to | -| | | | element | -| | | | shapes. All | -| | | | shell layers | -| | | | present. | -+-------------------+-------------------+-------------+---------------+ -| Yes | false | Not | Location as | -| | | connected | requested. | -| | | | Fields with | -| | | | all element | -| | | | shapes | -| | | | combined. All | -| | | | shell layers | -| | | | present. | -+-------------------+-------------------+-------------+---------------+ -| Yes | false | Connected | Location as | -| | | | requested. | -| | | | Fields with | -| | | | all element | -| | | | shapes | -| | | | combined. | -| | | | Only the | -| | | | requested | -| | | | shell layer | -| | | | present. | -+-------------------+-------------------+-------------+---------------+ -| Yes | Not | Connected | Location as | -| | connected/true | | requested. | -| | | | Fields split | -| | | | according to | -| | | | element | -| | | | shapes. Only | -| | | | the requested | -| | | | shell layer | -| | | | present. | -+-------------------+-------------------+-------------+---------------+ - -- The available ‘elshape’ values are: - -======= ====================================================== -elshape Related elements -======= ====================================================== -1 Shell (generic) -2 Solid -3 Beam -4 Skin -5 Contact -6 Load -7 Point -8 Shell with 1 result across thickness (membrane) -9 Shell with 2 results across thickness (top/bottom) -10 Shell with 3 results across thickness (top/bottom/mid) -11 Gasket -12 Multi-Point Constraint -13 Pretension -======= ====================================================== -""" - spec = Specification( - description=description, - map_input_pin_spec={ - 0: PinSpecification( - name="time_scoping", - type_names=[ - "scoping", - "int32", - "vectorH`JB|6 vf+g LDGoUp+j |