Skip to content

Update generated code for DPF 261_jvidalor on master #2318

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/source/_static/dpf_operators.html
Original file line number Diff line number Diff line change
Expand Up @@ -8954,7 +8954,7 @@ <h2 class="h2-main">Configurating operators</h2>
</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>
</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>
</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>
</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>
</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>
</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>
</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>
</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>
Expand Down
20 changes: 10 additions & 10 deletions src/ansys/dpf/core/operators/mesh/from_scoping.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@

class from_scoping(Operator):
r"""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.
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.


Parameters
Expand Down Expand Up @@ -91,11 +91,11 @@ def __init__(
@staticmethod
def _spec() -> Specification:
description = r"""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.
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.
"""
spec = Specification(
description=description,
Expand Down
12 changes: 12 additions & 0 deletions src/ansys/dpf/gate/generated/capi.py
Original file line number Diff line number Diff line change
Expand Up @@ -3253,6 +3253,10 @@ def load_api(path):
dll.CSPropertyField_new.argtypes = (ctypes.c_int32, ctypes.c_int32, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
dll.CSPropertyField_new.restype = ctypes.c_void_p

if hasattr(dll, "CSPropertyField_new_location"):
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), )
dll.CSPropertyField_new_location.restype = ctypes.c_void_p

if hasattr(dll, "CSPropertyField_newWithTransformation"):
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), )
dll.CSPropertyField_newWithTransformation.restype = ctypes.c_void_p
Expand Down Expand Up @@ -3329,6 +3333,10 @@ def load_api(path):
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), )
dll.CSPropertyField_SetEntityData.restype = None

if hasattr(dll, "CSPropertyField_SetLocation"):
dll.CSPropertyField_SetLocation.argtypes = (ctypes.c_void_p, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
dll.CSPropertyField_SetLocation.restype = None

if hasattr(dll, "CSPropertyField_Resize"):
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), )
dll.CSPropertyField_Resize.restype = None
Expand Down Expand Up @@ -3393,6 +3401,10 @@ def load_api(path):
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), )
dll.CSPropertyField_new_on_client.restype = ctypes.c_void_p

if hasattr(dll, "CSPropertyField_new_location_on_client"):
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), )
dll.CSPropertyField_new_location_on_client.restype = ctypes.c_void_p

if hasattr(dll, "CSPropertyField_getCopy"):
dll.CSPropertyField_getCopy.argtypes = (ctypes.c_int32, ctypes.c_void_p, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_wchar_p), )
dll.CSPropertyField_getCopy.restype = ctypes.c_void_p
Expand Down
12 changes: 12 additions & 0 deletions src/ansys/dpf/gate/generated/property_field_abstract_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ def property_field_get_location(field):
def csproperty_field_new(numEntities, data_size):
raise NotImplementedError

@staticmethod
def csproperty_field_new_location(numEntities, data_size, location):
raise NotImplementedError

@staticmethod
def csproperty_field_new_with_transformation(numEntities, data_size, wf, input_name, output_name):
raise NotImplementedError
Expand Down Expand Up @@ -119,6 +123,10 @@ def csproperty_field_set_cscoping(field, scoping):
def csproperty_field_set_entity_data(field, index, id, size, data):
raise NotImplementedError

@staticmethod
def csproperty_field_set_location(field, location):
raise NotImplementedError

@staticmethod
def csproperty_field_resize(field, dataSize, scopingSize):
raise NotImplementedError
Expand Down Expand Up @@ -183,6 +191,10 @@ def property_get_data_fast(f, index, data, id, size, n_comp):
def csproperty_field_new_on_client(client, numEntities, data_size):
raise NotImplementedError

@staticmethod
def csproperty_field_new_location_on_client(client, numEntities, data_size, location):
raise NotImplementedError

@staticmethod
def csproperty_field_get_copy(id, client):
raise NotImplementedError
Expand Down
27 changes: 27 additions & 0 deletions src/ansys/dpf/gate/generated/property_field_capi.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ def csproperty_field_new(numEntities, data_size):
raise errors.DPFServerException(sError.value)
return res

@staticmethod
def csproperty_field_new_location(numEntities, data_size, location):
errorSize = ctypes.c_int(0)
sError = ctypes.c_wchar_p()
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))
if errorSize.value != 0:
raise errors.DPFServerException(sError.value)
return res

@staticmethod
def csproperty_field_new_with_transformation(numEntities, data_size, wf, input_name, output_name):
errorSize = ctypes.c_int(0)
Expand Down Expand Up @@ -262,6 +271,15 @@ def csproperty_field_set_entity_data(field, index, id, size, data):
raise errors.DPFServerException(sError.value)
return res

@staticmethod
def csproperty_field_set_location(field, location):
errorSize = ctypes.c_int(0)
sError = ctypes.c_wchar_p()
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))
if errorSize.value != 0:
raise errors.DPFServerException(sError.value)
return res

@staticmethod
def csproperty_field_resize(field, dataSize, scopingSize):
errorSize = ctypes.c_int(0)
Expand Down Expand Up @@ -406,6 +424,15 @@ def csproperty_field_new_on_client(client, numEntities, data_size):
raise errors.DPFServerException(sError.value)
return res

@staticmethod
def csproperty_field_new_location_on_client(client, numEntities, data_size, location):
errorSize = ctypes.c_int(0)
sError = ctypes.c_wchar_p()
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))
if errorSize.value != 0:
raise errors.DPFServerException(sError.value)
return res

@staticmethod
def csproperty_field_get_copy(id, client):
errorSize = ctypes.c_int(0)
Expand Down
Binary file modified src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll
Binary file not shown.
Binary file modified src/ansys/dpf/gatebin/DPFClientAPI.dll
Binary file not shown.
Binary file modified src/ansys/dpf/gatebin/libAns.Dpf.GrpcClient.so
Binary file not shown.
Binary file modified src/ansys/dpf/gatebin/libDPFClientAPI.so
Binary file not shown.