Skip to content

Commit 8f39b6f

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

File tree

9 files changed

+326
-21
lines changed

9 files changed

+326
-21
lines changed

doc/source/_static/dpf_operators.html

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from .extract_time_freq import extract_time_freq
1919
from .fc_get_attribute import fc_get_attribute
2020
from .field import field
21+
from .field_clone_to_shell_layer import field_clone_to_shell_layer
2122
from .field_get_attribute import field_get_attribute
2223
from .field_to_fc import field_to_fc
2324
from .fields_container import fields_container

src/ansys/dpf/core/operators/utility/change_shell_layers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class change_shell_layers(Operator):
3434
mesh: MeshedRegion or MeshesContainer, optional
3535
Mesh support of the input fields_container, in case it does not have one defined. If the fields_container contains mixed shell/solid results, the mesh is required (either by connecting this pin or in the support).
3636
merge: bool, optional
37-
For shell/solid mixed fields, group in the same field all solids and shells (false by default).
37+
For fields with mixed shell layers (solid/shell elements with heterogeneous shell layers), group all of them in the same field (false by default).
3838
3939
Returns
4040
-------
@@ -125,7 +125,7 @@ def _spec() -> Specification:
125125
name="merge",
126126
type_names=["bool"],
127127
optional=True,
128-
document=r"""For shell/solid mixed fields, group in the same field all solids and shells (false by default).""",
128+
document=r"""For fields with mixed shell layers (solid/shell elements with heterogeneous shell layers), group all of them in the same field (false by default).""",
129129
),
130130
},
131131
map_output_pin_spec={
@@ -279,7 +279,7 @@ def mesh(self) -> Input:
279279
def merge(self) -> Input:
280280
r"""Allows to connect merge input to the operator.
281281
282-
For shell/solid mixed fields, group in the same field all solids and shells (false by default).
282+
For fields with mixed shell layers (solid/shell elements with heterogeneous shell layers), group all of them in the same field (false by default).
283283
284284
Returns
285285
-------

src/ansys/dpf/core/operators/utility/fc_get_attribute.py

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@
1717

1818

1919
class fc_get_attribute(Operator):
20-
r"""Uses the FieldsContainer APIs to return a given attribute of the mesh in
21-
input.
20+
r"""Uses the FieldsContainer APIs to return a given attribute of the fields
21+
container in input.
2222
2323
2424
Parameters
2525
----------
2626
fields_container: FieldsContainer
2727
property_name: str
28-
Supported property names are: "label_scoping", "label_values", "time_freq_support", "labels", "field_scoping" .
28+
Supported property names are: "label_scoping", "label_values", "time_freq_support", "labels", "field_scoping" and "field".
2929
property_identifier: str or int, optional
30-
Additional pin for some property : the label name for "label_scoping" or "label_values", the field index (default 0) for "field_scoping".
30+
Additional pin for some property : the label name for "label_scoping" or "label_values", the field index (default 0) for "field_scoping" or "field".
3131
3232
Returns
3333
-------
34-
property: Scoping or TimeFreqSupport or dict
35-
Returns a Scoping for property: "label_scoping", a vector of int for "label_values", a time freq support for "time_freq_support", a vector of string for "labels", a LabelSpace for "field_scoping".
34+
property: Scoping or TimeFreqSupport or dict or Field
35+
Returns a Scoping for property: "label_scoping", a vector of int for "label_values", a time freq support for "time_freq_support", a vector of string for "labels", a LabelSpace for "field_scoping" and a "field" for "field".
3636
3737
Examples
3838
--------
@@ -82,8 +82,8 @@ def __init__(
8282

8383
@staticmethod
8484
def _spec() -> Specification:
85-
description = r"""Uses the FieldsContainer APIs to return a given attribute of the mesh in
86-
input.
85+
description = r"""Uses the FieldsContainer APIs to return a given attribute of the fields
86+
container in input.
8787
"""
8888
spec = Specification(
8989
description=description,
@@ -98,13 +98,13 @@ def _spec() -> Specification:
9898
name="property_name",
9999
type_names=["string"],
100100
optional=False,
101-
document=r"""Supported property names are: "label_scoping", "label_values", "time_freq_support", "labels", "field_scoping" .""",
101+
document=r"""Supported property names are: "label_scoping", "label_values", "time_freq_support", "labels", "field_scoping" and "field".""",
102102
),
103103
2: PinSpecification(
104104
name="property_identifier",
105105
type_names=["string", "int32"],
106106
optional=True,
107-
document=r"""Additional pin for some property : the label name for "label_scoping" or "label_values", the field index (default 0) for "field_scoping".""",
107+
document=r"""Additional pin for some property : the label name for "label_scoping" or "label_values", the field index (default 0) for "field_scoping" or "field".""",
108108
),
109109
},
110110
map_output_pin_spec={
@@ -116,9 +116,10 @@ def _spec() -> Specification:
116116
"time_freq_support",
117117
"vector<string>",
118118
"label_space",
119+
"field",
119120
],
120121
optional=False,
121-
document=r"""Returns a Scoping for property: "label_scoping", a vector of int for "label_values", a time freq support for "time_freq_support", a vector of string for "labels", a LabelSpace for "field_scoping".""",
122+
document=r"""Returns a Scoping for property: "label_scoping", a vector of int for "label_values", a time freq support for "time_freq_support", a vector of string for "labels", a LabelSpace for "field_scoping" and a "field" for "field".""",
122123
),
123124
},
124125
)
@@ -220,7 +221,7 @@ def fields_container(self) -> Input:
220221
def property_name(self) -> Input:
221222
r"""Allows to connect property_name input to the operator.
222223
223-
Supported property names are: "label_scoping", "label_values", "time_freq_support", "labels", "field_scoping" .
224+
Supported property names are: "label_scoping", "label_values", "time_freq_support", "labels", "field_scoping" and "field".
224225
225226
Returns
226227
-------
@@ -241,7 +242,7 @@ def property_name(self) -> Input:
241242
def property_identifier(self) -> Input:
242243
r"""Allows to connect property_identifier input to the operator.
243244
244-
Additional pin for some property : the label name for "label_scoping" or "label_values", the field index (default 0) for "field_scoping".
245+
Additional pin for some property : the label name for "label_scoping" or "label_values", the field index (default 0) for "field_scoping" or "field".
245246
246247
Returns
247248
-------
@@ -313,3 +314,11 @@ def __init__(self, op: Operator):
313314
op,
314315
)
315316
self._outputs.append(self.property_as_label_space)
317+
self.property_as_field = Output(
318+
_modify_output_spec_with_one_type(
319+
fc_get_attribute._spec().output_pin(0), "field"
320+
),
321+
0,
322+
op,
323+
)
324+
self._outputs.append(self.property_as_field)

0 commit comments

Comments
 (0)