Skip to content

Commit 2d8ed7d

Browse files
authored
update operators
1 parent 6bed6a9 commit 2d8ed7d

22 files changed

+1839
-323
lines changed

docs/source/_static/dpf_operators.html

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

src/ansys/dpf/core/operators/filter/filtering_max_over_time.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ class filtering_max_over_time(Operator):
1818
----------
1919
invariant_fc_operator : str
2020
Name of the invariant operator to be used to
21-
calculate filter (avalailable:
22-
eqv_fc, invariants_deriv_fc,
23-
invariants_fc).
21+
calculate filter (available: eqv_fc,
22+
invariants_deriv_fc, invariants_fc).
2423
output_pin : int, optional
2524
Output pin of the invariant operator. default
2625
= 0.
@@ -94,9 +93,8 @@ def _spec():
9493
type_names=["string"],
9594
optional=False,
9695
document="""Name of the invariant operator to be used to
97-
calculate filter (avalailable:
98-
eqv_fc, invariants_deriv_fc,
99-
invariants_fc).""",
96+
calculate filter (available: eqv_fc,
97+
invariants_deriv_fc, invariants_fc).""",
10098
),
10199
1: PinSpecification(
102100
name="output_pin",
@@ -208,9 +206,8 @@ def invariant_fc_operator(self):
208206
"""Allows to connect invariant_fc_operator input to the operator.
209207
210208
Name of the invariant operator to be used to
211-
calculate filter (avalailable:
212-
eqv_fc, invariants_deriv_fc,
213-
invariants_fc).
209+
calculate filter (available: eqv_fc,
210+
invariants_deriv_fc, invariants_fc).
214211
215212
Parameters
216213
----------

src/ansys/dpf/core/operators/geo/element_nodal_contribution.py

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@
1111

1212

1313
class element_nodal_contribution(Operator):
14-
"""Compute the fraction of the volume attributed to each node of each
15-
element.
14+
"""Compute the fraction of the element measure attributed to each node of
15+
each element (fraction of the volume for 3D elements, fraction of
16+
the area for 2D elements or fraction of the length for 1D
17+
elements). It is computed by taking the integral of the shape
18+
function associated to each node within each element.
1619
1720
Parameters
1821
----------
@@ -21,10 +24,10 @@ class element_nodal_contribution(Operator):
2124
Integrate the input field over a specific
2225
scoping.
2326
volume_fraction : bool, optional
24-
If true, returns influence volume. if false,
25-
returns the influence volume fraction
26-
(for example, the integrated value of
27-
shape function for each node).
27+
If true, returns influence volume, area or
28+
length. if false, the values are
29+
normalized with the element volume,
30+
area or length. default: true.
2831
2932
3033
Examples
@@ -70,8 +73,12 @@ def __init__(
7073

7174
@staticmethod
7275
def _spec():
73-
description = """Compute the fraction of the volume attributed to each node of each
74-
element."""
76+
description = """Compute the fraction of the element measure attributed to each node of
77+
each element (fraction of the volume for 3D elements,
78+
fraction of the area for 2D elements or fraction of the
79+
length for 1D elements). It is computed by taking the
80+
integral of the shape function associated to each node
81+
within each element."""
7582
spec = Specification(
7683
description=description,
7784
map_input_pin_spec={
@@ -92,10 +99,10 @@ def _spec():
9299
name="volume_fraction",
93100
type_names=["bool"],
94101
optional=True,
95-
document="""If true, returns influence volume. if false,
96-
returns the influence volume fraction
97-
(for example, the integrated value of
98-
shape function for each node).""",
102+
document="""If true, returns influence volume, area or
103+
length. if false, the values are
104+
normalized with the element volume,
105+
area or length. default: true.""",
99106
),
100107
},
101108
map_output_pin_spec={
@@ -220,10 +227,10 @@ def scoping(self):
220227
def volume_fraction(self):
221228
"""Allows to connect volume_fraction input to the operator.
222229
223-
If true, returns influence volume. if false,
224-
returns the influence volume fraction
225-
(for example, the integrated value of
226-
shape function for each node).
230+
If true, returns influence volume, area or
231+
length. if false, the values are
232+
normalized with the element volume,
233+
area or length. default: true.
227234
228235
Parameters
229236
----------

src/ansys/dpf/core/operators/geo/integrate_over_elements.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ class integrate_over_elements(Operator):
2020
Integrate the input field over a specific
2121
scoping.
2222
mesh : MeshedRegion, optional
23-
Mesh to integrate on, if not provided the one
24-
from input field is provided.
23+
Mesh to integrate on. if not provided, the
24+
one from input field is employed.
2525
2626
2727
Examples
@@ -84,8 +84,8 @@ def _spec():
8484
name="mesh",
8585
type_names=["abstract_meshed_region"],
8686
optional=True,
87-
document="""Mesh to integrate on, if not provided the one
88-
from input field is provided.""",
87+
document="""Mesh to integrate on. if not provided, the
88+
one from input field is employed.""",
8989
),
9090
},
9191
map_output_pin_spec={
@@ -204,8 +204,8 @@ def scoping(self):
204204
def mesh(self):
205205
"""Allows to connect mesh input to the operator.
206206
207-
Mesh to integrate on, if not provided the one
208-
from input field is provided.
207+
Mesh to integrate on. if not provided, the
208+
one from input field is employed.
209209
210210
Parameters
211211
----------

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
from .component_transformer_fc import component_transformer_fc
77
from .descending_sort import descending_sort
88
from .descending_sort_fc import descending_sort_fc
9+
from .elementary_data_selector import elementary_data_selector
10+
from .elementary_data_selector_fc import elementary_data_selector_fc
911
from .enrich_materials import enrich_materials
10-
from .entity_selector import entity_selector
11-
from .entity_selector_fc import entity_selector_fc
1212
from .identical_fc import identical_fc
1313
from .identical_fields import identical_fields
1414
from .identical_meshes import identical_meshes

0 commit comments

Comments
 (0)