Skip to content

Commit

Permalink
D150 geometry correction, surface mesh
Browse files Browse the repository at this point in the history
  • Loading branch information
GBenedett committed Nov 12, 2024
1 parent f1a7428 commit 98876f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions ceasiompy/CPACS2GMSH/func/RANS_mesh_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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")
Expand All @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion test_files/CPACSfiles/D150_simple.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5132,7 +5132,7 @@
uID="Wing3V_transformation1_translation1">
<x>29.838</x>
<y>-0.00200292</y>
<z>1.89101</z>
<z>1.70101</z>
</translation>
</transformation>
<sections xsi:type="wingSectionsType">
Expand Down

0 comments on commit 98876f2

Please sign in to comment.