Skip to content

Commit 9476058

Browse files
Update generated code for DPF 261_daily on main (#2608)
Co-authored-by: PProfizi <[email protected]>
1 parent a6c4b82 commit 9476058

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

doc/source/_static/dpf_operators.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14624,10 +14624,10 @@ <h2 class="h2-main">Configurating operators</h2>
1462414624
</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)"></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><config-spec name="num_threads" default="0" doc="Number of threads to use to run in parallel" types="int32" ></config-spec><config-spec name="run_in_parallel" default="true" doc="Loops are allowed to run in parallel if the value of this config is set to true." types="bool" ></config-spec><h2 class="op-des-h2">Scripting</h2><scripting-part scripting_name="spherical_to_cartesian" license="any_dpf_supported_increments" cat="geo" plugin="core" cpp-name="spherical_to_cartesian"></scripting-part><h2 class="op-des-h2">Changelog</h2><op-changelog content='{"0.0.0":"New"}'></op-changelog></div><div class="operator" id="change cs (meshes)" scripting_name="change_cs"plugin="core"cat="mesh"><h1 class="op-des-h1">mesh: change cs (meshes)</h1><figure class="figure-op-des"> <figcaption > Description </figcaption><div class = "figure-op-des-text"><p>Applies a transformation (rotation and displacement) matrix on a mesh or meshes container.</p>
1462514625
</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="meshes"></pin-name></td><td><req-type typeName="(meshed_region | meshes_container)"></req-type></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number n="1" ellipsis = "false"></pin-number></td><td><pin-name name="coordinate_system"></pin-name></td><td><req-type typeName="(field)"></req-type></td><td><div class = "pin-des-text"><p>3-3 rotation matrix + 3 translations (X, Y, Z)</p>
1462614626
</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="meshed_region"></pin-name></td><td><req-type typeName="(meshed_region | meshes_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><config-spec name="num_threads" default="0" doc="Number of threads to use to run in parallel" types="int32" ></config-spec><config-spec name="run_in_parallel" default="true" doc="Loops are allowed to run in parallel if the value of this config is set to true." types="bool" ></config-spec><h2 class="op-des-h2">Scripting</h2><scripting-part scripting_name="change_cs" license="any_dpf_supported_increments" cat="mesh" plugin="core" cpp-name="mesh::change_cs"></scripting-part><h2 class="op-des-h2">Changelog</h2><op-changelog content='{"0.0.0":"New"}'></op-changelog></div><div class="operator" id="normals provider nl (nodes, faces, or elements)" scripting_name="normals_provider_nl"plugin="core"cat="geo"><h1 class="op-des-h1">geo: normals provider nl (nodes, faces, or elements)</h1><figure class="figure-op-des"> <figcaption > Description </figcaption><div class = "figure-op-des-text"><p>Computes the normals on nodes/faces/elements based on integration points (more accurate for non-linear elements) on a skin mesh.</p>
14627-
</div></figure><div class="op-version">Version 0.0.1</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="mesh"></pin-name></td><td><req-type typeName="(abstract_meshed_region)"></req-type></td><td><div class = "pin-des-text"><p>Skin, face, or shell mesh region.</p>
14627+
</div></figure><div class="op-version">Version 1.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="mesh"></pin-name></td><td><req-type typeName="(abstract_meshed_region)"></req-type></td><td><div class = "pin-des-text"><p>Skin, face, or shell mesh region.</p>
1462814628
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="1" ellipsis = "false"></pin-number-optional></td><td><pin-name name="mesh_scoping"></pin-name></td><td><req-type typeName="(scoping)"></req-type></td><td><div class = "pin-des-text"><p>Elemental, ElementalNodal, or Nodal scoping. Location derived from this.</p>
1462914629
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="9" ellipsis = "false"></pin-number-optional></td><td><pin-name name="requested_location"></pin-name></td><td><req-type typeName="(string)"></req-type></td><td><div class = "pin-des-text"><p>If no scoping, specifies location. If scoping is Elemental or ElementalNodal this overrides scoping. Default is Elemental.</p>
14630-
</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="field"></pin-name></td><td><req-type typeName="(field)"></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="normals_provider_nl" license="none" cat="geo" plugin="core" cpp-name="normals_provider_nl"></scripting-part><h2 class="op-des-h2">Changelog</h2><op-changelog content='{"0.0.0":"New","0.0.1":"Bug fixed for input mesh type containing solid elements."}'></op-changelog></div><div class="operator" id="elements volumes over time" scripting_name="elements_volumes_over_time"plugin="core"cat="geo"><h1 class="op-des-h1">geo: elements volumes over time</h1><figure class="figure-op-des"> <figcaption > Description </figcaption><div class = "figure-op-des-text"><p>Calculates for a mesh, the volume of each element over time for each specified time step.</p>
14630+
</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="field"></pin-name></td><td><req-type typeName="(field)"></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="normals_provider_nl" license="none" cat="geo" plugin="core" cpp-name="normals_provider_nl"></scripting-part><h2 class="op-des-h2">Changelog</h2><op-changelog content='{"0.0.0":"New","0.0.1":"Bug fixed for input mesh type containing solid elements.","1.0.0":"Fixed reference coordinate-system on which normals are calculated."}'></op-changelog></div><div class="operator" id="elements volumes over time" scripting_name="elements_volumes_over_time"plugin="core"cat="geo"><h1 class="op-des-h1">geo: elements volumes over time</h1><figure class="figure-op-des"> <figcaption > Description </figcaption><div class = "figure-op-des-text"><p>Calculates for a mesh, the volume of each element over time for each specified time step.</p>
1463114631
</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>
1463214632
</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>
1463314633
</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>

src/ansys/dpf/core/operators/result/modal_coordinate.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from __future__ import annotations
88

99
from warnings import warn
10+
from ansys.dpf.core.core import errors
1011
from ansys.dpf.core.dpf_operator import Operator
1112
from ansys.dpf.core.inputs import Input, _Inputs
1213
from ansys.dpf.core.outputs import Output, _Outputs
@@ -91,7 +92,13 @@ def __init__(
9192
config=None,
9293
server=None,
9394
):
94-
super().__init__(name="MCF", config=config, server=server)
95+
try:
96+
super().__init__(name="MCF", config=config, server=server)
97+
except (KeyError, errors.DPFServerException) as e:
98+
if "doesn't exist" in str(e):
99+
super().__init__(name="U", config=config, server=server)
100+
else:
101+
raise e
95102
self._inputs = InputsModalCoordinate(self)
96103
self._outputs = OutputsModalCoordinate(self)
97104
if time_scoping is not None:
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)