Skip to content

Commit e6ab1f2

Browse files
PProfizigithub-actions[bot]
authored andcommitted
update generated code
1 parent 8fa9465 commit e6ab1f2

30 files changed

+338
-1121
lines changed

doc/source/_static/dpf_operators.html

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

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

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717

1818
class creep_strain_intensity(Operator):
1919
r"""Reads/computes element nodal component creep strains, average it on
20-
nodes (by default) and computes its invariants.
20+
nodes (by default) and computes its invariants. This operation is
21+
independent of the coordinate system, thus, rotation to global will be
22+
avoided unless averaging is requested since averaging across elements
23+
needs a shared coordinate system.
2124
2225
2326
Parameters
@@ -32,8 +35,6 @@ class creep_strain_intensity(Operator):
3235
result file container allowed to be kept open to cache data
3336
data_sources: DataSources
3437
result file path container, used if no streams are set
35-
bool_rotate_to_global: bool, optional
36-
if true the field is rotated to global coordinate system (default true)
3738
mesh: MeshedRegion or MeshesContainer, optional
3839
prevents from reading the mesh in the result files
3940
requested_location: str, optional
@@ -64,8 +65,6 @@ class creep_strain_intensity(Operator):
6465
>>> op.inputs.streams_container.connect(my_streams_container)
6566
>>> my_data_sources = dpf.DataSources()
6667
>>> op.inputs.data_sources.connect(my_data_sources)
67-
>>> my_bool_rotate_to_global = bool()
68-
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
6968
>>> my_mesh = dpf.MeshedRegion()
7069
>>> op.inputs.mesh.connect(my_mesh)
7170
>>> my_requested_location = str()
@@ -82,7 +81,6 @@ class creep_strain_intensity(Operator):
8281
... fields_container=my_fields_container,
8382
... streams_container=my_streams_container,
8483
... data_sources=my_data_sources,
85-
... bool_rotate_to_global=my_bool_rotate_to_global,
8684
... mesh=my_mesh,
8785
... requested_location=my_requested_location,
8886
... read_cyclic=my_read_cyclic,
@@ -100,7 +98,6 @@ def __init__(
10098
fields_container=None,
10199
streams_container=None,
102100
data_sources=None,
103-
bool_rotate_to_global=None,
104101
mesh=None,
105102
requested_location=None,
106103
read_cyclic=None,
@@ -121,8 +118,6 @@ def __init__(
121118
self.inputs.streams_container.connect(streams_container)
122119
if data_sources is not None:
123120
self.inputs.data_sources.connect(data_sources)
124-
if bool_rotate_to_global is not None:
125-
self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global)
126121
if mesh is not None:
127122
self.inputs.mesh.connect(mesh)
128123
if requested_location is not None:
@@ -135,7 +130,10 @@ def __init__(
135130
@staticmethod
136131
def _spec() -> Specification:
137132
description = r"""Reads/computes element nodal component creep strains, average it on
138-
nodes (by default) and computes its invariants.
133+
nodes (by default) and computes its invariants. This operation is
134+
independent of the coordinate system, thus, rotation to global will be
135+
avoided unless averaging is requested since averaging across elements
136+
needs a shared coordinate system.
139137
"""
140138
spec = Specification(
141139
description=description,
@@ -177,12 +175,6 @@ def _spec() -> Specification:
177175
optional=False,
178176
document=r"""result file path container, used if no streams are set""",
179177
),
180-
5: PinSpecification(
181-
name="bool_rotate_to_global",
182-
type_names=["bool"],
183-
optional=True,
184-
document=r"""if true the field is rotated to global coordinate system (default true)""",
185-
),
186178
7: PinSpecification(
187179
name="mesh",
188180
type_names=["abstract_meshed_region", "meshes_container"],
@@ -281,8 +273,6 @@ class InputsCreepStrainIntensity(_Inputs):
281273
>>> op.inputs.streams_container.connect(my_streams_container)
282274
>>> my_data_sources = dpf.DataSources()
283275
>>> op.inputs.data_sources.connect(my_data_sources)
284-
>>> my_bool_rotate_to_global = bool()
285-
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
286276
>>> my_mesh = dpf.MeshedRegion()
287277
>>> op.inputs.mesh.connect(my_mesh)
288278
>>> my_requested_location = str()
@@ -315,10 +305,6 @@ def __init__(self, op: Operator):
315305
creep_strain_intensity._spec().input_pin(4), 4, op, -1
316306
)
317307
self._inputs.append(self._data_sources)
318-
self._bool_rotate_to_global = Input(
319-
creep_strain_intensity._spec().input_pin(5), 5, op, -1
320-
)
321-
self._inputs.append(self._bool_rotate_to_global)
322308
self._mesh = Input(creep_strain_intensity._spec().input_pin(7), 7, op, -1)
323309
self._inputs.append(self._mesh)
324310
self._requested_location = Input(
@@ -439,27 +425,6 @@ def data_sources(self) -> Input:
439425
"""
440426
return self._data_sources
441427

