Skip to content

Commit 9e1687c

Browse files
PProfizigithub-actions[bot]
authored andcommitted
update generated code
1 parent cf099e4 commit 9e1687c

File tree

9 files changed

+62
-11
lines changed

9 files changed

+62
-11
lines changed

doc/source/_static/dpf_operators.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14679,7 +14679,7 @@ <h2 class="h2-main">Configurating operators</h2>
1467914679
</div></figure><div class="op-version">Version 0.0.0</div><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="scoping"></pin-name></td><td><req-type typeName="(scoping)"></req-type></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="2" ellipsis = "false"></pin-number-optional></td><td><pin-name name="displacement"></pin-name></td><td><req-type typeName="(fields_container)"></req-type></td><td><div class = "pin-des-text"><p>Displacement field's container. Must contain the mesh if mesh not specified in input.</p>
1468014680
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="7" ellipsis = "false"></pin-number-optional></td><td><pin-name name="mesh"></pin-name></td><td><req-type typeName="(abstract_meshed_region)"></req-type></td><td><div class = "pin-des-text"><p>Mesh must be defined if the displacement field's container does not contain it, or if there is no displacement.</p>
1468114681
</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="fields_container"></pin-name></td><td><req-type typeName="(fields_container)"></req-type></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="elements_volumes_over_time" license="any_dpf_supported_increments" cat="geo" plugin="core" cpp-name="volumes_provider"></scripting-part><h2 class="op-des-h2">Changelog</h2><op-changelog content='{"0.0.0":"New"}'></op-changelog></div><div class="operator" id="window bartlett" scripting_name="window_bartlett"plugin="core"cat="math"><h1 class="op-des-h1">math: window bartlett</h1><figure class="figure-op-des"> <figcaption > Description </figcaption><div class = "figure-op-des-text"><p>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).</p>
14682-
</div></figure><div class="op-version">Version 0.0.0</div><h2 class="op-des-h2">Inputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="field"></pin-name></td><td><req-type typeName="(field | fields_container)"></req-type></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="field"></pin-name></td><td><req-type typeName="(field | fields_container)"></req-type></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="window_bartlett" license="none" cat="math" plugin="core" cpp-name="window::bartlett"></scripting-part><h2 class="op-des-h2">Changelog</h2><op-changelog content='{"0.0.0":"New"}'></op-changelog></div><div class="operator" id="from scoping" scripting_name="from_scoping"plugin="core"cat="mesh"><h1 class="op-des-h1">mesh: from scoping</h1><figure class="figure-op-des"> <figcaption > Description </figcaption><div class = "figure-op-des-text"><p>Extracts a meshed region from another meshed region based on a scoping. Regarding the property fields of the meshed region: the 'Elemental', 'Face', and 'Nodal' property fields are scoped to the elements, faces or nodes of the output mesh, the 'Global' property fields are transferred from the input mesh to the output mesh without changes, and the rest of the property fields are not present in the output mesh.</p>
14682+
</div></figure><div class="op-version">Version 0.0.0</div><h2 class="op-des-h2">Inputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="field"></pin-name></td><td><req-type typeName="(field | fields_container)"></req-type></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="field"></pin-name></td><td><req-type typeName="(field | fields_container)"></req-type></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="window_bartlett" license="none" cat="math" plugin="core" cpp-name="window::bartlett"></scripting-part><h2 class="op-des-h2">Changelog</h2><op-changelog content='{"0.0.0":"New"}'></op-changelog></div><div class="operator" id="from scoping" scripting_name="from_scoping"plugin="core"cat="mesh"><h1 class="op-des-h1">mesh: from scoping</h1><figure class="figure-op-des"> <figcaption > Description </figcaption><div class = "figure-op-des-text"><p>Extracts a meshed region from another meshed region based on a scoping. Regarding the property fields whose scoping location is 'Elemental', 'Faces', and 'Nodal', they are scoped to the elements, faces or nodes of the output mesh. The ones whose scoping location is 'Global' are transferred from the input mesh to the output mesh without changes, and the rest of the property fields are not present in the output mesh.</p>
1468314683
</div></figure><div class="op-version">Version 0.0.0</div><h2 class="op-des-h2">Inputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="1" ellipsis = "false"></pin-number></td><td><pin-name name="scoping"></pin-name></td><td><req-type typeName="(scoping)"></req-type></td><td><div class = "pin-des-text"><p>if nodal/face scoping, then the scoping is transposed respecting the inclusive pin</p>
1468414684
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="2" ellipsis = "false"></pin-number-optional></td><td><pin-name name="inclusive"></pin-name></td><td><req-type typeName="(int32)"></req-type></td><td><div class = "pin-des-text"><p>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</p>
1468514685
</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="nodes_only"></pin-name></td><td><req-type typeName="(bool)"></req-type></td><td><div class = "pin-des-text"><p>returns mesh with nodes only (without any elements or property fields). Default is false.</p>

src/ansys/dpf/core/operators/mesh/from_scoping.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717

