Skip to content

Commit f2302b3

Browse files
Update generated code for DPF 261_daily on master (#2471)
Co-authored-by: PProfizi <[email protected]>
1 parent 3819985 commit f2302b3

File tree

8 files changed

+117
-3
lines changed

8 files changed

+117
-3
lines changed

doc/source/_static/dpf_operators.html

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

src/ansys/dpf/core/operators/math/accumulation_per_scoping.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class accumulation_per_scoping(Operator):
2525
fields_container: FieldsContainer
2626
mesh_scoping: Scoping, optional
2727
Master scoping. All scopings in the Scopings Container will be intersected with this scoping.
28+
streams_container: StreamsContainer
2829
data_sources: DataSources
2930
scopings_container: ScopingsContainer
3031
The intersection between the of the first will be used.
@@ -46,6 +47,8 @@ class accumulation_per_scoping(Operator):
4647
>>> op.inputs.fields_container.connect(my_fields_container)
4748
>>> my_mesh_scoping = dpf.Scoping()
4849
>>> op.inputs.mesh_scoping.connect(my_mesh_scoping)
50+
>>> my_streams_container = dpf.StreamsContainer()
51+
>>> op.inputs.streams_container.connect(my_streams_container)
4952
>>> my_data_sources = dpf.DataSources()
5053
>>> op.inputs.data_sources.connect(my_data_sources)
5154
>>> my_scopings_container = dpf.ScopingsContainer()
@@ -55,6 +58,7 @@ class accumulation_per_scoping(Operator):
5558
>>> op = dpf.operators.math.accumulation_per_scoping(
5659
... fields_container=my_fields_container,
5760
... mesh_scoping=my_mesh_scoping,
61+
... streams_container=my_streams_container,
5862
... data_sources=my_data_sources,
5963
... scopings_container=my_scopings_container,
6064
... )
@@ -68,6 +72,7 @@ def __init__(
6872
self,
6973
fields_container=None,
7074
mesh_scoping=None,
75+
streams_container=None,
7176
data_sources=None,
7277
scopings_container=None,
7378
config=None,
@@ -80,6 +85,8 @@ def __init__(
8085
self.inputs.fields_container.connect(fields_container)
8186
if mesh_scoping is not None:
8287
self.inputs.mesh_scoping.connect(mesh_scoping)
88+
if streams_container is not None:
89+
self.inputs.streams_container.connect(streams_container)
8390
if data_sources is not None:
8491
self.inputs.data_sources.connect(data_sources)
8592
if scopings_container is not None:
@@ -105,6 +112,12 @@ def _spec() -> Specification:
105112
optional=True,
106113
document=r"""Master scoping. All scopings in the Scopings Container will be intersected with this scoping.""",
107114
),
115+
3: PinSpecification(
116+
name="streams_container",
117+
type_names=["streams_container"],
118+
optional=False,
119+
document=r"""""",
120+
),
108121
4: PinSpecification(
109122
name="data_sources",
110123
type_names=["data_sources"],
@@ -191,6 +204,8 @@ class InputsAccumulationPerScoping(_Inputs):
191204
>>> op.inputs.fields_container.connect(my_fields_container)
192205
>>> my_mesh_scoping = dpf.Scoping()
193206
>>> op.inputs.mesh_scoping.connect(my_mesh_scoping)
207+
>>> my_streams_container = dpf.StreamsContainer()
208+
>>> op.inputs.streams_container.connect(my_streams_container)
194209
>>> my_data_sources = dpf.DataSources()
195210
>>> op.inputs.data_sources.connect(my_data_sources)
196211
>>> my_scopings_container = dpf.ScopingsContainer()
@@ -207,6 +222,10 @@ def __init__(self, op: Operator):
207222
accumulation_per_scoping._spec().input_pin(1), 1, op, -1
208223
)
209224
self._inputs.append(self._mesh_scoping)
225+
self._streams_container = Input(
226+
accumulation_per_scoping._spec().input_pin(3), 3, op, -1
227+
)
228+
self._inputs.append(self._streams_container)
210229
self._data_sources = Input(
211230
accumulation_per_scoping._spec().input_pin(4), 4, op, -1
212231
)
@@ -256,6 +275,25 @@ def mesh_scoping(self) -> Input:
256275
"""
257276
return self._mesh_scoping
258277

278+
@property
279+
def streams_container(self) -> Input:
280+
r"""Allows to connect streams_container input to the operator.
281+
282+
Returns
283+
-------
284+
input:
285+
An Input instance for this pin.
286+
287+
Examples
288+
--------
289+
>>> from ansys.dpf import core as dpf
290+
>>> op = dpf.operators.math.accumulation_per_scoping()
291+
>>> op.inputs.streams_container.connect(my_streams_container)
292+
>>> # or
293+
>>> op.inputs.streams_container(my_streams_container)
294+
"""
295+
return self._streams_container
296+
259297
@property
260298
def data_sources(self) -> Input:
261299
r"""Allows to connect data_sources input to the operator.

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

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class workflow_energy_per_component(Operator):
2727
When the input is a scoping, it is treated as the master scoping. All named selections will intersect with it. When the input is a scopings container, named selections will not be needed.
2828
energy_type: int, optional
2929
Type of energy to be processed: (0: Strain + Kinetic energy (default), 1: Strain energy, 2: Kinetic energy, 3: All energy types)
30+
streams_container: StreamsContainer
3031
data_sources: DataSources
3132
named_selection1: str, optional
3233
Named Selections. Intersection of all Named Selections with the master scoping will be done.
@@ -58,6 +59,8 @@ class workflow_energy_per_component(Operator):
5859
>>> op.inputs.mesh_scoping.connect(my_mesh_scoping)
5960
>>> my_energy_type = int()
6061
>>> op.inputs.energy_type.connect(my_energy_type)
62+
>>> my_streams_container = dpf.StreamsContainer()
63+
>>> op.inputs.streams_container.connect(my_streams_container)
6164
>>> my_data_sources = dpf.DataSources()
6265
>>> op.inputs.data_sources.connect(my_data_sources)
6366
>>> my_named_selection1 = str()
@@ -70,6 +73,7 @@ class workflow_energy_per_component(Operator):
7073
... time_scoping=my_time_scoping,
7174
... mesh_scoping=my_mesh_scoping,
7275
... energy_type=my_energy_type,
76+
... streams_container=my_streams_container,
7377
... data_sources=my_data_sources,
7478
... named_selection1=my_named_selection1,
7579
... named_selection2=my_named_selection2,
@@ -91,6 +95,7 @@ def __init__(
9195
time_scoping=None,
9296
mesh_scoping=None,
9397
energy_type=None,
98+
streams_container=None,
9499
data_sources=None,
95100
named_selection1=None,
96101
named_selection2=None,
@@ -108,6 +113,8 @@ def __init__(
108113
self.inputs.mesh_scoping.connect(mesh_scoping)
109114
if energy_type is not None:
110115
self.inputs.energy_type.connect(energy_type)
116+
if streams_container is not None:
117+
self.inputs.streams_container.connect(streams_container)
111118
if data_sources is not None:
112119
self.inputs.data_sources.connect(data_sources)
113120
if named_selection1 is not None:
@@ -141,6 +148,12 @@ def _spec() -> Specification:
141148
optional=True,
142149
document=r"""Type of energy to be processed: (0: Strain + Kinetic energy (default), 1: Strain energy, 2: Kinetic energy, 3: All energy types)""",
143150
),
151+
3: PinSpecification(
152+
name="streams_container",
153+
type_names=["streams_container"],
154+
optional=False,
155+
document=r"""""",
156+
),
144157
4: PinSpecification(
145158
name="data_sources",
146159
type_names=["data_sources"],
@@ -273,6 +286,8 @@ class InputsWorkflowEnergyPerComponent(_Inputs):
273286
>>> op.inputs.mesh_scoping.connect(my_mesh_scoping)
274287
>>> my_energy_type = int()
275288
>>> op.inputs.energy_type.connect(my_energy_type)
289+
>>> my_streams_container = dpf.StreamsContainer()
290+
>>> op.inputs.streams_container.connect(my_streams_container)
276291
>>> my_data_sources = dpf.DataSources()
277292
>>> op.inputs.data_sources.connect(my_data_sources)
278293
>>> my_named_selection1 = str()
@@ -295,6 +310,10 @@ def __init__(self, op: Operator):
295310
workflow_energy_per_component._spec().input_pin(2), 2, op, -1
296311
)
297312
self._inputs.append(self._energy_type)
313+
self._streams_container = Input(
314+
workflow_energy_per_component._spec().input_pin(3), 3, op, -1
315+
)
316+
self._inputs.append(self._streams_container)
298317
self._data_sources = Input(
299318
workflow_energy_per_component._spec().input_pin(4), 4, op, -1
300319
)
@@ -369,6 +388,25 @@ def energy_type(self) -> Input:
369388
"""
370389
return self._energy_type
371390

391+
@property
392+
def streams_container(self) -> Input:
393+
r"""Allows to connect streams_container input to the operator.
394+
395+
Returns
396+
-------
397+
input:
398+
An Input instance for this pin.
399+
400+
Examples
401+
--------
402+
>>> from ansys.dpf import core as dpf
403+
>>> op = dpf.operators.result.workflow_energy_per_component()
404+
>>> op.inputs.streams_container.connect(my_streams_container)
405+
>>> # or
406+
>>> op.inputs.streams_container(my_streams_container)
407+
"""
408+
return self._streams_container
409+
372410
@property
373411
def data_sources(self) -> Input:
374412
r"""Allows to connect data_sources input to the operator.

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

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class workflow_energy_per_harmonic(Operator):
2727
Master scoping. All harmonics will be intersected with this scoping.
2828
energy_type: int, optional
2929
Type of energy to be processed: (0: Strain + Kinetic energy (default), 1: Strain energy, 2: Kinetic energy)
30+
stream: Stream
3031
data_sources: DataSources
3132
3233
Returns
@@ -48,6 +49,8 @@ class workflow_energy_per_harmonic(Operator):
4849
>>> op.inputs.mesh_scoping.connect(my_mesh_scoping)
4950
>>> my_energy_type = int()
5051
>>> op.inputs.energy_type.connect(my_energy_type)
52+
>>> my_stream = dpf.Stream()
53+
>>> op.inputs.stream.connect(my_stream)
5154
>>> my_data_sources = dpf.DataSources()
5255
>>> op.inputs.data_sources.connect(my_data_sources)
5356
@@ -56,6 +59,7 @@ class workflow_energy_per_harmonic(Operator):
5659
... time_scoping=my_time_scoping,
5760
... mesh_scoping=my_mesh_scoping,
5861
... energy_type=my_energy_type,
62+
... stream=my_stream,
5963
... data_sources=my_data_sources,
6064
... )
6165
@@ -69,6 +73,7 @@ def __init__(
6973
time_scoping=None,
7074
mesh_scoping=None,
7175
energy_type=None,
76+
stream=None,
7277
data_sources=None,
7378
config=None,
7479
server=None,
@@ -84,6 +89,8 @@ def __init__(
8489
self.inputs.mesh_scoping.connect(mesh_scoping)
8590
if energy_type is not None:
8691
self.inputs.energy_type.connect(energy_type)
92+
if stream is not None:
93+
self.inputs.stream.connect(stream)
8794
if data_sources is not None:
8895
self.inputs.data_sources.connect(data_sources)
8996

@@ -113,6 +120,12 @@ def _spec() -> Specification:
113120
optional=True,
114121
document=r"""Type of energy to be processed: (0: Strain + Kinetic energy (default), 1: Strain energy, 2: Kinetic energy)""",
115122
),
123+
3: PinSpecification(
124+
name="stream",
125+
type_names=["stream"],
126+
optional=False,
127+
document=r"""""",
128+
),
116129
4: PinSpecification(
117130
name="data_sources",
118131
type_names=["data_sources"],
@@ -197,6 +210,8 @@ class InputsWorkflowEnergyPerHarmonic(_Inputs):
197210
>>> op.inputs.mesh_scoping.connect(my_mesh_scoping)
198211
>>> my_energy_type = int()
199212
>>> op.inputs.energy_type.connect(my_energy_type)
213+
>>> my_stream = dpf.Stream()
214+
>>> op.inputs.stream.connect(my_stream)
200215
>>> my_data_sources = dpf.DataSources()
201216
>>> op.inputs.data_sources.connect(my_data_sources)
202217
"""
@@ -215,6 +230,10 @@ def __init__(self, op: Operator):
215230
workflow_energy_per_harmonic._spec().input_pin(2), 2, op, -1
216231
)
217232
self._inputs.append(self._energy_type)
233+
self._stream = Input(
234+
workflow_energy_per_harmonic._spec().input_pin(3), 3, op, -1
235+
)
236+
self._inputs.append(self._stream)
218237
self._data_sources = Input(
219238
workflow_energy_per_harmonic._spec().input_pin(4), 4, op, -1
220239
)
@@ -281,6 +300,25 @@ def energy_type(self) -> Input:
281300
"""
282301
return self._energy_type
283302

303+
@property
304+
def stream(self) -> Input:
305+
r"""Allows to connect stream input to the operator.
306+
307+
Returns
308+
-------
309+
input:
310+
An Input instance for this pin.
311+
312+
Examples
313+
--------
314+
>>> from ansys.dpf import core as dpf
315+
>>> op = dpf.operators.result.workflow_energy_per_harmonic()
316+
>>> op.inputs.stream.connect(my_stream)
317+
>>> # or
318+
>>> op.inputs.stream(my_stream)
319+
"""
320+
return self._stream
321+
284322
@property
285323
def data_sources(self) -> Input:
286324
r"""Allows to connect data_sources input to the operator.
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)