Skip to content

Commit afff511

Browse files
authored
Revert "update generated code (#1315)" (#1319)
This reverts commit e4beb43.
1 parent e4beb43 commit afff511

File tree

15 files changed

+58
-299
lines changed

15 files changed

+58
-299
lines changed

docs/source/_static/dpf_operators.html

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

src/ansys/dpf/core/operators/mapping/solid_to_skin.py

Lines changed: 3 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ class solid_to_skin(Operator):
1919
field : Field or FieldsContainer
2020
Field or fields container with only one field
2121
is expected
22-
mesh : MeshedRegion
22+
mesh : MeshedRegion, optional
2323
Skin mesh region expected
24-
solid_mesh : MeshedRegion, optional
25-
Solid mesh support (optional).
2624
2725
2826
Examples
@@ -37,32 +35,25 @@ class solid_to_skin(Operator):
3735
>>> op.inputs.field.connect(my_field)
3836
>>> my_mesh = dpf.MeshedRegion()
3937
>>> op.inputs.mesh.connect(my_mesh)
40-
>>> my_solid_mesh = dpf.MeshedRegion()
41-
>>> op.inputs.solid_mesh.connect(my_solid_mesh)
4238
4339
>>> # Instantiate operator and connect inputs in one line
4440
>>> op = dpf.operators.mapping.solid_to_skin(
4541
... field=my_field,
4642
... mesh=my_mesh,
47-
... solid_mesh=my_solid_mesh,
4843
... )
4944
5045
>>> # Get output data
5146
>>> result_field = op.outputs.field()
5247
"""
5348

54-
def __init__(
55-
self, field=None, mesh=None, solid_mesh=None, config=None, server=None
56-
):
49+
def __init__(self, field=None, mesh=None, config=None, server=None):
5750
super().__init__(name="solid_to_skin", config=config, server=server)
5851
self._inputs = InputsSolidToSkin(self)
5952
self._outputs = OutputsSolidToSkin(self)
6053
if field is not None:
6154
self.inputs.field.connect(field)
6255
if mesh is not None:
6356
self.inputs.mesh.connect(mesh)
64-
if solid_mesh is not None:
65-
self.inputs.solid_mesh.connect(solid_mesh)
6657

6758
@staticmethod
6859
def _spec():
@@ -81,14 +72,8 @@ def _spec():
8172
1: PinSpecification(
8273
name="mesh",
8374
type_names=["abstract_meshed_region"],
84-
optional=False,
85-
document="""Skin mesh region expected""",
86-
),
87-
2: PinSpecification(
88-
name="solid_mesh",
89-
type_names=["abstract_meshed_region"],
9075
optional=True,
91-
document="""Solid mesh support (optional).""",
76+
document="""Skin mesh region expected""",
9277
),
9378
},
9479
map_output_pin_spec={
@@ -151,8 +136,6 @@ class InputsSolidToSkin(_Inputs):
151136
>>> op.inputs.field.connect(my_field)
152137
>>> my_mesh = dpf.MeshedRegion()
153138
>>> op.inputs.mesh.connect(my_mesh)
154-
>>> my_solid_mesh = dpf.MeshedRegion()
155-
>>> op.inputs.solid_mesh.connect(my_solid_mesh)
156139
"""
157140

158141
def __init__(self, op: Operator):
@@ -161,8 +144,6 @@ def __init__(self, op: Operator):
161144
self._inputs.append(self._field)
162145
self._mesh = Input(solid_to_skin._spec().input_pin(1), 1, op, -1)
163146
self._inputs.append(self._mesh)
164-
self._solid_mesh = Input(solid_to_skin._spec().input_pin(2), 2, op, -1)
165-
self._inputs.append(self._solid_mesh)
166147

167148
@property
168149
def field(self):
@@ -205,26 +186,6 @@ def mesh(self):
205186
"""
206187
return self._mesh
207188

208-
@property
209-
def solid_mesh(self):
210-
"""Allows to connect solid_mesh input to the operator.
211-
212-
Solid mesh support (optional).
213-
214-
Parameters
215-
----------
216-
my_solid_mesh : MeshedRegion
217-
218-
Examples
219-
--------
220-
>>> from ansys.dpf import core as dpf
221-
>>> op = dpf.operators.mapping.solid_to_skin()
222-
>>> op.inputs.solid_mesh.connect(my_solid_mesh)
223-
>>> # or
224-
>>> op.inputs.solid_mesh(my_solid_mesh)
225-
"""
226-
return self._solid_mesh
227-
228189

229190
class OutputsSolidToSkin(_Outputs):
230191
"""Intermediate class used to get outputs from

src/ansys/dpf/core/operators/mapping/solid_to_skin_fc.py

Lines changed: 3 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ class solid_to_skin_fc(Operator):
1919
fields_container : FieldsContainer
2020
Field or fields container with only one field
2121
is expected
22-
mesh : MeshedRegion
22+
mesh : MeshedRegion, optional
2323
Skin mesh region expected
24-
solid_mesh : MeshedRegion, optional
25-
Solid mesh support (optional).
2624
2725
2826
Examples
@@ -37,37 +35,25 @@ class solid_to_skin_fc(Operator):
3735
>>> op.inputs.fields_container.connect(my_fields_container)
3836
>>> my_mesh = dpf.MeshedRegion()
3937
>>> op.inputs.mesh.connect(my_mesh)
40-
>>> my_solid_mesh = dpf.MeshedRegion()
41-
>>> op.inputs.solid_mesh.connect(my_solid_mesh)
4238
4339
>>> # Instantiate operator and connect inputs in one line
4440
>>> op = dpf.operators.mapping.solid_to_skin_fc(
4541
... fields_container=my_fields_container,
4642
... mesh=my_mesh,
47-
... solid_mesh=my_solid_mesh,
4843
... )
4944
5045
>>> # Get output data
5146
>>> result_fields_container = op.outputs.fields_container()
5247
"""
5348

54-
def __init__(
55-
self,
56-
fields_container=None,
57-
mesh=None,
58-
solid_mesh=None,
59-
config=None,
60-
server=None,
61-
):
49+
def __init__(self, fields_container=None, mesh=None, config=None, server=None):
6250
super().__init__(name="solid_to_skin_fc", config=config, server=server)
6351
self._inputs = InputsSolidToSkinFc(self)
6452
self._outputs = OutputsSolidToSkinFc(self)
6553
if fields_container is not None:
6654
self.inputs.fields_container.connect(fields_container)
6755
if mesh is not None:
6856
self.inputs.mesh.connect(mesh)
69-
if solid_mesh is not None:
70-
self.inputs.solid_mesh.connect(solid_mesh)
7157

7258
@staticmethod
7359
def _spec():
@@ -86,14 +72,8 @@ def _spec():
8672
1: PinSpecification(
8773
name="mesh",
8874
type_names=["abstract_meshed_region"],
89-
optional=False,
90-
document="""Skin mesh region expected""",
91-
),
92-
2: PinSpecification(
93-
name="solid_mesh",
94-
type_names=["abstract_meshed_region"],
9575
optional=True,
96-
document="""Solid mesh support (optional).""",
76+
document="""Skin mesh region expected""",
9777
),
9878
},
9979
map_output_pin_spec={
@@ -156,8 +136,6 @@ class InputsSolidToSkinFc(_Inputs):
156136
>>> op.inputs.fields_container.connect(my_fields_container)
157137
>>> my_mesh = dpf.MeshedRegion()
158138
>>> op.inputs.mesh.connect(my_mesh)
159-
>>> my_solid_mesh = dpf.MeshedRegion()
160-
>>> op.inputs.solid_mesh.connect(my_solid_mesh)
161139
"""
162140

163141
def __init__(self, op: Operator):
@@ -166,8 +144,6 @@ def __init__(self, op: Operator):
166144
self._inputs.append(self._fields_container)
167145
self._mesh = Input(solid_to_skin_fc._spec().input_pin(1), 1, op, -1)
168146
self._inputs.append(self._mesh)
169-
self._solid_mesh = Input(solid_to_skin_fc._spec().input_pin(2), 2, op, -1)
170-
self._inputs.append(self._solid_mesh)
171147

172148
@property
173149
def fields_container(self):
@@ -210,26 +186,6 @@ def mesh(self):
210186
"""
211187
return self._mesh
212188

213-
@property
214-
def solid_mesh(self):
215-
"""Allows to connect solid_mesh input to the operator.
216-
217-
Solid mesh support (optional).
218-
219-
Parameters
220-
----------
221-
my_solid_mesh : MeshedRegion
222-
223-
Examples
224-
--------
225-
>>> from ansys.dpf import core as dpf
226-
>>> op = dpf.operators.mapping.solid_to_skin_fc()
227-
>>> op.inputs.solid_mesh.connect(my_solid_mesh)
228-
>>> # or
229-
>>> op.inputs.solid_mesh(my_solid_mesh)
230-
"""
231-
return self._solid_mesh
232-
233189

234190
class OutputsSolidToSkinFc(_Outputs):
235191
"""Intermediate class used to get outputs from

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ class mesh_provider(Operator):
5151
read and a workflow will be bounded
5252
to the properties to be evaluated on
5353
demand, with 0 they are read (default
54-
is 0). - "all_available_properties"
55-
option set to 0 will return all
56-
possible properties
54+
is 0).
5755
5856
5957
Examples
@@ -183,9 +181,7 @@ def _spec():
183181
read and a workflow will be bounded
184182
to the properties to be evaluated on
185183
demand, with 0 they are read (default
186-
is 0). - "all_available_properties"
187-
option set to 0 will return all
188-
possible properties""",
184+
is 0).""",
189185
),
190186
},
191187
map_output_pin_spec={
@@ -402,9 +398,7 @@ def laziness(self):
402398
read and a workflow will be bounded
403399
to the properties to be evaluated on
404400
demand, with 0 they are read (default
405-
is 0). - "all_available_properties"
406-
option set to 0 will return all
407-
possible properties
401+
is 0).
408402
409403
Parameters
410404
----------

0 commit comments

Comments
 (0)