Skip to content

Commit 6ca39db

Browse files
pyansys-ci-botrlagharafacantonPProfizi
authored
Update generated code for DPF 242_rcs_dev2 on master (#1534)
* update generated code * Less tests and more coverage * different log * more log * other * split cff * really eliminate cff * split test_plugins * readd * less changes * plugins * Revert "plugins" This reverts commit acf5281. * Revert "less changes" This reverts commit edfd26e. * Revert "readd" This reverts commit e923c85. * Revert "split test_plugins" This reverts commit 3c0979a. * Revert "really eliminate cff" This reverts commit b8b2f32. * Revert "split cff" This reverts commit 51245ea. * Revert "other" This reverts commit 226e677. * Revert "more log" This reverts commit 15614a7. * Revert "different log" This reverts commit 60f7257. * Revert "Less tests and more coverage" This reverts commit 028766a. * Try freeing some disk space Signed-off-by: paul.profizi <[email protected]> Try freeing some disk space Signed-off-by: paul.profizi <[email protected]> Try freeing some disk space Signed-off-by: paul.profizi <[email protected]> * Revert "Try freeing some disk space" This reverts commit 9d620ff. --------- Signed-off-by: paul.profizi <[email protected]> Co-authored-by: rlagha <[email protected]> Co-authored-by: Rafael Canton <[email protected]> Co-authored-by: Rafael Canton <[email protected]> Co-authored-by: paul.profizi <[email protected]>
1 parent 8a44c9c commit 6ca39db

File tree

8 files changed

+189
-6
lines changed

8 files changed

+189
-6
lines changed

doc/source/_static/dpf_operators.html

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

src/ansys/dpf/core/operators/utility/merge_fields_containers.py

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ class merge_fields_containers(Operator):
3030
fields_containers2 : FieldsContainer
3131
A vector of fields containers to merge or
3232
fields containers from pin 0 to ...
33+
should_merge_names_selection : bool, optional
34+
For some result files (such as rst), the
35+
scoping on names selection is
36+
duplicated through all the
37+
distributed files.if this pin is
38+
false, the merging process is
39+
skipped. if it is true, this scoping
40+
is merged. default is true.
3341
3442
3543
Examples
@@ -50,6 +58,8 @@ class merge_fields_containers(Operator):
5058
>>> op.inputs.fields_containers1.connect(my_fields_containers1)
5159
>>> my_fields_containers2 = dpf.FieldsContainer()
5260
>>> op.inputs.fields_containers2.connect(my_fields_containers2)
61+
>>> my_should_merge_names_selection = bool()
62+
>>> op.inputs.should_merge_names_selection.connect(my_should_merge_names_selection)
5363
5464
>>> # Instantiate operator and connect inputs in one line
5565
>>> op = dpf.operators.utility.merge_fields_containers(
@@ -58,6 +68,7 @@ class merge_fields_containers(Operator):
5868
... merged_fields_containers_support=my_merged_fields_containers_support,
5969
... fields_containers1=my_fields_containers1,
6070
... fields_containers2=my_fields_containers2,
71+
... should_merge_names_selection=my_should_merge_names_selection,
6172
... )
6273
6374
>>> # Get output data
@@ -71,6 +82,7 @@ def __init__(
7182
merged_fields_containers_support=None,
7283
fields_containers1=None,
7384
fields_containers2=None,
85+
should_merge_names_selection=None,
7486
config=None,
7587
server=None,
7688
):
@@ -89,6 +101,10 @@ def __init__(
89101
self.inputs.fields_containers1.connect(fields_containers1)
90102
if fields_containers2 is not None:
91103
self.inputs.fields_containers2.connect(fields_containers2)
104+
if should_merge_names_selection is not None:
105+
self.inputs.should_merge_names_selection.connect(
106+
should_merge_names_selection
107+
)
92108

93109
@staticmethod
94110
def _spec():
@@ -133,6 +149,18 @@ def _spec():
133149
document="""A vector of fields containers to merge or
134150
fields containers from pin 0 to ...""",
135151
),
152+
200: PinSpecification(
153+
name="should_merge_names_selection",
154+
type_names=["bool"],
155+
optional=True,
156+
document="""For some result files (such as rst), the
157+
scoping on names selection is
158+
duplicated through all the
159+
distributed files.if this pin is
160+
false, the merging process is
161+
skipped. if it is true, this scoping
162+
is merged. default is true.""",
163+
),
136164
},
137165
map_output_pin_spec={
138166
0: PinSpecification(
@@ -200,6 +228,8 @@ class InputsMergeFieldsContainers(_Inputs):
200228
>>> op.inputs.fields_containers1.connect(my_fields_containers1)
201229
>>> my_fields_containers2 = dpf.FieldsContainer()
202230
>>> op.inputs.fields_containers2.connect(my_fields_containers2)
231+
>>> my_should_merge_names_selection = bool()
232+
>>> op.inputs.should_merge_names_selection.connect(my_should_merge_names_selection)
203233
"""
204234

205235
def __init__(self, op: Operator):
@@ -224,6 +254,10 @@ def __init__(self, op: Operator):
224254
merge_fields_containers._spec().input_pin(1), 1, op, 1
225255
)
226256
self._inputs.append(self._fields_containers2)
257+
self._should_merge_names_selection = Input(
258+
merge_fields_containers._spec().input_pin(200), 200, op, -1
259+
)
260+
self._inputs.append(self._should_merge_names_selection)
227261

228262
@property
229263
def sum_merge(self):
@@ -329,6 +363,32 @@ def fields_containers2(self):
329363
"""
330364
return self._fields_containers2
331365

366+
@property
367+
def should_merge_names_selection(self):
368+
"""Allows to connect should_merge_names_selection input to the operator.
369+
370+
For some result files (such as rst), the
371+
scoping on names selection is
372+
duplicated through all the
373+
distributed files.if this pin is
374+
false, the merging process is
375+
skipped. if it is true, this scoping
376+
is merged. default is true.
377+
378+
Parameters
379+
----------
380+
my_should_merge_names_selection : bool
381+
382+
Examples
383+
--------
384+
>>> from ansys.dpf import core as dpf
385+
>>> op = dpf.operators.utility.merge_fields_containers()
386+
>>> op.inputs.should_merge_names_selection.connect(my_should_merge_names_selection)
387+
>>> # or
388+
>>> op.inputs.should_merge_names_selection(my_should_merge_names_selection)
389+
"""
390+
return self._should_merge_names_selection
391+
332392

333393
class OutputsMergeFieldsContainers(_Outputs):
334394
"""Intermediate class used to get outputs from

src/ansys/dpf/core/operators/utility/merge_meshes.py

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ class merge_meshes(Operator):
3131
remove_duplicate_elements : int, optional
3232
0: keep duplicate elements (default), 1:
3333
remove duplicate elements
34+
should_merge_names_selection : bool, optional
35+
For certain types of files (such as rst),
36+
scoping from names selection does not
37+
need to be merged.if this pin is
38+
true, the merge occurs. if this pin
39+
is false, the merge does not occur.
40+
default is true.
3441
3542
3643
Examples
@@ -51,6 +58,8 @@ class merge_meshes(Operator):
5158
>>> op.inputs.box_size.connect(my_box_size)
5259
>>> my_remove_duplicate_elements = int()
5360
>>> op.inputs.remove_duplicate_elements.connect(my_remove_duplicate_elements)
61+
>>> my_should_merge_names_selection = bool()
62+
>>> op.inputs.should_merge_names_selection.connect(my_should_merge_names_selection)
5463
5564
>>> # Instantiate operator and connect inputs in one line
5665
>>> op = dpf.operators.utility.merge_meshes(
@@ -59,6 +68,7 @@ class merge_meshes(Operator):
5968
... merge_method=my_merge_method,
6069
... box_size=my_box_size,
6170
... remove_duplicate_elements=my_remove_duplicate_elements,
71+
... should_merge_names_selection=my_should_merge_names_selection,
6272
... )
6373
6474
>>> # Get output data
@@ -72,6 +82,7 @@ def __init__(
7282
merge_method=None,
7383
box_size=None,
7484
remove_duplicate_elements=None,
85+
should_merge_names_selection=None,
7586
config=None,
7687
server=None,
7788
):
@@ -88,6 +99,10 @@ def __init__(
8899
self.inputs.box_size.connect(box_size)
89100
if remove_duplicate_elements is not None:
90101
self.inputs.remove_duplicate_elements.connect(remove_duplicate_elements)
102+
if should_merge_names_selection is not None:
103+
self.inputs.should_merge_names_selection.connect(
104+
should_merge_names_selection
105+
)
91106

92107
@staticmethod
93108
def _spec():
@@ -130,6 +145,17 @@ def _spec():
130145
document="""0: keep duplicate elements (default), 1:
131146
remove duplicate elements""",
132147
),
148+
200: PinSpecification(
149+
name="should_merge_names_selection",
150+
type_names=["bool"],
151+
optional=True,
152+
document="""For certain types of files (such as rst),
153+
scoping from names selection does not
154+
need to be merged.if this pin is
155+
true, the merge occurs. if this pin
156+
is false, the merge does not occur.
157+
default is true.""",
158+
),
133159
},
134160
map_output_pin_spec={
135161
0: PinSpecification(
@@ -197,6 +223,8 @@ class InputsMergeMeshes(_Inputs):
197223
>>> op.inputs.box_size.connect(my_box_size)
198224
>>> my_remove_duplicate_elements = int()
199225
>>> op.inputs.remove_duplicate_elements.connect(my_remove_duplicate_elements)
226+
>>> my_should_merge_names_selection = bool()
227+
>>> op.inputs.should_merge_names_selection.connect(my_should_merge_names_selection)
200228
"""
201229

202230
def __init__(self, op: Operator):
@@ -213,6 +241,10 @@ def __init__(self, op: Operator):
213241
merge_meshes._spec().input_pin(103), 103, op, -1
214242
)
215243
self._inputs.append(self._remove_duplicate_elements)
244+
self._should_merge_names_selection = Input(
245+
merge_meshes._spec().input_pin(200), 200, op, -1
246+
)
247+
self._inputs.append(self._should_merge_names_selection)
216248

217249
@property
218250
def meshes1(self):
@@ -319,6 +351,31 @@ def remove_duplicate_elements(self):
319351
"""
320352
return self._remove_duplicate_elements
321353

354+
@property
355+
def should_merge_names_selection(self):
356+
"""Allows to connect should_merge_names_selection input to the operator.
357+
358+
For certain types of files (such as rst),
359+
scoping from names selection does not
360+
need to be merged.if this pin is
361+
true, the merge occurs. if this pin
362+
is false, the merge does not occur.
363+
default is true.
364+
365+
Parameters
366+
----------
367+
my_should_merge_names_selection : bool
368+
369+
Examples
370+
--------
371+
>>> from ansys.dpf import core as dpf
372+
>>> op = dpf.operators.utility.merge_meshes()
373+
>>> op.inputs.should_merge_names_selection.connect(my_should_merge_names_selection)
374+
>>> # or
375+
>>> op.inputs.should_merge_names_selection(my_should_merge_names_selection)
376+
"""
377+
return self._should_merge_names_selection
378+
322379

323380
class OutputsMergeMeshes(_Outputs):
324381
"""Intermediate class used to get outputs from

src/ansys/dpf/core/operators/utility/merge_supports.py

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ class merge_supports(Operator):
2222
supports2 : AbstractFieldSupport
2323
A vector of supports to merge or supports
2424
from pin 0 to ...
25+
should_merge_names_selection : bool, optional
26+
For some result files (such as rst), the
27+
scoping on names selection is
28+
duplicated through all the
29+
distributed files.if this pin is
30+
false, the merging process is
31+
skipped. if it is true, this scoping
32+
is merged. default is true.
2533
2634
2735
Examples
@@ -36,25 +44,39 @@ class merge_supports(Operator):
3644
>>> op.inputs.supports1.connect(my_supports1)
3745
>>> my_supports2 = dpf.AbstractFieldSupport()
3846
>>> op.inputs.supports2.connect(my_supports2)
47+
>>> my_should_merge_names_selection = bool()
48+
>>> op.inputs.should_merge_names_selection.connect(my_should_merge_names_selection)
3949
4050
>>> # Instantiate operator and connect inputs in one line
4151
>>> op = dpf.operators.utility.merge_supports(
4252
... supports1=my_supports1,
4353
... supports2=my_supports2,
54+
... should_merge_names_selection=my_should_merge_names_selection,
4455
... )
4556
4657
>>> # Get output data
4758
>>> result_merged_support = op.outputs.merged_support()
4859
"""
4960

50-
def __init__(self, supports1=None, supports2=None, config=None, server=None):
61+
def __init__(
62+
self,
63+
supports1=None,
64+
supports2=None,
65+
should_merge_names_selection=None,
66+
config=None,
67+
server=None,
68+
):
5169
super().__init__(name="merge::abstract_support", config=config, server=server)
5270
self._inputs = InputsMergeSupports(self)
5371
self._outputs = OutputsMergeSupports(self)
5472
if supports1 is not None:
5573
self.inputs.supports1.connect(supports1)
5674
if supports2 is not None:
5775
self.inputs.supports2.connect(supports2)
76+
if should_merge_names_selection is not None:
77+
self.inputs.should_merge_names_selection.connect(
78+
should_merge_names_selection
79+
)
5880

5981
@staticmethod
6082
def _spec():
@@ -76,6 +98,18 @@ def _spec():
7698
document="""A vector of supports to merge or supports
7799
from pin 0 to ...""",
78100
),
101+
200: PinSpecification(
102+
name="should_merge_names_selection",
103+
type_names=["bool"],
104+
optional=True,
105+
document="""For some result files (such as rst), the
106+
scoping on names selection is
107+
duplicated through all the
108+
distributed files.if this pin is
109+
false, the merging process is
110+
skipped. if it is true, this scoping
111+
is merged. default is true.""",
112+
),
79113
},
80114
map_output_pin_spec={
81115
0: PinSpecification(
@@ -137,6 +171,8 @@ class InputsMergeSupports(_Inputs):
137171
>>> op.inputs.supports1.connect(my_supports1)
138172
>>> my_supports2 = dpf.AbstractFieldSupport()
139173
>>> op.inputs.supports2.connect(my_supports2)
174+
>>> my_should_merge_names_selection = bool()
175+
>>> op.inputs.should_merge_names_selection.connect(my_should_merge_names_selection)
140176
"""
141177

142178
def __init__(self, op: Operator):
@@ -145,6 +181,10 @@ def __init__(self, op: Operator):
145181
self._inputs.append(self._supports1)
146182
self._supports2 = Input(merge_supports._spec().input_pin(1), 1, op, 1)
147183
self._inputs.append(self._supports2)
184+
self._should_merge_names_selection = Input(
185+
merge_supports._spec().input_pin(200), 200, op, -1
186+
)
187+
self._inputs.append(self._should_merge_names_selection)
148188

149189
@property
150190
def supports1(self):
@@ -188,6 +228,32 @@ def supports2(self):
188228
"""
189229
return self._supports2
190230

231+
@property
232+
def should_merge_names_selection(self):
233+
"""Allows to connect should_merge_names_selection input to the operator.
234+
235+
For some result files (such as rst), the
236+
scoping on names selection is
237+
duplicated through all the
238+
distributed files.if this pin is
239+
false, the merging process is
240+
skipped. if it is true, this scoping
241+
is merged. default is true.
242+
243+
Parameters
244+
----------
245+
my_should_merge_names_selection : bool
246+
247+
Examples
248+
--------
249+
>>> from ansys.dpf import core as dpf
250+
>>> op = dpf.operators.utility.merge_supports()
251+
>>> op.inputs.should_merge_names_selection.connect(my_should_merge_names_selection)
252+
>>> # or
253+
>>> op.inputs.should_merge_names_selection(my_should_merge_names_selection)
254+
"""
255+
return self._should_merge_names_selection
256+
191257

192258
class OutputsMergeSupports(_Outputs):
193259
"""Intermediate class used to get outputs from
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
80 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)