Skip to content

Commit 911dc9a

Browse files
update operators (#789)
Co-authored-by: PProfizi <[email protected]>
1 parent 2a72a0b commit 911dc9a

13 files changed

+531
-4
lines changed

docs/source/_static/dpf_entry.html

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

docs/source/_static/dpf_premium.html

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

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

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ class cyclic_expanded_acceleration(Operator):
2626
Data sources containing the result file.
2727
bool_rotate_to_global : bool, optional
2828
Default is true
29+
all_dofs : bool, optional
30+
If this pin is set to true, all the dofs are
31+
retrieved. by default this pin is set
32+
to false and only the translational
33+
dofs are retrieved.
2934
sector_mesh : MeshedRegion or MeshesContainer, optional
3035
Mesh of the base sector (can be a skin).
3136
requested_location : str, optional
@@ -67,6 +72,8 @@ class cyclic_expanded_acceleration(Operator):
6772
>>> op.inputs.data_sources.connect(my_data_sources)
6873
>>> my_bool_rotate_to_global = bool()
6974
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
75+
>>> my_all_dofs = bool()
76+
>>> op.inputs.all_dofs.connect(my_all_dofs)
7077
>>> my_sector_mesh = dpf.MeshedRegion()
7178
>>> op.inputs.sector_mesh.connect(my_sector_mesh)
7279
>>> my_requested_location = str()
@@ -90,6 +97,7 @@ class cyclic_expanded_acceleration(Operator):
9097
... streams_container=my_streams_container,
9198
... data_sources=my_data_sources,
9299
... bool_rotate_to_global=my_bool_rotate_to_global,
100+
... all_dofs=my_all_dofs,
93101
... sector_mesh=my_sector_mesh,
94102
... requested_location=my_requested_location,
95103
... read_cyclic=my_read_cyclic,
@@ -112,6 +120,7 @@ def __init__(
112120
streams_container=None,
113121
data_sources=None,
114122
bool_rotate_to_global=None,
123+
all_dofs=None,
115124
sector_mesh=None,
116125
requested_location=None,
117126
read_cyclic=None,
@@ -137,6 +146,8 @@ def __init__(
137146
self.inputs.data_sources.connect(data_sources)
138147
if bool_rotate_to_global is not None:
139148
self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global)
149+
if all_dofs is not None:
150+
self.inputs.all_dofs.connect(all_dofs)
140151
if sector_mesh is not None:
141152
self.inputs.sector_mesh.connect(sector_mesh)
142153
if requested_location is not None:
@@ -197,6 +208,15 @@ def _spec():
197208
optional=True,
198209
document="""Default is true""",
199210
),
211+
6: PinSpecification(
212+
name="all_dofs",
213+
type_names=["bool"],
214+
optional=True,
215+
document="""If this pin is set to true, all the dofs are
216+
retrieved. by default this pin is set
217+
to false and only the translational
218+
dofs are retrieved.""",
219+
),
200220
7: PinSpecification(
201221
name="sector_mesh",
202222
type_names=["abstract_meshed_region", "meshes_container"],
@@ -320,6 +340,8 @@ class InputsCyclicExpandedAcceleration(_Inputs):
320340
>>> op.inputs.data_sources.connect(my_data_sources)
321341
>>> my_bool_rotate_to_global = bool()
322342
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
343+
>>> my_all_dofs = bool()
344+
>>> op.inputs.all_dofs.connect(my_all_dofs)
323345
>>> my_sector_mesh = dpf.MeshedRegion()
324346
>>> op.inputs.sector_mesh.connect(my_sector_mesh)
325347
>>> my_requested_location = str()
@@ -362,6 +384,10 @@ def __init__(self, op: Operator):
362384
cyclic_expanded_acceleration._spec().input_pin(5), 5, op, -1
363385
)
364386
self._inputs.append(self._bool_rotate_to_global)
387+
self._all_dofs = Input(
388+
cyclic_expanded_acceleration._spec().input_pin(6), 6, op, -1
389+
)
390+
self._inputs.append(self._all_dofs)
365391
self._sector_mesh = Input(
366392
cyclic_expanded_acceleration._spec().input_pin(7), 7, op, -1
367393
)
@@ -508,6 +534,29 @@ def bool_rotate_to_global(self):
508534
"""
509535
return self._bool_rotate_to_global
510536

537+
@property
538+
def all_dofs(self):
539+
"""Allows to connect all_dofs input to the operator.
540+
541+
If this pin is set to true, all the dofs are
542+
retrieved. by default this pin is set
543+
to false and only the translational
544+
dofs are retrieved.
545+
546+
Parameters
547+
----------
548+
my_all_dofs : bool
549+
550+
Examples
551+
--------
552+
>>> from ansys.dpf import core as dpf
553+
>>> op = dpf.operators.result.cyclic_expanded_acceleration()
554+
>>> op.inputs.all_dofs.connect(my_all_dofs)
555+
>>> # or
556+
>>> op.inputs.all_dofs(my_all_dofs)
557+
"""
558+
return self._all_dofs
559+
511560
@property
512561
def sector_mesh(self):
513562
"""Allows to connect sector_mesh input to the operator.

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

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ class cyclic_expanded_displacement(Operator):
2727
Data sources containing the result file.
2828
bool_rotate_to_global : bool, optional
2929
Default is true
30+
all_dofs : bool, optional
31+
If this pin is set to true, all the dofs are
32+
retrieved. by default this pin is set
33+
to false and only the translational
34+
dofs are retrieved.
3035
sector_mesh : MeshedRegion or MeshesContainer, optional
3136
Mesh of the base sector (can be a skin).
3237
requested_location : str, optional
@@ -68,6 +73,8 @@ class cyclic_expanded_displacement(Operator):
6873
>>> op.inputs.data_sources.connect(my_data_sources)
6974
>>> my_bool_rotate_to_global = bool()
7075
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
76+
>>> my_all_dofs = bool()
77+
>>> op.inputs.all_dofs.connect(my_all_dofs)
7178
>>> my_sector_mesh = dpf.MeshedRegion()
7279
>>> op.inputs.sector_mesh.connect(my_sector_mesh)
7380
>>> my_requested_location = str()
@@ -91,6 +98,7 @@ class cyclic_expanded_displacement(Operator):
9198
... streams_container=my_streams_container,
9299
... data_sources=my_data_sources,
93100
... bool_rotate_to_global=my_bool_rotate_to_global,
101+
... all_dofs=my_all_dofs,
94102
... sector_mesh=my_sector_mesh,
95103
... requested_location=my_requested_location,
96104
... read_cyclic=my_read_cyclic,
@@ -113,6 +121,7 @@ def __init__(
113121
streams_container=None,
114122
data_sources=None,
115123
bool_rotate_to_global=None,
124+
all_dofs=None,
116125
sector_mesh=None,
117126
requested_location=None,
118127
read_cyclic=None,
@@ -138,6 +147,8 @@ def __init__(
138147
self.inputs.data_sources.connect(data_sources)
139148
if bool_rotate_to_global is not None:
140149
self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global)
150+
if all_dofs is not None:
151+
self.inputs.all_dofs.connect(all_dofs)
141152
if sector_mesh is not None:
142153
self.inputs.sector_mesh.connect(sector_mesh)
143154
if requested_location is not None:
@@ -197,6 +208,15 @@ def _spec():
197208
optional=True,
198209
document="""Default is true""",
199210
),
211+
6: PinSpecification(
212+
name="all_dofs",
213+
type_names=["bool"],
214+
optional=True,
215+
document="""If this pin is set to true, all the dofs are
216+
retrieved. by default this pin is set
217+
to false and only the translational
218+
dofs are retrieved.""",
219+
),
200220
7: PinSpecification(
201221
name="sector_mesh",
202222
type_names=["abstract_meshed_region", "meshes_container"],
@@ -320,6 +340,8 @@ class InputsCyclicExpandedDisplacement(_Inputs):
320340
>>> op.inputs.data_sources.connect(my_data_sources)
321341
>>> my_bool_rotate_to_global = bool()
322342
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
343+
>>> my_all_dofs = bool()
344+
>>> op.inputs.all_dofs.connect(my_all_dofs)
323345
>>> my_sector_mesh = dpf.MeshedRegion()
324346
>>> op.inputs.sector_mesh.connect(my_sector_mesh)
325347
>>> my_requested_location = str()
@@ -362,6 +384,10 @@ def __init__(self, op: Operator):
362384
cyclic_expanded_displacement._spec().input_pin(5), 5, op, -1
363385
)
364386
self._inputs.append(self._bool_rotate_to_global)
387+
self._all_dofs = Input(
388+
cyclic_expanded_displacement._spec().input_pin(6), 6, op, -1
389+
)
390+
self._inputs.append(self._all_dofs)
365391
self._sector_mesh = Input(
366392
cyclic_expanded_displacement._spec().input_pin(7), 7, op, -1
367393
)
@@ -508,6 +534,29 @@ def bool_rotate_to_global(self):
508534
"""
509535
return self._bool_rotate_to_global
510536

537+
@property
538+
def all_dofs(self):
539+
"""Allows to connect all_dofs input to the operator.
540+
541+
If this pin is set to true, all the dofs are
542+
retrieved. by default this pin is set
543+
to false and only the translational
544+
dofs are retrieved.
545+
546+
Parameters
547+
----------
548+
my_all_dofs : bool
549+
550+
Examples
551+
--------
552+
>>> from ansys.dpf import core as dpf
553+
>>> op = dpf.operators.result.cyclic_expanded_displacement()
554+
>>> op.inputs.all_dofs.connect(my_all_dofs)
555+
>>> # or
556+
>>> op.inputs.all_dofs(my_all_dofs)
557+
"""
558+
return self._all_dofs
559+
511560
@property
512561
def sector_mesh(self):
513562
"""Allows to connect sector_mesh input to the operator.

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

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ class cyclic_expanded_el_strain(Operator):
2727
Data sources containing the result file.
2828
bool_rotate_to_global : bool, optional
2929
Default is true
30+
all_dofs : bool, optional
31+
If this pin is set to true, all the dofs are
32+
retrieved. by default this pin is set
33+
to false and only the translational
34+
dofs are retrieved.
3035
sector_mesh : MeshedRegion or MeshesContainer, optional
3136
Mesh of the base sector (can be a skin).
3237
requested_location : str, optional
@@ -68,6 +73,8 @@ class cyclic_expanded_el_strain(Operator):
6873
>>> op.inputs.data_sources.connect(my_data_sources)
6974
>>> my_bool_rotate_to_global = bool()
7075
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
76+
>>> my_all_dofs = bool()
77+
>>> op.inputs.all_dofs.connect(my_all_dofs)
7178
>>> my_sector_mesh = dpf.MeshedRegion()
7279
>>> op.inputs.sector_mesh.connect(my_sector_mesh)
7380
>>> my_requested_location = str()
@@ -91,6 +98,7 @@ class cyclic_expanded_el_strain(Operator):
9198
... streams_container=my_streams_container,
9299
... data_sources=my_data_sources,
93100
... bool_rotate_to_global=my_bool_rotate_to_global,
101+
... all_dofs=my_all_dofs,
94102
... sector_mesh=my_sector_mesh,
95103
... requested_location=my_requested_location,
96104
... read_cyclic=my_read_cyclic,
@@ -113,6 +121,7 @@ def __init__(
113121
streams_container=None,
114122
data_sources=None,
115123
bool_rotate_to_global=None,
124+
all_dofs=None,
116125
sector_mesh=None,
117126
requested_location=None,
118127
read_cyclic=None,
@@ -138,6 +147,8 @@ def __init__(
138147
self.inputs.data_sources.connect(data_sources)
139148
if bool_rotate_to_global is not None:
140149
self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global)
150+
if all_dofs is not None:
151+
self.inputs.all_dofs.connect(all_dofs)
141152
if sector_mesh is not None:
142153
self.inputs.sector_mesh.connect(sector_mesh)
143154
if requested_location is not None:
@@ -197,6 +208,15 @@ def _spec():
197208
optional=True,
198209
document="""Default is true""",
199210
),
211+
6: PinSpecification(
212+
name="all_dofs",
213+
type_names=["bool"],
214+
optional=True,
215+
document="""If this pin is set to true, all the dofs are
216+
retrieved. by default this pin is set
217+
to false and only the translational
218+
dofs are retrieved.""",
219+
),
200220
7: PinSpecification(
201221
name="sector_mesh",
202222
type_names=["abstract_meshed_region", "meshes_container"],
@@ -320,6 +340,8 @@ class InputsCyclicExpandedElStrain(_Inputs):
320340
>>> op.inputs.data_sources.connect(my_data_sources)
321341
>>> my_bool_rotate_to_global = bool()
322342
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
343+
>>> my_all_dofs = bool()
344+
>>> op.inputs.all_dofs.connect(my_all_dofs)
323345
>>> my_sector_mesh = dpf.MeshedRegion()
324346
>>> op.inputs.sector_mesh.connect(my_sector_mesh)
325347
>>> my_requested_location = str()
@@ -362,6 +384,10 @@ def __init__(self, op: Operator):
362384
cyclic_expanded_el_strain._spec().input_pin(5), 5, op, -1
363385
)
364386
self._inputs.append(self._bool_rotate_to_global)
387+
self._all_dofs = Input(
388+
cyclic_expanded_el_strain._spec().input_pin(6), 6, op, -1
389+
)
390+
self._inputs.append(self._all_dofs)
365391
self._sector_mesh = Input(
366392
cyclic_expanded_el_strain._spec().input_pin(7), 7, op, -1
367393
)
@@ -506,6 +532,29 @@ def bool_rotate_to_global(self):
506532
"""
507533
return self._bool_rotate_to_global
508534

535+
@property
536+
def all_dofs(self):
537+
"""Allows to connect all_dofs input to the operator.
538+
539+
If this pin is set to true, all the dofs are
540+
retrieved. by default this pin is set
541+
to false and only the translational
542+
dofs are retrieved.
543+
544+
Parameters
545+
----------
546+
my_all_dofs : bool
547+
548+
Examples
549+
--------
550+
>>> from ansys.dpf import core as dpf
551+
>>> op = dpf.operators.result.cyclic_expanded_el_strain()
552+
>>> op.inputs.all_dofs.connect(my_all_dofs)
553+
>>> # or
554+
>>> op.inputs.all_dofs(my_all_dofs)
555+
"""
556+
return self._all_dofs
557+
509558
@property
510559
def sector_mesh(self):
511560
"""Allows to connect sector_mesh input to the operator.

0 commit comments

Comments
 (0)