Skip to content

Commit

Permalink
modified: sumoautomesh.py
Browse files Browse the repository at this point in the history
changed aboc file name in SUMO folder in Results folder as the same name
as bmsh file
  • Loading branch information
mengmengzhang2019 committed Jan 27, 2024
1 parent 0257ecc commit caf251d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions ceasiompy/SUMOAutoMesh/sumoautomesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,13 @@ def create_mesh(cpacs_path, cpacs_out_path):
tixi.updateTextElement(SU2MESH_XPATH, str(mesh_out_path))
mesh_path.unlink()

else:
elif output == "edge":
create_branch(tixi, EDGE_MESH_XPATH)
tixi.updateTextElement(EDGE_MESH_XPATH, str(mesh_out_path))

edge_aboc_path = Path(sumo_results_dir, "ToolOutput.aboc")
#edge_aboc_path = Path(sumo_results_dir, "ToolOutput.aboc") # commented by Mengmeng
edge_aboc_name = aircraft_name(tixi) + f"_baseline.aboc"
edge_aboc_path = Path(sumo_results_dir, edge_aboc_name)
shutil.copyfile(mesh_path, edge_aboc_path)

create_branch(tixi, EDGE_ABOC_XPATH)
Expand Down
3 changes: 2 additions & 1 deletion ceasiompy/utils/commonxpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
SMFILE_XPATH = CEASIOMPY_XPATH + "/filesPath/SMpath"
SU2MESH_XPATH = CEASIOMPY_XPATH + "/filesPath/su2Mesh"
EDGE_MESH_XPATH = CEASIOMPY_XPATH + "/filesPath/edgeMesh"

SUMOFILE_XPATH = CEASIOMPY_XPATH + "/filesPath/sumoFilePath"
WKDIR_XPATH = CEASIOMPY_XPATH + "/filesPath/wkdirPath"

Expand Down Expand Up @@ -151,7 +152,7 @@
EDGE_CFL_NB_XPATH = EDGE_XPATH + "/settings/cflNumber/value"
EDGE_MG_LEVEL_XPATH = EDGE_XPATH + "/settings/multigridLevel"
EDGE_FIXED_CL_XPATH = EDGE_XPATH + "/fixedCL"
EDGE_SOLVER = EDGE_XPATH + "/solver"
EDGE_SOLVER = EDGE_XPATH + "/solver" # duplicate of EDGE_SOLVER_XPATH
EDGE_ABOC_XPATH = EDGE_XPATH + "/boundary_condition"

# RANGE
Expand Down

0 comments on commit caf251d

Please sign in to comment.