Skip to content

Commit 26bf2d2

Browse files
authored
update generated code
1 parent 97a502c commit 26bf2d2

File tree

6 files changed

+45
-1
lines changed

6 files changed

+45
-1
lines changed

doc/source/_static/dpf_operators.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/ansys/dpf/core/operators/mesh/skin.py

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ class skin(Operator):
2929
mesh shell elements (boolean = 1) are
3030
duplicated, one per each orientation,
3131
or (boolean = 0) remain unchanged.
32+
add_beam : bool, optional
33+
If input mesh contains beam elements, output
34+
mesh beam elements (boolean = 1) are
35+
added or (boolean = 0) are ignored.
3236
3337
3438
Examples
@@ -45,12 +49,15 @@ class skin(Operator):
4549
>>> op.inputs.mesh_scoping.connect(my_mesh_scoping)
4650
>>> my_duplicate_shell = bool()
4751
>>> op.inputs.duplicate_shell.connect(my_duplicate_shell)
52+
>>> my_add_beam = bool()
53+
>>> op.inputs.add_beam.connect(my_add_beam)
4854
4955
>>> # Instantiate operator and connect inputs in one line
5056
>>> op = dpf.operators.mesh.skin(
5157
... mesh=my_mesh,
5258
... mesh_scoping=my_mesh_scoping,
5359
... duplicate_shell=my_duplicate_shell,
60+
... add_beam=my_add_beam,
5461
... )
5562
5663
>>> # Get output data
@@ -66,6 +73,7 @@ def __init__(
6673
mesh=None,
6774
mesh_scoping=None,
6875
duplicate_shell=None,
76+
add_beam=None,
6977
config=None,
7078
server=None,
7179
):
@@ -78,6 +86,8 @@ def __init__(
7886
self.inputs.mesh_scoping.connect(mesh_scoping)
7987
if duplicate_shell is not None:
8088
self.inputs.duplicate_shell.connect(duplicate_shell)
89+
if add_beam is not None:
90+
self.inputs.add_beam.connect(add_beam)
8191

8292
@staticmethod
8393
def _spec():
@@ -111,6 +121,14 @@ def _spec():
111121
duplicated, one per each orientation,
112122
or (boolean = 0) remain unchanged.""",
113123
),
124+
3: PinSpecification(
125+
name="add_beam",
126+
type_names=["bool"],
127+
optional=True,
128+
document="""If input mesh contains beam elements, output
129+
mesh beam elements (boolean = 1) are
130+
added or (boolean = 0) are ignored.""",
131+
),
114132
},
115133
map_output_pin_spec={
116134
0: PinSpecification(
@@ -210,6 +228,8 @@ class InputsSkin(_Inputs):
210228
>>> op.inputs.mesh_scoping.connect(my_mesh_scoping)
211229
>>> my_duplicate_shell = bool()
212230
>>> op.inputs.duplicate_shell.connect(my_duplicate_shell)
231+
>>> my_add_beam = bool()
232+
>>> op.inputs.add_beam.connect(my_add_beam)
213233
"""
214234

215235
def __init__(self, op: Operator):
@@ -220,6 +240,8 @@ def __init__(self, op: Operator):
220240
self._inputs.append(self._mesh_scoping)
221241
self._duplicate_shell = Input(skin._spec().input_pin(2), 2, op, -1)
222242
self._inputs.append(self._duplicate_shell)
243+
self._add_beam = Input(skin._spec().input_pin(3), 3, op, -1)
244+
self._inputs.append(self._add_beam)
223245

224246
@property
225247
def mesh(self):
@@ -286,6 +308,28 @@ def duplicate_shell(self):
286308
"""
287309
return self._duplicate_shell
288310

311+
@property
312+
def add_beam(self):
313+
"""Allows to connect add_beam input to the operator.
314+
315+
If input mesh contains beam elements, output
316+
mesh beam elements (boolean = 1) are
317+
added or (boolean = 0) are ignored.
318+
319+
Parameters
320+
----------
321+
my_add_beam : bool
322+
323+
Examples
324+
--------
325+
>>> from ansys.dpf import core as dpf
326+
>>> op = dpf.operators.mesh.skin()
327+
>>> op.inputs.add_beam.connect(my_add_beam)
328+
>>> # or
329+
>>> op.inputs.add_beam(my_add_beam)
330+
"""
331+
return self._add_beam
332+
289333

290334
class OutputsSkin(_Outputs):
291335
"""Intermediate class used to get outputs from
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
7.41 KB
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)