442-
@property
443-
def bool_rotate_to_global(self) -> Input:
444-
r"""Allows to connect bool_rotate_to_global input to the operator.
445-
446-
if true the field is rotated to global coordinate system (default true)
447-
448-
Returns
449-
-------
450-
input:
451-
An Input instance for this pin.
452-
453-
Examples
454-
--------
455-
>>> from ansys.dpf import core as dpf
456-
>>> op = dpf.operators.result.creep_strain_intensity()
457-
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
458-
>>> # or
459-
>>> op.inputs.bool_rotate_to_global(my_bool_rotate_to_global)
460-
"""
461-
return self._bool_rotate_to_global
462-
463428
@property
464429
def mesh(self) -> Input:
465430
r"""Allows to connect mesh input to the operator.

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

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717

1818
class creep_strain_max_shear(Operator):
1919
r"""Reads/computes element nodal component creep strains, average it on
20-
nodes (by default) and computes its invariants.
20+
nodes (by default) and computes its invariants. This operation is
21+
independent of the coordinate system, thus, rotation to global will be
22+
avoided unless averaging is requested since averaging across elements
23+
needs a shared coordinate system.
2124
2225
2326
Parameters
@@ -32,8 +35,6 @@ class creep_strain_max_shear(Operator):
3235
result file container allowed to be kept open to cache data
3336
data_sources: DataSources
3437
result file path container, used if no streams are set
35-
bool_rotate_to_global: bool, optional
36-
if true the field is rotated to global coordinate system (default true)
3738
mesh: MeshedRegion or MeshesContainer, optional
3839
prevents from reading the mesh in the result files
3940
requested_location: str, optional
@@ -64,8 +65,6 @@ class creep_strain_max_shear(Operator):
6465
>>> op.inputs.streams_container.connect(my_streams_container)
6566
>>> my_data_sources = dpf.DataSources()
6667
>>> op.inputs.data_sources.connect(my_data_sources)
67-
>>> my_bool_rotate_to_global = bool()
68-
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
6968
>>> my_mesh = dpf.MeshedRegion()
7069
>>> op.inputs.mesh.connect(my_mesh)
7170
>>> my_requested_location = str()
@@ -82,7 +81,6 @@ class creep_strain_max_shear(Operator):
8281
... fields_container=my_fields_container,
8382
... streams_container=my_streams_container,
8483
... data_sources=my_data_sources,
85-
... bool_rotate_to_global=my_bool_rotate_to_global,
8684
... mesh=my_mesh,
8785
... requested_location=my_requested_location,
8886
... read_cyclic=my_read_cyclic,
@@ -100,7 +98,6 @@ def __init__(
10098
fields_container=None,
10199
streams_container=None,
102100
data_sources=None,
103-
bool_rotate_to_global=None,
104101
mesh=None,
105102
requested_location=None,
106103
read_cyclic=None,
@@ -121,8 +118,6 @@ def __init__(
121118
self.inputs.streams_container.connect(streams_container)
122119
if data_sources is not None:
123120
self.inputs.data_sources.connect(data_sources)
124-
if bool_rotate_to_global is not None:
125-
self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global)
126121
if mesh is not None:
127122
self.inputs.mesh.connect(mesh)
128123
if requested_location is not None:
@@ -135,7 +130,10 @@ def __init__(
135130
@staticmethod
136131
def _spec() -> Specification:
137132
description = r"""Reads/computes element nodal component creep strains, average it on
138-
nodes (by default) and computes its invariants.
133+
nodes (by default) and computes its invariants. This operation is
134+
independent of the coordinate system, thus, rotation to global will be
135+
avoided unless averaging is requested since averaging across elements
136+
needs a shared coordinate system.
139137
"""
140138
spec = Specification(
141139
description=description,
@@ -177,12 +175,6 @@ def _spec() -> Specification:
177175
optional=False,
178176
document=r"""result file path container, used if no streams are set""",
179177
),
180-
5: PinSpecification(
181-
name="bool_rotate_to_global",
182-
type_names=["bool"],
183-
optional=True,
184-
document=r"""if true the field is rotated to global coordinate system (default true)""",
185-
),
186178
7: PinSpecification(
187179
name="mesh",
188180
type_names=["abstract_meshed_region", "meshes_container"],
@@ -281,8 +273,6 @@ class InputsCreepStrainMaxShear(_Inputs):
281273
>>> op.inputs.streams_container.connect(my_streams_container)
282274
>>> my_data_sources = dpf.DataSources()
283275
>>> op.inputs.data_sources.connect(my_data_sources)
284-
>>> my_bool_rotate_to_global = bool()
285-
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
286276
>>> my_mesh = dpf.MeshedRegion()
287277
>>> op.inputs.mesh.connect(my_mesh)
288278
>>> my_requested_location = str()
@@ -315,10 +305,6 @@ def __init__(self, op: Operator):
315305
creep_strain_max_shear._spec().input_pin(4), 4, op, -1
316306
)
317307
self._inputs.append(self._data_sources)
318-
self._bool_rotate_to_global = Input(
319-
creep_strain_max_shear._spec().input_pin(5), 5, op, -1
320-
)
321-
self._inputs.append(self._bool_rotate_to_global)
322308
self._mesh = Input(creep_strain_max_shear._spec().input_pin(7), 7, op, -1)
323309
self._inputs.append(self._mesh)
324310
self._requested_location = Input(
@@ -439,27 +425,6 @@ def data_sources(self) -> Input:
439425
"""
440426
return self._data_sources
441427

442-
@property
443-
def bool_rotate_to_global(self) -> Input:
444-
r"""Allows to connect bool_rotate_to_global input to the operator.
445-
446-
if true the field is rotated to global coordinate system (default true)
447-
448-
Returns
449-
-------
450-
input:
451-
An Input instance for this pin.
452-
453-
Examples
454-
--------
455-
>>> from ansys.dpf import core as dpf
456-
>>> op = dpf.operators.result.creep_strain_max_shear()
457-
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
458-
>>> # or
459-
>>> op.inputs.bool_rotate_to_global(my_bool_rotate_to_global)
460-
"""
461-
return self._bool_rotate_to_global
462-
463428
@property
464429
def mesh(self) -> Input:
465430
r"""Allows to connect mesh input to the operator.

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

Lines changed: 10 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@
1818
class creep_strain_principal_1(Operator):
1919
r"""Read/compute element nodal component creep strains 1st principal
2020
component by calling the readers defined by the datasources and
21-
computing its eigen values. The off-diagonal strains are first converted
22-
from Voigt notation to the standard strain values.
21+
computing its eigen values. This operation is independent of the
22+
coordinate system, thus, rotation to global will be avoided unless
23+
averaging is requested since averaging across elements need a shared
24+
coordinate system. The off-diagonal strains are first converted from
25+
Voigt notation to the standard strain values.
2326
2427
2528
Parameters
@@ -34,8 +37,6 @@ class creep_strain_principal_1(Operator):
3437
result file container allowed to be kept open to cache data
3538
data_sources: DataSources
3639
result file path container, used if no streams are set
37-
bool_rotate_to_global: bool, optional
38-
if true the field is rotated to global coordinate system (default true)
3940
mesh: MeshedRegion or MeshesContainer, optional
4041
prevents from reading the mesh in the result files
4142
requested_location: str, optional
@@ -66,8 +67,6 @@ class creep_strain_principal_1(Operator):
6667
>>> op.inputs.streams_container.connect(my_streams_container)
6768
>>> my_data_sources = dpf.DataSources()
6869
>>> op.inputs.data_sources.connect(my_data_sources)
69-
>>> my_bool_rotate_to_global = bool()
70-
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
7170
>>> my_mesh = dpf.MeshedRegion()
7271
>>> op.inputs.mesh.connect(my_mesh)
7372
>>> my_requested_location = str()
@@ -84,7 +83,6 @@ class creep_strain_principal_1(Operator):
8483
... fields_container=my_fields_container,
8584
... streams_container=my_streams_container,
8685
... data_sources=my_data_sources,
87-
... bool_rotate_to_global=my_bool_rotate_to_global,
8886
... mesh=my_mesh,
8987
... requested_location=my_requested_location,
9088
... read_cyclic=my_read_cyclic,
@@ -102,7 +100,6 @@ def __init__(
102100
fields_container=None,
103101
streams_container=None,
104102
data_sources=None,
105-
bool_rotate_to_global=None,
106103
mesh=None,
107104
requested_location=None,
108105
read_cyclic=None,
@@ -123,8 +120,6 @@ def __init__(
123120
self.inputs.streams_container.connect(streams_container)
124121
if data_sources is not None:
125122
self.inputs.data_sources.connect(data_sources)
126-
if bool_rotate_to_global is not None:
127-
self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global)
128123
if mesh is not None:
129124
self.inputs.mesh.connect(mesh)
130125
if requested_location is not None:
@@ -138,8 +133,11 @@ def __init__(
138133
def _spec() -> Specification:
139134
description = r"""Read/compute element nodal component creep strains 1st principal
140135
component by calling the readers defined by the datasources and
141-
computing its eigen values. The off-diagonal strains are first converted
142-
from Voigt notation to the standard strain values.
136+
computing its eigen values. This operation is independent of the
137+
coordinate system, thus, rotation to global will be avoided unless
138+
averaging is requested since averaging across elements need a shared
139+
coordinate system. The off-diagonal strains are first converted from
140+
Voigt notation to the standard strain values.
143141
"""
144142
spec = Specification(
145143
description=description,
@@ -181,12 +179,6 @@ def _spec() -> Specification:
181179
optional=False,
182180
document=r"""result file path container, used if no streams are set""",
183181
),
184-
5: PinSpecification(
185-
name="bool_rotate_to_global",
186-
type_names=["bool"],
187-
optional=True,
188-
document=r"""if true the field is rotated to global coordinate system (default true)""",
189-
),
190182
7: PinSpecification(
191183
name="mesh",
192184
type_names=["abstract_meshed_region", "meshes_container"],
@@ -285,8 +277,6 @@ class InputsCreepStrainPrincipal1(_Inputs):
285277
>>> op.inputs.streams_container.connect(my_streams_container)
286278
>>> my_data_sources = dpf.DataSources()
287279
>>> op.inputs.data_sources.connect(my_data_sources)
288-
>>> my_bool_rotate_to_global = bool()
289-
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
290280
>>> my_mesh = dpf.MeshedRegion()
291281
>>> op.inputs.mesh.connect(my_mesh)
292282
>>> my_requested_location = str()
@@ -319,10 +309,6 @@ def __init__(self, op: Operator):
319309
creep_strain_principal_1._spec().input_pin(4), 4, op, -1
320310
)
321311
self._inputs.append(self._data_sources)
322-
self._bool_rotate_to_global = Input(
323-
creep_strain_principal_1._spec().input_pin(5), 5, op, -1
324-
)
325-
self._inputs.append(self._bool_rotate_to_global)
326312
self._mesh = Input(creep_strain_principal_1._spec().input_pin(7), 7, op, -1)
327313
self._inputs.append(self._mesh)
328314
self._requested_location = Input(
@@ -443,27 +429,6 @@ def data_sources(self) -> Input:
443429
"""
444430
return self._data_sources
445431

446-
@property
447-
def bool_rotate_to_global(self) -> Input:
448-
r"""Allows to connect bool_rotate_to_global input to the operator.
449-
450-
if true the field is rotated to global coordinate system (default true)
451-
452-
Returns
453-
-------
454-
input:
455-
An Input instance for this pin.
456-
457-
Examples
458-
--------
459-
>>> from ansys.dpf import core as dpf
460-
>>> op = dpf.operators.result.creep_strain_principal_1()
461-
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
462-
>>> # or
463-
>>> op.inputs.bool_rotate_to_global(my_bool_rotate_to_global)
464-
"""
465-
return self._bool_rotate_to_global
466-
467432
@property
468433
def mesh(self) -> Input:
469434
r"""Allows to connect mesh input to the operator.

0 commit comments

Comments
 (0)