From 98876f2d66bf861549834e4da7b1c6be0e9ad294 Mon Sep 17 00:00:00 2001 From: GBenedett Date: Tue, 12 Nov 2024 09:38:00 +0100 Subject: [PATCH] D150 geometry correction, surface mesh --- ceasiompy/CPACS2GMSH/func/RANS_mesh_generator.py | 12 ++++++------ test_files/CPACSfiles/D150_simple.xml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ceasiompy/CPACS2GMSH/func/RANS_mesh_generator.py b/ceasiompy/CPACS2GMSH/func/RANS_mesh_generator.py index 43bd4d41a..69636b8a3 100644 --- a/ceasiompy/CPACS2GMSH/func/RANS_mesh_generator.py +++ b/ceasiompy/CPACS2GMSH/func/RANS_mesh_generator.py @@ -328,7 +328,7 @@ def bounding_box_distance(bbox1, bbox2): gmsh.model.occ.synchronize() - gmsh_path = Path(results_dir, "mesh_2d.stl") + gmsh_path = Path(results_dir, "surface_mesh.stl") gmsh.write(str(gmsh_path)) process_gmsh_log(gmsh.logger.get()) @@ -387,10 +387,10 @@ def pentagrow_3d_mesh( os.chdir("Results/GMSH") - if os.path.exists("mesh_2d.stl"): - log.info("mesh_2d.stl exists") + if os.path.exists("surface_mesh.stl"): + log.info("surface_mesh.stl exists") else: - log.warning("mesh_2d.stl does not exist") + log.warning("surface_mesh.stl does not exist") if os.path.exists("config.cfg"): log.info("config.cfg exists") @@ -400,8 +400,8 @@ def pentagrow_3d_mesh( current_dir = os.getcwd() os.chdir(current_dir) - # command = "pentagrow mesh_2d.stl config.cfg" - command = ["pentagrow", "mesh_2d.stl", "config.cfg"] + # command = "pentagrow surface_mesh.stl config.cfg" + command = ["pentagrow", "surface_mesh.stl", "config.cfg"] # Specify the file path file_path = "command.txt" diff --git a/test_files/CPACSfiles/D150_simple.xml b/test_files/CPACSfiles/D150_simple.xml index 4b17b4e93..0ac58b538 100644 --- a/test_files/CPACSfiles/D150_simple.xml +++ b/test_files/CPACSfiles/D150_simple.xml @@ -5132,7 +5132,7 @@ uID="Wing3V_transformation1_translation1"> 29.838 -0.00200292 - 1.89101 + 1.70101