Skip to content

Commit c37f6a3

Browse files
update generated code (#1842)
Co-authored-by: rlagha <[email protected]>
1 parent 2303f3c commit c37f6a3

File tree

6 files changed

+136
-2
lines changed

6 files changed

+136
-2
lines changed

doc/source/_static/dpf_operators.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

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

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,28 @@ class mapdl_split_on_facet_indices(Operator):
4646
the previous output.
4747
volume_mesh : MeshedRegion
4848
The solid support.
49+
degenerated_tets : Scoping, optional
50+
Elemental scoping of tet elements. if
51+
connected, the tets in the scoping
52+
are treated as degenerated tets
53+
(solid185), and the rest as non-
54+
degenerated tets (solid285). pins 185
55+
and 285 are mutually exclusionary
56+
(they cannot be connected at the same
57+
time), and if none of them is
58+
connected, all tets are treated as
59+
non-degenerated (solid285).
60+
non_degenerated_tets : Scoping, optional
61+
Elemental scoping of tet elements. if
62+
connected, the tets in the scoping
63+
are treated as non-degenerated tets
64+
(solid285), and the rest as
65+
degenerated tets (solid185). pins 185
66+
and 285 are mutually exclusionary
67+
(they cannot be connected at the same
68+
time), and if none of them is
69+
connected, all tets are treated as
70+
non-degenerated (solid285).
4971
5072
Returns
5173
-------
@@ -68,13 +90,19 @@ class mapdl_split_on_facet_indices(Operator):
6890
>>> op.inputs.facet_indices.connect(my_facet_indices)
6991
>>> my_volume_mesh = dpf.MeshedRegion()
7092
>>> op.inputs.volume_mesh.connect(my_volume_mesh)
93+
>>> my_degenerated_tets = dpf.Scoping()
94+
>>> op.inputs.degenerated_tets.connect(my_degenerated_tets)
95+
>>> my_non_degenerated_tets = dpf.Scoping()
96+
>>> op.inputs.non_degenerated_tets.connect(my_non_degenerated_tets)
7197
7298
>>> # Instantiate operator and connect inputs in one line
7399
>>> op = dpf.operators.result.mapdl_split_on_facet_indices(
74100
... fields_container=my_fields_container,
75101
... property_field_new_elements_to_old=my_property_field_new_elements_to_old,
76102
... facet_indices=my_facet_indices,
77103
... volume_mesh=my_volume_mesh,
104+
... degenerated_tets=my_degenerated_tets,
105+
... non_degenerated_tets=my_non_degenerated_tets,
78106
... )
79107
80108
>>> # Get output data
@@ -87,6 +115,8 @@ def __init__(
87115
property_field_new_elements_to_old=None,
88116
facet_indices=None,
89117
volume_mesh=None,
118+
degenerated_tets=None,
119+
non_degenerated_tets=None,
90120
config=None,
91121
server=None,
92122
):
@@ -105,6 +135,10 @@ def __init__(
105135
self.inputs.facet_indices.connect(facet_indices)
106136
if volume_mesh is not None:
107137
self.inputs.volume_mesh.connect(volume_mesh)
138+
if degenerated_tets is not None:
139+
self.inputs.degenerated_tets.connect(degenerated_tets)
140+
if non_degenerated_tets is not None:
141+
self.inputs.non_degenerated_tets.connect(non_degenerated_tets)
108142

109143
@staticmethod
110144
def _spec():
@@ -159,6 +193,36 @@ def _spec():
159193
optional=False,
160194
document="""The solid support.""",
161195
),
196+
185: PinSpecification(
197+
name="degenerated_tets",
198+
type_names=["scoping"],
199+
optional=True,
200+
document="""Elemental scoping of tet elements. if
201+
connected, the tets in the scoping
202+
are treated as degenerated tets
203+
(solid185), and the rest as non-
204+
degenerated tets (solid285). pins 185
205+
and 285 are mutually exclusionary
206+
(they cannot be connected at the same
207+
time), and if none of them is
208+
connected, all tets are treated as
209+
non-degenerated (solid285).""",
210+
),
211+
285: PinSpecification(
212+
name="non_degenerated_tets",
213+
type_names=["scoping"],
214+
optional=True,
215+
document="""Elemental scoping of tet elements. if
216+
connected, the tets in the scoping
217+
are treated as non-degenerated tets
218+
(solid285), and the rest as
219+
degenerated tets (solid185). pins 185
220+
and 285 are mutually exclusionary
221+
(they cannot be connected at the same
222+
time), and if none of them is
223+
connected, all tets are treated as
224+
non-degenerated (solid285).""",
225+
),
162226
},
163227
map_output_pin_spec={
164228
0: PinSpecification(
@@ -226,6 +290,10 @@ class InputsMapdlSplitOnFacetIndices(_Inputs):
226290
>>> op.inputs.facet_indices.connect(my_facet_indices)
227291
>>> my_volume_mesh = dpf.MeshedRegion()
228292
>>> op.inputs.volume_mesh.connect(my_volume_mesh)
293+
>>> my_degenerated_tets = dpf.Scoping()
294+
>>> op.inputs.degenerated_tets.connect(my_degenerated_tets)
295+
>>> my_non_degenerated_tets = dpf.Scoping()
296+
>>> op.inputs.non_degenerated_tets.connect(my_non_degenerated_tets)
229297
"""
230298

231299
def __init__(self, op: Operator):
@@ -246,6 +314,14 @@ def __init__(self, op: Operator):
246314
mapdl_split_on_facet_indices._spec().input_pin(3), 3, op, -1
247315
)
248316
self._inputs.append(self._volume_mesh)
317+
self._degenerated_tets = Input(
318+
mapdl_split_on_facet_indices._spec().input_pin(185), 185, op, -1
319+
)
320+
self._inputs.append(self._degenerated_tets)
321+
self._non_degenerated_tets = Input(
322+
mapdl_split_on_facet_indices._spec().input_pin(285), 285, op, -1
323+
)
324+
self._inputs.append(self._non_degenerated_tets)
249325

250326
@property
251327
def fields_container(self):
@@ -343,6 +419,64 @@ def volume_mesh(self):
343419
"""
344420
return self._volume_mesh
345421

422+
@property
423+
def degenerated_tets(self):
424+
"""Allows to connect degenerated_tets input to the operator.
425+
426+
Elemental scoping of tet elements. if
427+
connected, the tets in the scoping
428+
are treated as degenerated tets
429+
(solid185), and the rest as non-
430+
degenerated tets (solid285). pins 185
431+
and 285 are mutually exclusionary
432+
(they cannot be connected at the same
433+
time), and if none of them is
434+
connected, all tets are treated as
435+
non-degenerated (solid285).
436+
437+
Parameters
438+
----------
439+
my_degenerated_tets : Scoping
440+
441+
Examples
442+
--------
443+
>>> from ansys.dpf import core as dpf
444+
>>> op = dpf.operators.result.mapdl_split_on_facet_indices()
445+
>>> op.inputs.degenerated_tets.connect(my_degenerated_tets)
446+
>>> # or
447+
>>> op.inputs.degenerated_tets(my_degenerated_tets)
448+
"""
449+
return self._degenerated_tets
450+
451+
@property
452+
def non_degenerated_tets(self):
453+
"""Allows to connect non_degenerated_tets input to the operator.
454+
455+
Elemental scoping of tet elements. if
456+
connected, the tets in the scoping
457+
are treated as non-degenerated tets
458+
(solid285), and the rest as
459+
degenerated tets (solid185). pins 185
460+
and 285 are mutually exclusionary
461+
(they cannot be connected at the same
462+
time), and if none of them is
463+
connected, all tets are treated as
464+
non-degenerated (solid285).
465+
466+
Parameters
467+
----------
468+
my_non_degenerated_tets : Scoping
469+
470+
Examples
471+
--------
472+
>>> from ansys.dpf import core as dpf
473+
>>> op = dpf.operators.result.mapdl_split_on_facet_indices()
474+
>>> op.inputs.non_degenerated_tets.connect(my_non_degenerated_tets)
475+
>>> # or
476+
>>> op.inputs.non_degenerated_tets(my_non_degenerated_tets)
477+
"""
478+
return self._non_degenerated_tets
479+
346480

347481
class OutputsMapdlSplitOnFacetIndices(_Outputs):
348482
"""Intermediate class used to get outputs from
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)