1818
class from_scoping(Operator):
1919
r"""Extracts a meshed region from another meshed region based on a scoping.
20-
Regarding the property fields of the meshed region: the ‘Elemental’,
21-
Face’, and ‘Nodal’ property fields are scoped to the elements, faces or
22-
nodes of the output mesh, the ‘Global’ property fields are transferred
23-
from the input mesh to the output mesh without changes, and the rest of
24-
the property fields are not present in the output mesh.
20+
Regarding the property fields whose scoping location is ‘Elemental’,
21+
Faces’, and ‘Nodal’, they are scoped to the elements, faces or nodes of
22+
the output mesh. The ones whose scoping location is ‘Global’ are
23+
transferred from the input mesh to the output mesh without changes, and
24+
the rest of the property fields are not present in the output mesh.
2525
2626
2727
Parameters
@@ -91,11 +91,11 @@ def __init__(
9191
@staticmethod
9292
def _spec() -> Specification:
9393
description = r"""Extracts a meshed region from another meshed region based on a scoping.
94-
Regarding the property fields of the meshed region: the ‘Elemental’,
95-
Face’, and ‘Nodal’ property fields are scoped to the elements, faces or
96-
nodes of the output mesh, the ‘Global’ property fields are transferred
97-
from the input mesh to the output mesh without changes, and the rest of
98-
the property fields are not present in the output mesh.
94+
Regarding the property fields whose scoping location is ‘Elemental’,
95+
Faces’, and ‘Nodal’, they are scoped to the elements, faces or nodes of
96+
the output mesh. The ones whose scoping location is ‘Global’ are
97+
transferred from the input mesh to the output mesh without changes, and
98+
the rest of the property fields are not present in the output mesh.
9999
"""
100100
spec = Specification(
101101
description=description,

src/ansys/dpf/gate/generated/capi.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3253,6 +3253,10 @@ def load_api(path):
32533253
dll.CSPropertyField_new.argtypes = (ctypes.c_int32, ctypes.c_int32, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
32543254
dll.CSPropertyField_new.restype = ctypes.c_void_p
32553255

3256+
if hasattr(dll, "CSPropertyField_new_location"):
3257+
dll.CSPropertyField_new_location.argtypes = (ctypes.c_int32, ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
3258+
dll.CSPropertyField_new_location.restype = ctypes.c_void_p
3259+
32563260
if hasattr(dll, "CSPropertyField_newWithTransformation"):
32573261
dll.CSPropertyField_newWithTransformation.argtypes = (ctypes.c_int32, ctypes.c_int32, ctypes.c_void_p, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
32583262
dll.CSPropertyField_newWithTransformation.restype = ctypes.c_void_p
@@ -3329,6 +3333,10 @@ def load_api(path):
33293333
dll.CSPropertyField_SetEntityData.argtypes = (ctypes.c_void_p, ctypes.c_int32, ctypes.c_int32, ctypes.c_int32, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
33303334
dll.CSPropertyField_SetEntityData.restype = None
33313335

3336+
if hasattr(dll, "CSPropertyField_SetLocation"):
3337+
dll.CSPropertyField_SetLocation.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
3338+
dll.CSPropertyField_SetLocation.restype = None
3339+
33323340
if hasattr(dll, "CSPropertyField_Resize"):
33333341
dll.CSPropertyField_Resize.argtypes = (ctypes.c_void_p, ctypes.c_int32, ctypes.c_int32, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
33343342
dll.CSPropertyField_Resize.restype = None
@@ -3401,6 +3409,10 @@ def load_api(path):
34013409
dll.CSPropertyField_new_on_client.argtypes = (ctypes.c_void_p, ctypes.c_int32, ctypes.c_int32, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
34023410
dll.CSPropertyField_new_on_client.restype = ctypes.c_void_p
34033411

3412+
if hasattr(dll, "CSPropertyField_new_location_on_client"):
3413+
dll.CSPropertyField_new_location_on_client.argtypes = (ctypes.c_void_p, ctypes.c_int32, ctypes.c_int32, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
3414+
dll.CSPropertyField_new_location_on_client.restype = ctypes.c_void_p
3415+
34043416
if hasattr(dll, "CSPropertyField_getCopy"):
34053417
dll.CSPropertyField_getCopy.argtypes = (ctypes.c_int32, ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
34063418
dll.CSPropertyField_getCopy.restype = ctypes.c_void_p

src/ansys/dpf/gate/generated/property_field_abstract_api.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ def property_field_get_location(field):
4343
def csproperty_field_new(numEntities, data_size):
4444
raise NotImplementedError
4545

46+
@staticmethod
47+
def csproperty_field_new_location(numEntities, data_size, location):
48+
raise NotImplementedError
49+
4650
@staticmethod
4751
def csproperty_field_new_with_transformation(numEntities, data_size, wf, input_name, output_name):
4852
raise NotImplementedError
@@ -119,6 +123,10 @@ def csproperty_field_set_cscoping(field, scoping):
119123
def csproperty_field_set_entity_data(field, index, id, size, data):
120124
raise NotImplementedError
121125

126+
@staticmethod
127+
def csproperty_field_set_location(field, location):
128+
raise NotImplementedError
129+
122130
@staticmethod
123131
def csproperty_field_resize(field, dataSize, scopingSize):
124132
raise NotImplementedError
@@ -191,6 +199,10 @@ def property_get_data_fast(f, index, data, id, size, n_comp):
191199
def csproperty_field_new_on_client(client, numEntities, data_size):
192200
raise NotImplementedError
193201

202+
@staticmethod
203+
def csproperty_field_new_location_on_client(client, numEntities, data_size, location):
204+
raise NotImplementedError
205+
194206
@staticmethod
195207
def csproperty_field_get_copy(id, client):
196208
raise NotImplementedError

0 commit comments

Comments
 (0)