Skip to content

Commit e25ec6f

Browse files
Update generated code for DPF 261_daily on main (#2587)
Co-authored-by: PProfizi <[email protected]>
1 parent cd7027b commit e25ec6f

38 files changed

+2225
-916
lines changed

doc/source/_static/dpf_operators.html

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

src/ansys/dpf/core/operators/mapping/solid_to_skin_fc.py

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,18 @@
1616

1717

1818
class solid_to_skin_fc(Operator):
19-
r"""Maps a field defined on solid elements to a field defined on skin
20-
elements. Three cases are possible, based on the solid field data
21-
location; (i) Elemental: The values associated with the solid elements
22-
are copied according to those underlying the skin, (ii) Nodal: The solid
23-
field is rescoped with respect to the nodes of the skin mesh, (iii)
24-
ElementalNodal: The values are copied from the solid mesh to the skin
25-
mesh for each element face and the nodes associated with it.
19+
r"""Maps a fields container defined on solid elements to a fields container
20+
defined on skin elements. Three cases are possible, based on the solid
21+
field data location; (i) Elemental: The values associated with the solid
22+
elements are copied according to those underlying the skin, (ii) Nodal:
23+
The solid field is rescoped with respect to the nodes of the skin mesh,
24+
(iii) ElementalNodal: The values are copied from the solid mesh to the
25+
skin mesh for each element face and the nodes associated with it.
2626
2727
2828
Parameters
2929
----------
3030
fields_container: FieldsContainer
31-
field or fields container with only one field is expected
3231
mesh: MeshedRegion
3332
skin mesh region expected
3433
solid_mesh: MeshedRegion, optional
@@ -84,13 +83,13 @@ def __init__(
8483

8584
@staticmethod
8685
def _spec() -> Specification:
87-
description = r"""Maps a field defined on solid elements to a field defined on skin
88-
elements. Three cases are possible, based on the solid field data
89-
location; (i) Elemental: The values associated with the solid elements
90-
are copied according to those underlying the skin, (ii) Nodal: The solid
91-
field is rescoped with respect to the nodes of the skin mesh, (iii)
92-
ElementalNodal: The values are copied from the solid mesh to the skin
93-
mesh for each element face and the nodes associated with it.
86+
description = r"""Maps a fields container defined on solid elements to a fields container
87+
defined on skin elements. Three cases are possible, based on the solid
88+
field data location; (i) Elemental: The values associated with the solid
89+
elements are copied according to those underlying the skin, (ii) Nodal:
90+
The solid field is rescoped with respect to the nodes of the skin mesh,
91+
(iii) ElementalNodal: The values are copied from the solid mesh to the
92+
skin mesh for each element face and the nodes associated with it.
9493
"""
9594
spec = Specification(
9695
description=description,
@@ -99,7 +98,7 @@ def _spec() -> Specification:
9998
name="fields_container",
10099
type_names=["fields_container"],
101100
optional=False,
102-
document=r"""field or fields container with only one field is expected""",
101+
document=r"""""",
103102
),
104103
1: PinSpecification(
105104
name="mesh",
@@ -198,8 +197,6 @@ def __init__(self, op: Operator):
198197
def fields_container(self) -> Input:
199198
r"""Allows to connect fields_container input to the operator.
200199
201-
field or fields container with only one field is expected
202-
203200
Returns
204201
-------
205202
input:

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,17 @@
214214
from .members_in_compression_not_certified import members_in_compression_not_certified
215215
from .members_in_linear_compression_bending_not_certified import members_in_linear_compression_bending_not_certified
216216
from .migrate_to_h5dpf import migrate_to_h5dpf
217+
from .modal_acceleration import modal_acceleration
217218
from .modal_basis import modal_basis
219+
from .modal_coordinate import modal_coordinate
220+
from .modal_velocity import modal_velocity
218221
from .nmisc import nmisc
219222
from .nodal_force import nodal_force
220223
from .nodal_moment import nodal_moment
224+
from .nodal_rotation import nodal_rotation
225+
from .nodal_rotation_X import nodal_rotation_X
226+
from .nodal_rotation_Y import nodal_rotation_Y
227+
from .nodal_rotation_Z import nodal_rotation_Z
221228
from .nodal_rotational_acceleration import nodal_rotational_acceleration
222229
from .nodal_rotational_acceleration_X import nodal_rotational_acceleration_X
223230
from .nodal_rotational_acceleration_Y import nodal_rotational_acceleration_Y
@@ -226,10 +233,6 @@
226233
from .nodal_rotational_velocity_X import nodal_rotational_velocity_X
227234
from .nodal_rotational_velocity_Y import nodal_rotational_velocity_Y
228235
from .nodal_rotational_velocity_Z import nodal_rotational_velocity_Z
229-
from .nodal_rotations import nodal_rotations
230-
from .nodal_rotations_X import nodal_rotations_X
231-
from .nodal_rotations_Y import nodal_rotations_Y
232-
from .nodal_rotations_Z import nodal_rotations_Z
233236
from .nodal_to_global import nodal_to_global
234237
from .normal_contact_force import normal_contact_force
235238
from .normal_contact_moment import normal_contact_moment

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

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@ class gasket_inelastic_closure(Operator):
150150
prevents from reading the mesh in the result files
151151
requested_location: str, optional
152152
requested location Nodal, Elemental or ElementalNodal
153-
read_beams: bool, optional
154-
elemental nodal beam results are read if this pin is set to true (default is false)
155153
split_shells: bool, optional
156154
If true, this pin forces the results to be split by element shape, indicated by the presence of the 'elshape' label in the output. If false, the results for all elements shapes are combined. Default value is false if averaging is not required and true if averaging is required.
157155
shell_layer: int, optional
@@ -185,8 +183,6 @@ class gasket_inelastic_closure(Operator):
185183
>>> op.inputs.mesh.connect(my_mesh)
186184
>>> my_requested_location = str()
187185
>>> op.inputs.requested_location.connect(my_requested_location)
188-
>>> my_read_beams = bool()
189-
>>> op.inputs.read_beams.connect(my_read_beams)
190186
>>> my_split_shells = bool()
191187
>>> op.inputs.split_shells.connect(my_split_shells)
192188
>>> my_shell_layer = int()
@@ -202,7 +198,6 @@ class gasket_inelastic_closure(Operator):
202198
... bool_rotate_to_global=my_bool_rotate_to_global,
203199
... mesh=my_mesh,
204200
... requested_location=my_requested_location,
205-
... read_beams=my_read_beams,
206201
... split_shells=my_split_shells,
207202
... shell_layer=my_shell_layer,
208203
... )
@@ -221,7 +216,6 @@ def __init__(
221216
bool_rotate_to_global=None,
222217
mesh=None,
223218
requested_location=None,
224-
read_beams=None,
225219
split_shells=None,
226220
shell_layer=None,
227221
config=None,
@@ -246,8 +240,6 @@ def __init__(
246240
self.inputs.mesh.connect(mesh)
247241
if requested_location is not None:
248242
self.inputs.requested_location.connect(requested_location)
249-
if read_beams is not None:
250-
self.inputs.read_beams.connect(read_beams)
251243
if split_shells is not None:
252244
self.inputs.split_shells.connect(split_shells)
253245
if shell_layer is not None:
@@ -428,12 +420,6 @@ def _spec() -> Specification:
428420
optional=True,
429421
document=r"""requested location Nodal, Elemental or ElementalNodal""",
430422
),
431-
22: PinSpecification(
432-
name="read_beams",
433-
type_names=["bool"],
434-
optional=True,
435-
document=r"""elemental nodal beam results are read if this pin is set to true (default is false)""",
436-
),
437423
26: PinSpecification(
438424
name="split_shells",
439425
type_names=["bool"],
@@ -526,8 +512,6 @@ class InputsGasketInelasticClosure(_Inputs):
526512
>>> op.inputs.mesh.connect(my_mesh)
527513
>>> my_requested_location = str()
528514
>>> op.inputs.requested_location.connect(my_requested_location)
529-
>>> my_read_beams = bool()
530-
>>> op.inputs.read_beams.connect(my_read_beams)
531515
>>> my_split_shells = bool()
532516
>>> op.inputs.split_shells.connect(my_split_shells)
533517
>>> my_shell_layer = int()
@@ -566,10 +550,6 @@ def __init__(self, op: Operator):
566550
gasket_inelastic_closure._spec().input_pin(9), 9, op, -1
567551
)
568552
self._inputs.append(self._requested_location)
569-
self._read_beams = Input(
570-
gasket_inelastic_closure._spec().input_pin(22), 22, op, -1
571-
)
572-
self._inputs.append(self._read_beams)
573553
self._split_shells = Input(
574554
gasket_inelastic_closure._spec().input_pin(26), 26, op, -1
575555
)
@@ -747,27 +727,6 @@ def requested_location(self) -> Input:
747727
"""
748728
return self._requested_location
749729

750-
@property
751-
def read_beams(self) -> Input:
752-
r"""Allows to connect read_beams input to the operator.
753-
754-
elemental nodal beam results are read if this pin is set to true (default is false)
755-
756-
Returns
757-
-------
758-
input:
759-
An Input instance for this pin.
760-
761-
Examples
762-
--------
763-
>>> from ansys.dpf import core as dpf
764-
>>> op = dpf.operators.result.gasket_inelastic_closure()
765-
>>> op.inputs.read_beams.connect(my_read_beams)
766-
>>> # or
767-
>>> op.inputs.read_beams(my_read_beams)
768-
"""
769-
return self._read_beams
770-
771730
@property
772731
def split_shells(self) -> Input:
773732
r"""Allows to connect split_shells input to the operator.

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

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ class gasket_inelastic_closure_X(Operator):
4242
requested location, default is Nodal
4343
read_cyclic: int, optional
4444
if 0 cyclic symmetry is ignored, if 1 cyclic sector is read, if 2 cyclic expansion is done, if 3 cyclic expansion is done and stages are merged (default is 1)
45-
read_beams: bool, optional
46-
elemental nodal beam results are read if this pin is set to true (default is false)
4745
4846
Returns
4947
-------
@@ -75,8 +73,6 @@ class gasket_inelastic_closure_X(Operator):
7573
>>> op.inputs.requested_location.connect(my_requested_location)
7674
>>> my_read_cyclic = int()
7775
>>> op.inputs.read_cyclic.connect(my_read_cyclic)
78-
>>> my_read_beams = bool()
79-
>>> op.inputs.read_beams.connect(my_read_beams)
8076
8177
>>> # Instantiate operator and connect inputs in one line
8278
>>> op = dpf.operators.result.gasket_inelastic_closure_X(
@@ -89,7 +85,6 @@ class gasket_inelastic_closure_X(Operator):
8985
... mesh=my_mesh,
9086
... requested_location=my_requested_location,
9187
... read_cyclic=my_read_cyclic,
92-
... read_beams=my_read_beams,
9388
... )
9489
9590
>>> # Get output data
@@ -107,7 +102,6 @@ def __init__(
107102
mesh=None,
108103
requested_location=None,
109104
read_cyclic=None,
110-
read_beams=None,
111105
config=None,
112106
server=None,
113107
):
@@ -132,8 +126,6 @@ def __init__(
132126
self.inputs.requested_location.connect(requested_location)
133127
if read_cyclic is not None:
134128
self.inputs.read_cyclic.connect(read_cyclic)
135-
if read_beams is not None:
136-
self.inputs.read_beams.connect(read_beams)
137129

138130
@staticmethod
139131
def _spec() -> Specification:
@@ -206,12 +198,6 @@ def _spec() -> Specification:
206198
optional=True,
207199
document=r"""if 0 cyclic symmetry is ignored, if 1 cyclic sector is read, if 2 cyclic expansion is done, if 3 cyclic expansion is done and stages are merged (default is 1)""",
208200
),
209-
22: PinSpecification(
210-
name="read_beams",
211-
type_names=["bool"],
212-
optional=True,
213-
document=r"""elemental nodal beam results are read if this pin is set to true (default is false)""",
214-
),
215201
},
216202
map_output_pin_spec={
217203
0: PinSpecification(
@@ -294,8 +280,6 @@ class InputsGasketInelasticClosureX(_Inputs):
294280
>>> op.inputs.requested_location.connect(my_requested_location)
295281
>>> my_read_cyclic = int()
296282
>>> op.inputs.read_cyclic.connect(my_read_cyclic)
297-
>>> my_read_beams = bool()
298-
>>> op.inputs.read_beams.connect(my_read_beams)
299283
"""
300284

301285
def __init__(self, op: Operator):
@@ -334,10 +318,6 @@ def __init__(self, op: Operator):
334318
gasket_inelastic_closure_X._spec().input_pin(14), 14, op, -1
335319
)
336320
self._inputs.append(self._read_cyclic)
337-
self._read_beams = Input(
338-
gasket_inelastic_closure_X._spec().input_pin(22), 22, op, -1
339-
)
340-
self._inputs.append(self._read_beams)
341321

342322
@property
343323
def time_scoping(self) -> Input:
@@ -528,27 +508,6 @@ def read_cyclic(self) -> Input:
528508
"""
529509
return self._read_cyclic
530510

531-
@property
532-
def read_beams(self) -> Input:
533-
r"""Allows to connect read_beams input to the operator.
534-
535-
elemental nodal beam results are read if this pin is set to true (default is false)
536-
537-
Returns
538-
-------
539-
input:
540-
An Input instance for this pin.
541-
542-
Examples
543-
--------
544-
>>> from ansys.dpf import core as dpf
545-
>>> op = dpf.operators.result.gasket_inelastic_closure_X()
546-
>>> op.inputs.read_beams.connect(my_read_beams)
547-
>>> # or
548-
>>> op.inputs.read_beams(my_read_beams)
549-
"""
550-
return self._read_beams
551-
552511

553512
class OutputsGasketInelasticClosureX(_Outputs):
554513
"""Intermediate class used to get outputs from

0 commit comments

Comments
 (0)