From 2ec3803cfc9cfd7678326c37416ab14fcfb39a02 Mon Sep 17 00:00:00 2001 From: PProfizi <100710998+PProfizi@users.noreply.github.com> Date: Fri, 10 Oct 2025 12:57:52 +0000 Subject: [PATCH] update generated code --- doc/source/_static/dpf_operators.html | 82 +++++++++--------- src/ansys/dpf/gate/generated/capi.py | 12 +++ .../custom_type_field_abstract_api.py | 4 + .../gate/generated/custom_type_field_capi.py | 9 ++ .../dpf/gate/generated/field_abstract_api.py | 8 ++ src/ansys/dpf/gate/generated/field_capi.py | 18 ++++ src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll | Bin 12969472 -> 12977152 bytes src/ansys/dpf/gatebin/DPFClientAPI.dll | Bin 870912 -> 872448 bytes .../dpf/gatebin/libAns.Dpf.GrpcClient.so | Bin 32563352 -> 32589848 bytes src/ansys/dpf/gatebin/libDPFClientAPI.so | Bin 2390760 -> 2395200 bytes src/ansys/grpc/dpf/field_pb2.py | 28 +++--- src/ansys/grpc/dpf/field_pb2_grpc.py | 33 +++++++ 12 files changed, 140 insertions(+), 54 deletions(-) diff --git a/doc/source/_static/dpf_operators.html b/doc/source/_static/dpf_operators.html index 91e15bc6385..5899f3b5a40 100644 --- a/doc/source/_static/dpf_operators.html +++ b/doc/source/_static/dpf_operators.html @@ -10420,14 +10420,7 @@
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. - |
Computes the stress from an elastic strain field. compute_total_strain limitations are applicable for stress computation Get the ZZ normal component (22 component).
-The element scoping on which the result is computed. - |
Needed to get mesh and material ids. Optional if a data_sources have been connected. - |
Needed to get mesh and material ids. Optional if a streams_container have been connected. - |
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). - |
Read Part Eroded Kinetic Energy (LSDyna) by calling the readers defined by the datasources.
+Read Part Eroded Kinetic Energy (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 |
entity (part for matsum, interface for rcforc) where the result will be scoped @@ -14143,7 +14136,9 @@Configurating operatorsVersion 0.0.0 Inputs
Outputs
ConfigurationsScriptingChangelogfilter: low pass (timescoping)The low pass filter returns all the values below (but not equal to) the threshold value in input. + |
Checks if two scopings_container are identical.
+bool (true if identical...) + |
The low pass filter returns all the values below (but not equal to) the threshold value in input.
a threshold scalar or a field containing one value is expected |
The default is false. If set to true, the complement of the filtered fields container is returned on output pin 1. |
Rescopes a field on the given scoping. If an ID does not exist in the original field, the default value (in 2) is used when defined.
@@ -14324,12 +14319,12 @@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. |
to connect to producer_consumer_for_each - |
Allows to write a loop over operators by connecting data to iterate and by requesting the incrementally output merged.The chain of Operators are split into a first part: the producers and a second part: the consumers. These 2 parts will run asynchronously on 2 threads.
+Extends an Elemental Nodal or Nodal field defined on corner nodes to a field defined also on the mid nodes.
+field or fields container with only one field is expected + |
Allows to write a loop over operators by connecting data to iterate and by requesting the incrementally output merged.The chain of Operators are split into a first part: the producers and a second part: the consumers. These 2 parts will run asynchronously on 2 threads.
The result of the make_producer_consumer_for_each_iterator operator. |
output of the last operators of the workflow - |
Extends an Elemental Nodal or Nodal field defined on corner nodes to a field defined also on the mid nodes.
-field or fields container with only one field is expected - |
Uses the MeshedRegion APIs to return a given attribute of the mesh in input.
+Uses the MeshedRegion APIs to return a given attribute of the mesh in input.
Supported property names are: "connectivity", "reverse_connectivity", "mat", "faces_nodes_connectivity", "elements_faces_connectivity" (or any mesh's property field), "coordinates", "named_selection", "num_named_selections", "named_selection_names", "named_selection_locations", "node_scoping", "element_scoping", "face_scoping"... |
Can be used to get a property at a given index, example: a named selection's number or by name, example: a named selection's name. |
Returns a property field for properties: "connectivity", "reverse_connectivity", "mat", "faces_nodes_connectivity", "elements_faces_connectivity" (or any mesh's property field), a field for property: "coordinates", a scoping for properties:"named_selection", "node_scoping", "element_scoping", "face_scoping", a string field for properties: "named_selection_names", "named_selection_locations" and an int for property: "num_named_selections". @@ -14386,9 +14381,7 @@Configurating operatorsVersion 0.0.0 Inputs
Outputs
ConfigurationsScriptingChangeloglogic: same scopings container?Checks if two scopings_container are identical. -Version 0.0.0 InputsOutputs
ConfigurationsScriptingChangeloglogic: fields included?Checks if one field belongs to another. + |
Checks if one field belongs to another.
Double positive small value. Smallest value considered during the comparison step. All the absolute values in the field less than this value are considered null, (default value: 1.0e-14). |
Double relative tolerance. Maximum tolerance gap between two compared values. Values within relative tolerance are considered identical. Formula is (v1-v2)/v2 < relativeTol. Default is 0.001. |
bool (true if belongs...) @@ -14482,34 +14475,12 @@Configurating operators |
Transforms an Elemental Nodal field into a Nodal field. Each nodal value is the maximum difference between the unaveraged computed result for all elements that share this particular node. The result is computed on a given node's scoping.
field or fields container with only one field is expected |
average only on these entities - |
Computes the stress from an elastic strain field. compute_total_strain limitations are applicable for stress computation Get the YZ shear component (12 component).
-The element scoping on which the result is computed. - |
Needed to get mesh and material ids. Optional if a data_sources have been connected. - |
Needed to get mesh and material ids. Optional if a streams_container have been connected. - |
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). - |
Splits a Data Sources into multiple coherent data sources, actual number of outputs is always less or equal to the given desired number of ouputs.
+Splits a Data Sources into multiple coherent data sources, actual number of outputs is always less or equal to the given desired number of ouputs.
Data sources to split. |
Number of desired outputs. |
Actual number of outputs. |
Data sources outputs. - |
Starts a dpf's grpc server (if local) or connect to one and keep it waiting for requests in a streams.
-If no ip address is put, the local ip address is taken - |
If no port is put, port 50052 is taken - |
default is 1 that starts server in new thread. With 0, this thread will be waiting for grpc calls and will not be usable for anything else. With 2, it the server will be started in a new process. - |
If true, the server is assumed to be local and is started. If false, only a client (able to send grpc calls) will be started - |
A data source with result key 'grpc' and file path 'port:ip' can be used instead of the input port and IP. - |
This pin is associated with pin(2) = 2 (server started in a new process). User can enter the integer associated with a DPF context (1: Standalone Context - DpfCoreStandalone.xml, 3: Custom - DpfCustomDefined.xml) or a string with the path of the XML specifying the context. - |
dpf streams handling the server, if the server is started in this thread, then nothing is added in output - |
Computes the stress from an elastic strain field. compute_total_strain limitations are applicable for stress computation Get the XY shear component (01 component).
-The element scoping on which the result is computed. - |
Needed to get mesh and material ids. Optional if a data_sources have been connected. - |
Needed to get mesh and material ids. Optional if a streams_container have been connected. - |
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). - |
Return the id of an Operator.
+Return the id of an Operator.
Transforms an Elemental Nodal field into a Nodal field using an averaging process. The result is computed on a given node's scoping.
field or fields container with only one field is expected |
average only on these entities @@ -15191,7 +15162,36 @@Configurating operators |
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). - |
Computes the stress from an elastic strain field. compute_total_strain limitations are applicable for stress computation Get the XZ shear component (02 component).
+Computes the stress from an elastic strain field. compute_total_strain limitations are applicable for stress computation Get the ZZ normal component (22 component).
+The element scoping on which the result is computed. + |
Needed to get mesh and material ids. Optional if a data_sources have been connected. + |
Needed to get mesh and material ids. Optional if a streams_container have been connected. + |
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). + |
Starts a dpf's grpc server (if local) or connect to one and keep it waiting for requests in a streams.
+If no ip address is put, the local ip address is taken + |
If no port is put, port 50052 is taken + |
default is 1 that starts server in new thread. With 0, this thread will be waiting for grpc calls and will not be usable for anything else. With 2, it the server will be started in a new process. + |
If true, the server is assumed to be local and is started. If false, only a client (able to send grpc calls) will be started + |
A data source with result key 'grpc' and file path 'port:ip' can be used instead of the input port and IP. + |
This pin is associated with pin(2) = 2 (server started in a new process). User can enter the integer associated with a DPF context (1: Standalone Context - DpfCoreStandalone.xml, 3: Custom - DpfCustomDefined.xml) or a string with the path of the XML specifying the context. + |
dpf streams handling the server, if the server is started in this thread, then nothing is added in output + |
Computes the stress from an elastic strain field. compute_total_strain limitations are applicable for stress computation Get the XY shear component (01 component).
+The element scoping on which the result is computed. + |
Needed to get mesh and material ids. Optional if a data_sources have been connected. + |
Needed to get mesh and material ids. Optional if a streams_container have been connected. + |
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). + |
Computes the stress from an elastic strain field. compute_total_strain limitations are applicable for stress computation Get the YZ shear component (12 component).
+The element scoping on which the result is computed. + |
Needed to get mesh and material ids. Optional if a data_sources have been connected. + |
Needed to get mesh and material ids. Optional if a streams_container have been connected. + |
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). + |
Computes the stress from an elastic strain field. compute_total_strain limitations are applicable for stress computation Get the XZ shear component (02 component).
The element scoping on which the result is computed. |
Needed to get mesh and material ids. Optional if a data_sources have been connected. |