Skip to content

Commit bba76bc

Browse files
PProfizigithub-actions[bot]
authored andcommitted
update generated code
1 parent b673c4f commit bba76bc

File tree

106 files changed

+4009
-3449
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+4009
-3449
lines changed

doc/source/_static/dpf_operators.html

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@
268268
from .smisc import smisc
269269
from .specific_heat import specific_heat
270270
from .spectrum_data import spectrum_data
271+
from .state_variable import state_variable
271272
from .static_pressure import static_pressure
272273
from .stiffness_matrix_energy import stiffness_matrix_energy
273274
from .strain_eqv_as_mechanical import strain_eqv_as_mechanical

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

Lines changed: 137 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,25 @@ class acceleration(Operator):
5858
If true the field is rotated to global
5959
coordinate system (default true)
6060
mesh : MeshedRegion or MeshesContainer, optional
61-
Prevents from reading the mesh in the result
62-
files
61+
Mesh. if cylic expansion is to be done, mesh
62+
of the base sector
6363
read_cyclic : int, optional
6464
If 0 cyclic symmetry is ignored, if 1 cyclic
6565
sector is read, if 2 cyclic expansion
6666
is done, if 3 cyclic expansion is
6767
done and stages are merged (default
6868
is 1)
69+
expanded_meshed_region : MeshedRegion or MeshesContainer, optional
70+
Mesh expanded, use if cyclic expansion is to
71+
be done.
72+
sectors_to_expand : Scoping or ScopingsContainer, optional
73+
Sectors to expand (start at 0), for
74+
multistage: use scopings container
75+
with 'stage' label, use if cyclic
76+
expansion is to be done.
77+
phi : float, optional
78+
Angle phi in degrees (default value 0.0), use
79+
if cyclic expansion is to be done.
6980
7081
Returns
7182
-------
@@ -95,6 +106,12 @@ class acceleration(Operator):
95106
>>> op.inputs.mesh.connect(my_mesh)
96107
>>> my_read_cyclic = int()
97108
>>> op.inputs.read_cyclic.connect(my_read_cyclic)
109+
>>> my_expanded_meshed_region = dpf.MeshedRegion()
110+
>>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region)
111+
>>> my_sectors_to_expand = dpf.Scoping()
112+
>>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand)
113+
>>> my_phi = float()
114+
>>> op.inputs.phi.connect(my_phi)
98115
99116
>>> # Instantiate operator and connect inputs in one line
100117
>>> op = dpf.operators.result.acceleration(
@@ -106,6 +123,9 @@ class acceleration(Operator):
106123
... bool_rotate_to_global=my_bool_rotate_to_global,
107124
... mesh=my_mesh,
108125
... read_cyclic=my_read_cyclic,
126+
... expanded_meshed_region=my_expanded_meshed_region,
127+
... sectors_to_expand=my_sectors_to_expand,
128+
... phi=my_phi,
109129
... )
110130
111131
>>> # Get output data
@@ -122,6 +142,9 @@ def __init__(
122142
bool_rotate_to_global=None,
123143
mesh=None,
124144
read_cyclic=None,
145+
expanded_meshed_region=None,
146+
sectors_to_expand=None,
147+
phi=None,
125148
config=None,
126149
server=None,
127150
):
@@ -144,6 +167,12 @@ def __init__(
144167
self.inputs.mesh.connect(mesh)
145168
if read_cyclic is not None:
146169
self.inputs.read_cyclic.connect(read_cyclic)
170+
if expanded_meshed_region is not None:
171+
self.inputs.expanded_meshed_region.connect(expanded_meshed_region)
172+
if sectors_to_expand is not None:
173+
self.inputs.sectors_to_expand.connect(sectors_to_expand)
174+
if phi is not None:
175+
self.inputs.phi.connect(phi)
147176

148177
@staticmethod
149178
def _spec():
@@ -227,8 +256,8 @@ def _spec():
227256
name="mesh",
228257
type_names=["abstract_meshed_region", "meshes_container"],
229258
optional=True,
230-
document="""Prevents from reading the mesh in the result
231-
files""",
259+
document="""Mesh. if cylic expansion is to be done, mesh
260+
of the base sector""",
232261
),
233262
14: PinSpecification(
234263
name="read_cyclic",
@@ -240,6 +269,29 @@ def _spec():
240269
done and stages are merged (default
241270
is 1)""",
242271
),
272+
15: PinSpecification(
273+
name="expanded_meshed_region",
274+
type_names=["abstract_meshed_region", "meshes_container"],
275+
optional=True,
276+
document="""Mesh expanded, use if cyclic expansion is to
277+
be done.""",
278+
),
279+
18: PinSpecification(
280+
name="sectors_to_expand",
281+
type_names=["vector<int32>", "scoping", "scopings_container"],
282+
optional=True,
283+
document="""Sectors to expand (start at 0), for
284+
multistage: use scopings container
285+
with 'stage' label, use if cyclic
286+
expansion is to be done.""",
287+
),
288+
19: PinSpecification(
289+
name="phi",
290+
type_names=["double"],
291+
optional=True,
292+
document="""Angle phi in degrees (default value 0.0), use
293+
if cyclic expansion is to be done.""",
294+
),
243295
},
244296
map_output_pin_spec={
245297
0: PinSpecification(
@@ -313,6 +365,12 @@ class InputsAcceleration(_Inputs):
313365
>>> op.inputs.mesh.connect(my_mesh)
314366
>>> my_read_cyclic = int()
315367
>>> op.inputs.read_cyclic.connect(my_read_cyclic)
368+
>>> my_expanded_meshed_region = dpf.MeshedRegion()
369+
>>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region)
370+
>>> my_sectors_to_expand = dpf.Scoping()
371+
>>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand)
372+
>>> my_phi = float()
373+
>>> op.inputs.phi.connect(my_phi)
316374
"""
317375

318376
def __init__(self, op: Operator):
@@ -335,6 +393,14 @@ def __init__(self, op: Operator):
335393
self._inputs.append(self._mesh)
336394
self._read_cyclic = Input(acceleration._spec().input_pin(14), 14, op, -1)
337395
self._inputs.append(self._read_cyclic)
396+
self._expanded_meshed_region = Input(
397+
acceleration._spec().input_pin(15), 15, op, -1
398+
)
399+
self._inputs.append(self._expanded_meshed_region)
400+
self._sectors_to_expand = Input(acceleration._spec().input_pin(18), 18, op, -1)
401+
self._inputs.append(self._sectors_to_expand)
402+
self._phi = Input(acceleration._spec().input_pin(19), 19, op, -1)
403+
self._inputs.append(self._phi)
338404

339405
@property
340406
def time_scoping(self):
@@ -488,8 +554,8 @@ def bool_rotate_to_global(self):
488554
def mesh(self):
489555
"""Allows to connect mesh input to the operator.
490556
491-
Prevents from reading the mesh in the result
492-
files
557+
Mesh. if cylic expansion is to be done, mesh
558+
of the base sector
493559
494560
Parameters
495561
----------
@@ -529,6 +595,71 @@ def read_cyclic(self):
529595
"""
530596
return self._read_cyclic
531597

598+
@property
599+
def expanded_meshed_region(self):
600+
"""Allows to connect expanded_meshed_region input to the operator.
601+
602+
Mesh expanded, use if cyclic expansion is to
603+
be done.
604+
605+
Parameters
606+
----------
607+
my_expanded_meshed_region : MeshedRegion or MeshesContainer
608+
609+
Examples
610+
--------
611+
>>> from ansys.dpf import core as dpf
612+
>>> op = dpf.operators.result.acceleration()
613+
>>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region)
614+
>>> # or
615+
>>> op.inputs.expanded_meshed_region(my_expanded_meshed_region)
616+
"""
617+
return self._expanded_meshed_region
618+
619+
@property
620+
def sectors_to_expand(self):
621+
"""Allows to connect sectors_to_expand input to the operator.
622+
623+
Sectors to expand (start at 0), for
624+
multistage: use scopings container
625+
with 'stage' label, use if cyclic
626+
expansion is to be done.
627+
628+
Parameters
629+
----------
630+
my_sectors_to_expand : Scoping or ScopingsContainer
631+
632+
Examples
633+
--------
634+
>>> from ansys.dpf import core as dpf
635+
>>> op = dpf.operators.result.acceleration()
636+
>>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand)
637+
>>> # or
638+
>>> op.inputs.sectors_to_expand(my_sectors_to_expand)
639+
"""
640+
return self._sectors_to_expand
641+
642+
@property
643+
def phi(self):
644+
"""Allows to connect phi input to the operator.
645+
646+
Angle phi in degrees (default value 0.0), use
647+
if cyclic expansion is to be done.
648+
649+
Parameters
650+
----------
651+
my_phi : float
652+
653+
Examples
654+
--------
655+
>>> from ansys.dpf import core as dpf
656+
>>> op = dpf.operators.result.acceleration()
657+
>>> op.inputs.phi.connect(my_phi)
658+
>>> # or
659+
>>> op.inputs.phi(my_phi)
660+
"""
661+
return self._phi
662+
532663

533664
class OutputsAcceleration(_Outputs):
534665
"""Intermediate class used to get outputs from

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

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@ class accu_eqv_creep_strain(Operator):
6565
requested_location : str, optional
6666
Requested location nodal, elemental or
6767
elementalnodal
68-
read_cyclic : int, optional
69-
If 0 cyclic symmetry is ignored, if 1 cyclic
70-
sector is read, if 2 cyclic expansion
71-
is done, if 3 cyclic expansion is
72-
done and stages are merged (default
73-
is 1)
7468
read_beams : bool, optional
7569
Elemental nodal beam results are read if this
7670
pin is set to true (default is false)
@@ -120,8 +114,6 @@ class accu_eqv_creep_strain(Operator):
120114
>>> op.inputs.mesh.connect(my_mesh)
121115
>>> my_requested_location = str()
122116
>>> op.inputs.requested_location.connect(my_requested_location)
123-
>>> my_read_cyclic = int()
124-
>>> op.inputs.read_cyclic.connect(my_read_cyclic)
125117
>>> my_read_beams = bool()
126118
>>> op.inputs.read_beams.connect(my_read_beams)
127119
>>> my_split_shells = bool()
@@ -139,7 +131,6 @@ class accu_eqv_creep_strain(Operator):
139131
... bool_rotate_to_global=my_bool_rotate_to_global,
140132
... mesh=my_mesh,
141133
... requested_location=my_requested_location,
142-
... read_cyclic=my_read_cyclic,
143134
... read_beams=my_read_beams,
144135
... split_shells=my_split_shells,
145136
... shell_layer=my_shell_layer,
@@ -159,7 +150,6 @@ def __init__(
159150
bool_rotate_to_global=None,
160151
mesh=None,
161152
requested_location=None,
162-
read_cyclic=None,
163153
read_beams=None,
164154
split_shells=None,
165155
shell_layer=None,
@@ -185,8 +175,6 @@ def __init__(
185175
self.inputs.mesh.connect(mesh)
186176
if requested_location is not None:
187177
self.inputs.requested_location.connect(requested_location)
188-
if read_cyclic is not None:
189-
self.inputs.read_cyclic.connect(read_cyclic)
190178
if read_beams is not None:
191179
self.inputs.read_beams.connect(read_beams)
192180
if split_shells is not None:
@@ -287,16 +275,6 @@ def _spec():
287275
optional=True,
288276
document="""Requested location nodal, elemental or
289277
elementalnodal""",
290-
),
291-
14: PinSpecification(
292-
name="read_cyclic",
293-
type_names=["enum dataProcessing::ECyclicReading", "int32"],
294-
optional=True,
295-
document="""If 0 cyclic symmetry is ignored, if 1 cyclic
296-
sector is read, if 2 cyclic expansion
297-
is done, if 3 cyclic expansion is
298-
done and stages are merged (default
299-
is 1)""",
300278
),
301279
22: PinSpecification(
302280
name="read_beams",
@@ -403,8 +381,6 @@ class InputsAccuEqvCreepStrain(_Inputs):
403381
>>> op.inputs.mesh.connect(my_mesh)
404382
>>> my_requested_location = str()
405383
>>> op.inputs.requested_location.connect(my_requested_location)
406-
>>> my_read_cyclic = int()
407-
>>> op.inputs.read_cyclic.connect(my_read_cyclic)
408384
>>> my_read_beams = bool()
409385
>>> op.inputs.read_beams.connect(my_read_beams)
410386
>>> my_split_shells = bool()
@@ -445,10 +421,6 @@ def __init__(self, op: Operator):
445421
accu_eqv_creep_strain._spec().input_pin(9), 9, op, -1
446422
)
447423
self._inputs.append(self._requested_location)
448-
self._read_cyclic = Input(
449-
accu_eqv_creep_strain._spec().input_pin(14), 14, op, -1
450-
)
451-
self._inputs.append(self._read_cyclic)
452424
self._read_beams = Input(
453425
accu_eqv_creep_strain._spec().input_pin(22), 22, op, -1
454426
)
@@ -652,30 +624,6 @@ def requested_location(self):
652624
"""
653625
return self._requested_location
654626

655-
@property
656-
def read_cyclic(self):
657-
"""Allows to connect read_cyclic input to the operator.
658-
659-
If 0 cyclic symmetry is ignored, if 1 cyclic
660-
sector is read, if 2 cyclic expansion
661-
is done, if 3 cyclic expansion is
662-
done and stages are merged (default
663-
is 1)
664-
665-
Parameters
666-
----------
667-
my_read_cyclic : int
668-
669-
Examples
670-
--------
671-
>>> from ansys.dpf import core as dpf
672-
>>> op = dpf.operators.result.accu_eqv_creep_strain()
673-
>>> op.inputs.read_cyclic.connect(my_read_cyclic)
674-
>>> # or
675-
>>> op.inputs.read_cyclic(my_read_cyclic)
676-
"""
677-
return self._read_cyclic
678-
679627
@property
680628
def read_beams(self):
681629
"""Allows to connect read_beams input to the operator.

0 commit comments

Comments
 (0)