Skip to content

Commit a3ea75c

Browse files
Update Operators for DPF 232 on master (#804)
Co-authored-by: PProfizi <[email protected]>
1 parent c2ad9f9 commit a3ea75c

File tree

185 files changed

+5616
-1570
lines changed

Some content is hidden

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

185 files changed

+5616
-1570
lines changed

docs/source/_static/dpf_entry.html

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

docs/source/_static/dpf_premium.html

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

src/ansys/dpf/core/operators/averaging/elemental_difference.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212

1313
class elemental_difference(Operator):
14-
"""Transform ElementalNodal or Nodal field into Elemental field. Each
15-
elemental value is the maximum difference between the computed
16-
result for all nodes in this element. Result is computed on a
17-
given element scoping.
14+
"""Transforms an Elemental Nodal or Nodal field into an Elemental field.
15+
Each elemental value is the maximum difference between the
16+
computed result for all nodes in this element. The result is
17+
computed on a given element scoping.
1818
1919
Parameters
2020
----------
@@ -25,9 +25,9 @@ class elemental_difference(Operator):
2525
Average only on these entities
2626
mesh : MeshedRegion, optional
2727
through_layers : bool, optional
28-
The max elemental difference is taken through
29-
the different shell layers if true
30-
(default is false)
28+
The maximum elemental difference is taken
29+
through the different shell layers if
30+
true (default is false).
3131
3232
3333
Examples
@@ -82,10 +82,10 @@ def __init__(
8282

8383
@staticmethod
8484
def _spec():
85-
description = """Transform ElementalNodal or Nodal field into Elemental field. Each
86-
elemental value is the maximum difference between the
87-
computed result for all nodes in this element. Result is
88-
computed on a given element scoping."""
85+
description = """Transforms an Elemental Nodal or Nodal field into an Elemental field.
86+
Each elemental value is the maximum difference between the
87+
computed result for all nodes in this element. The result
88+
is computed on a given element scoping."""
8989
spec = Specification(
9090
description=description,
9191
map_input_pin_spec={
@@ -112,9 +112,9 @@ def _spec():
112112
name="through_layers",
113113
type_names=["bool"],
114114
optional=True,
115-
document="""The max elemental difference is taken through
116-
the different shell layers if true
117-
(default is false)""",
115+
document="""The maximum elemental difference is taken
116+
through the different shell layers if
117+
true (default is false).""",
118118
),
119119
},
120120
map_output_pin_spec={
@@ -259,9 +259,9 @@ def mesh(self):
259259
def through_layers(self):
260260
"""Allows to connect through_layers input to the operator.
261261
262-
The max elemental difference is taken through
263-
the different shell layers if true
264-
(default is false)
262+
The maximum elemental difference is taken
263+
through the different shell layers if
264+
true (default is false).
265265
266266
Parameters
267267
----------

src/ansys/dpf/core/operators/averaging/elemental_difference_fc.py

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,31 @@
1111

1212

1313
class elemental_difference_fc(Operator):
14-
"""Transform ElementalNodal or Nodal field into Elemental field. Each
15-
elemental value is the maximum difference between the unaveraged
16-
or averaged (depending on the input fields) computed result for
17-
all nodes in this element. Result is computed on a given element
18-
scoping. If the input fields are mixed shell/solid and the shells
19-
layers are not asked to be collapsed, then the fields are split by
20-
element shape and the output fields container has elshape label.
14+
"""Transforms an Elemental Nodal or Nodal field into an Elemental field.
15+
Each elemental value is the maximum difference between the
16+
unaveraged or averaged (depending on the input fields) computed
17+
result for all nodes in this element. The result is computed on a
18+
given element scoping. If the input fields are mixed shell/solid,
19+
and the shell's layers are not specified as collapsed, then the
20+
fields are split by element shape and the output fields container
21+
has an elshape label.
2122
2223
Parameters
2324
----------
2425
fields_container : FieldsContainer
2526
mesh : MeshedRegion or MeshesContainer, optional
2627
The mesh region in this pin is used to
27-
perform the averaging, if there is no
28-
field's support it is used
28+
perform the averaging, used if there
29+
is no fields support.
2930
scoping : Scoping or ScopingsContainer, optional
30-
Average only on these elements, if it is
31+
Average only on these elements. if it is
3132
scoping container, the label must
3233
correspond to the one of the fields
33-
container
34+
container.
3435
collapse_shell_layers : bool, optional
35-
The max elemental difference is taken through
36-
the different shell layers if true
37-
(default is false)
36+
The maximum elemental difference is taken
37+
through the different shell layers if
38+
true (default is false).
3839
3940
4041
Examples
@@ -89,14 +90,15 @@ def __init__(
8990

9091
@staticmethod
9192
def _spec():
92-
description = """Transform ElementalNodal or Nodal field into Elemental field. Each
93-
elemental value is the maximum difference between the
93+
description = """Transforms an Elemental Nodal or Nodal field into an Elemental field.
94+
Each elemental value is the maximum difference between the
9495
unaveraged or averaged (depending on the input fields)
95-
computed result for all nodes in this element. Result is
96-
computed on a given element scoping. If the input fields
97-
are mixed shell/solid and the shells layers are not asked
98-
to be collapsed, then the fields are split by element
99-
shape and the output fields container has elshape label."""
96+
computed result for all nodes in this element. The result
97+
is computed on a given element scoping. If the input
98+
fields are mixed shell/solid, and the shell's layers are
99+
not specified as collapsed, then the fields are split by
100+
element shape and the output fields container has an
101+
elshape label."""
100102
spec = Specification(
101103
description=description,
102104
map_input_pin_spec={
@@ -111,25 +113,25 @@ def _spec():
111113
type_names=["abstract_meshed_region", "meshes_container"],
112114
optional=True,
113115
document="""The mesh region in this pin is used to
114-
perform the averaging, if there is no
115-
field's support it is used""",
116+
perform the averaging, used if there
117+
is no fields support.""",
116118
),
117119
3: PinSpecification(
118120
name="scoping",
119121
type_names=["scoping", "scopings_container"],
120122
optional=True,
121-
document="""Average only on these elements, if it is
123+
document="""Average only on these elements. if it is
122124
scoping container, the label must
123125
correspond to the one of the fields
124-
container""",
126+
container.""",
125127
),
126128
10: PinSpecification(
127129
name="collapse_shell_layers",
128130
type_names=["bool"],
129131
optional=True,
130-
document="""The max elemental difference is taken through
131-
the different shell layers if true
132-
(default is false)""",
132+
document="""The maximum elemental difference is taken
133+
through the different shell layers if
134+
true (default is false).""",
133135
),
134136
},
135137
map_output_pin_spec={
@@ -236,8 +238,8 @@ def mesh(self):
236238
"""Allows to connect mesh input to the operator.
237239
238240
The mesh region in this pin is used to
239-
perform the averaging, if there is no
240-
field's support it is used
241+
perform the averaging, used if there
242+
is no fields support.
241243
242244
Parameters
243245
----------
@@ -257,10 +259,10 @@ def mesh(self):
257259
def scoping(self):
258260
"""Allows to connect scoping input to the operator.
259261
260-
Average only on these elements, if it is
262+
Average only on these elements. if it is
261263
scoping container, the label must
262264
correspond to the one of the fields
263-
container
265+
container.
264266
265267
Parameters
266268
----------
@@ -280,9 +282,9 @@ def scoping(self):
280282
def collapse_shell_layers(self):
281283
"""Allows to connect collapse_shell_layers input to the operator.
282284
283-
The max elemental difference is taken through
284-
the different shell layers if true
285-
(default is false)
285+
The maximum elemental difference is taken
286+
through the different shell layers if
287+
true (default is false).
286288
287289
Parameters
288290
----------

src/ansys/dpf/core/operators/averaging/elemental_fraction_fc.py

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,33 @@
1111

1212

1313
class elemental_fraction_fc(Operator):
14-
"""Transform ElementalNodal fields into Elemental fields. Each elemental
15-
value is the fraction between the elemental difference and the
16-
entity average. Result is computed on a given elements scoping.
14+
"""Transforms Elemental Nodal fields into Elemental fields. Each
15+
elemental value is the fraction between the elemental difference
16+
and the entity average. The result is computed on a given
17+
element's scoping.
1718
1819
Parameters
1920
----------
2021
fields_container : FieldsContainer
2122
mesh : MeshedRegion, optional
2223
The mesh region in this pin is used to
23-
perform the averaging, if there is no
24-
field's support it is used
24+
perform the averaging. it is used if
25+
there is no fields support.
2526
scoping : Scoping, optional
26-
Average only on these elements, if it is
27+
Average only on these elements. if it is a
2728
scoping container, the label must
2829
correspond to the one of the fields
29-
container
30+
containers.
3031
denominator : FieldsContainer, optional
3132
If a fields container is set in this pin, it
3233
is used as the denominator of the
33-
fraction instead of entity_average_fc
34+
fraction instead of
35+
entity_average_fc.
3436
collapse_shell_layers : bool, optional
3537
The elemental difference and the entity
3638
average are taken through the
3739
different shell layers if true
38-
(default is false)
40+
(default is false).
3941
4042
4143
Examples
@@ -96,10 +98,10 @@ def __init__(
9698

9799
@staticmethod
98100
def _spec():
99-
description = """Transform ElementalNodal fields into Elemental fields. Each elemental
100-
value is the fraction between the elemental difference and
101-
the entity average. Result is computed on a given elements
102-
scoping."""
101+
description = """Transforms Elemental Nodal fields into Elemental fields. Each
102+
elemental value is the fraction between the elemental
103+
difference and the entity average. The result is computed
104+
on a given element's scoping."""
103105
spec = Specification(
104106
description=description,
105107
map_input_pin_spec={
@@ -114,25 +116,26 @@ def _spec():
114116
type_names=["abstract_meshed_region"],
115117
optional=True,
116118
document="""The mesh region in this pin is used to
117-
perform the averaging, if there is no
118-
field's support it is used""",
119+
perform the averaging. it is used if
120+
there is no fields support.""",
119121
),
120122
3: PinSpecification(
121123
name="scoping",
122124
type_names=["scoping"],
123125
optional=True,
124-
document="""Average only on these elements, if it is
126+
document="""Average only on these elements. if it is a
125127
scoping container, the label must
126128
correspond to the one of the fields
127-
container""",
129+
containers.""",
128130
),
129131
6: PinSpecification(
130132
name="denominator",
131133
type_names=["fields_container"],
132134
optional=True,
133135
document="""If a fields container is set in this pin, it
134136
is used as the denominator of the
135-
fraction instead of entity_average_fc""",
137+
fraction instead of
138+
entity_average_fc.""",
136139
),
137140
10: PinSpecification(
138141
name="collapse_shell_layers",
@@ -141,7 +144,7 @@ def _spec():
141144
document="""The elemental difference and the entity
142145
average are taken through the
143146
different shell layers if true
144-
(default is false)""",
147+
(default is false).""",
145148
),
146149
},
147150
map_output_pin_spec={
@@ -252,8 +255,8 @@ def mesh(self):
252255
"""Allows to connect mesh input to the operator.
253256
254257
The mesh region in this pin is used to
255-
perform the averaging, if there is no
256-
field's support it is used
258+
perform the averaging. it is used if
259+
there is no fields support.
257260
258261
Parameters
259262
----------
@@ -273,10 +276,10 @@ def mesh(self):
273276
def scoping(self):
274277
"""Allows to connect scoping input to the operator.
275278
276-
Average only on these elements, if it is
279+
Average only on these elements. if it is a
277280
scoping container, the label must
278281
correspond to the one of the fields
279-
container
282+
containers.
280283
281284
Parameters
282285
----------
@@ -298,7 +301,8 @@ def denominator(self):
298301
299302
If a fields container is set in this pin, it
300303
is used as the denominator of the
301-
fraction instead of entity_average_fc
304+
fraction instead of
305+
entity_average_fc.
302306
303307
Parameters
304308
----------
@@ -321,7 +325,7 @@ def collapse_shell_layers(self):
321325
The elemental difference and the entity
322326
average are taken through the
323327
different shell layers if true
324-
(default is false)
328+
(default is false).
325329
326330
Parameters
327331
----------

0 commit comments

Comments
 (0)