Skip to content

Commit 29c95ce

Browse files
PProfizigithub-actions[bot]
authored andcommitted
update generated code
1 parent 4d36827 commit 29c95ce

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
@@ -8954,7 +8954,7 @@ <h2 class="h2-main">Configurating operators</h2>
89548954
</div></figure><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>
89558955
</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>
89568956
</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></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>
8957-
</div></figure><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></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>
8957+
</div></figure><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></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>
89588958
</div></figure><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>
89598959
</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>
89608960
</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
@@ -3393,6 +3401,10 @@ def load_api(path):
33933401
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), )
33943402
dll.CSPropertyField_new_on_client.restype = ctypes.c_void_p
33953403

3404+
if hasattr(dll, "CSPropertyField_new_location_on_client"):
3405+
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), )
3406+
dll.CSPropertyField_new_location_on_client.restype = ctypes.c_void_p
3407+
33963408
if hasattr(dll, "CSPropertyField_getCopy"):
33973409
dll.CSPropertyField_getCopy.argtypes = (ctypes.c_int32, ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
33983410
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
@@ -183,6 +191,10 @@ def property_get_data_fast(f, index, data, id, size, n_comp):
183191
def csproperty_field_new_on_client(client, numEntities, data_size):
184192
raise NotImplementedError
185193

194+
@staticmethod
195+
def csproperty_field_new_location_on_client(client, numEntities, data_size, location):
196+
raise NotImplementedError
197+
186198
@staticmethod
187199
def csproperty_field_get_copy(id, client):
188200
raise NotImplementedError

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,15 @@ def csproperty_field_new(numEntities, data_size):
9191
raise errors.DPFServerException(sError.value)
9292
return res
9393

94+
@staticmethod
95+
def csproperty_field_new_location(numEntities, data_size, location):
96+
errorSize = ctypes.c_int(0)
97+
sError = ctypes.c_wchar_p()
98+
res = capi.dll.CSPropertyField_new_location(utils.to_int32(numEntities), utils.to_int32(data_size), utils.to_char_ptr(location), ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
99+
if errorSize.value != 0:
100+
raise errors.DPFServerException(sError.value)
101+
return res
102+
94103
@staticmethod
95104
def csproperty_field_new_with_transformation(numEntities, data_size, wf, input_name, output_name):
96105
errorSize = ctypes.c_int(0)
@@ -262,6 +271,15 @@ def csproperty_field_set_entity_data(field, index, id, size, data):
262271
raise errors.DPFServerException(sError.value)
263272
return res
264273

274+
@staticmethod
275+
def csproperty_field_set_location(field, location):
276+
errorSize = ctypes.c_int(0)
277+
sError = ctypes.c_wchar_p()
278+
res = capi.dll.CSPropertyField_SetLocation(field._internal_obj if field is not None else None, utils.to_char_ptr(location), ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
279+
if errorSize.value != 0:
280+
raise errors.DPFServerException(sError.value)
281+
return res
282+
265283
@staticmethod
266284
def csproperty_field_resize(field, dataSize, scopingSize):
267285
errorSize = ctypes.c_int(0)
@@ -406,6 +424,15 @@ def csproperty_field_new_on_client(client, numEntities, data_size):
406424
raise errors.DPFServerException(sError.value)
407425
return res
408426

427+
@staticmethod
428+
def csproperty_field_new_location_on_client(client, numEntities, data_size, location):
429+
errorSize = ctypes.c_int(0)
430+
sError = ctypes.c_wchar_p()
431+
res = capi.dll.CSPropertyField_new_location_on_client(client._internal_obj if client is not None else None, utils.to_int32(numEntities), utils.to_int32(data_size), utils.to_char_ptr(location), ctypes.byref(utils.to_int32(errorSize)), ctypes.byref(sError))
432+
if errorSize.value != 0:
433+
raise errors.DPFServerException(sError.value)
434+
return res
435+
409436
@staticmethod
410437
def csproperty_field_get_copy(id, client):
411438
errorSize = ctypes.c_int(0)

0 commit comments

Comments
 (0)