Skip to content

Commit 2214c1e

Browse files
committed
changed details RANS
1 parent b3e537c commit 2214c1e

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

ceasiompy/CPACS2GMSH/__specs__.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
xpath=GMSH_N_POWER_FACTOR_XPATH,
189189
gui=INCLUDE_GUI,
190190
gui_name="n power factor",
191-
gui_group="Advanced Euler mesh parameters",
191+
gui_group="Advanced mesh parameters",
192192
)
193193

194194
cpacs_inout.add_input(
@@ -200,7 +200,7 @@
200200
xpath=GMSH_N_POWER_FIELD_XPATH,
201201
gui=INCLUDE_GUI,
202202
gui_name="n power field",
203-
gui_group="Advanced Euler mesh parameters",
203+
gui_group="Advanced mesh parameters",
204204
)
205205

206206
cpacs_inout.add_input(
@@ -212,7 +212,7 @@
212212
xpath=GMSH_REFINE_FACTOR_XPATH,
213213
gui=INCLUDE_GUI,
214214
gui_name="LE/TE refinement factor",
215-
gui_group="Advanced Euler mesh parameters",
215+
gui_group="Advanced mesh parameters",
216216
)
217217

218218
cpacs_inout.add_input(
@@ -224,7 +224,7 @@
224224
xpath=GMSH_REFINE_TRUNCATED_XPATH,
225225
gui=INCLUDE_GUI,
226226
gui_name="Refine truncated TE",
227-
gui_group="Advanced Euler mesh parameters",
227+
gui_group="Advanced mesh parameters",
228228
)
229229

230230
cpacs_inout.add_input(
@@ -237,7 +237,7 @@
237237
xpath=GMSH_AUTO_REFINE_XPATH,
238238
gui=INCLUDE_GUI,
239239
gui_name="Auto refine",
240-
gui_group="Advanced Euler mesh parameters",
240+
gui_group="Advanced mesh parameters",
241241
)
242242

243243
cpacs_inout.add_input(
@@ -249,7 +249,7 @@
249249
xpath=GMSH_REFINE_FACTOR_SHARP_EDGES_XPATH,
250250
gui=True,
251251
gui_name="other sharp edges refinement factor",
252-
gui_group="Advanced Euler mesh parameters",
252+
gui_group="Advanced mesh parameters",
253253
)
254254

255255
cpacs_inout.add_input(

ceasiompy/CPACS2GMSH/func/rans_mesh_generator.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,8 @@ def sort_surfaces_and_create_physical_groups(
576576

577577
# Now deal with it if in more than one part
578578
if len(parts_in) > 1:
579-
choose_correct_part(parts_in, surf, aircraft_parts, new_aircraft_parts)
579+
aircraft_parts = choose_correct_part(
580+
parts_in, surf, aircraft_parts, new_aircraft_parts)
580581

581582
# Remove the parts we re-imported, to get a clean result (we won't need them anymore)
582583
gmsh.model.occ.remove(
@@ -618,7 +619,8 @@ def choose_correct_part(
618619
...
619620
Returns:
620621
----------
621-
nothing
622+
aircraft_parts : list of ModelPart
623+
Return the aircraft parts with updated list of surfaces
622624
"""
623625
for i in parts_in:
624626
# This is maybe overcomplicated, but gmsh doesn't keep the tags of surfaces when
@@ -655,6 +657,7 @@ def choose_correct_part(
655657
for k in range(len(parts_in) - 1):
656658
aircraft_parts[parts_in[k]].surfaces.remove((2, surf))
657659
aircraft_parts[parts_in[k]].surfaces_tags.remove(surf)
660+
return aircraft_parts
658661

659662

660663
def refine_le_te(

0 commit comments

Comments
 (0)