Skip to content

Commit

Permalink
modified: commonxpath.py
Browse files Browse the repository at this point in the history
added Edge_solver type PATH
  • Loading branch information
mengmengzhang2019 committed Jan 17, 2024
1 parent 509a1b0 commit f211e17
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion WKDIR/labARstraight_toolInput.xml
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@
<includeActuatorDisk>False</includeActuatorDisk>
</options>
<settings>
<solver>euler</solver>
<solver>0</solver>
<nbCPU>32</nbCPU>
<maxIter>20</maxIter>
<cflNumber>
Expand Down
5 changes: 3 additions & 2 deletions ceasiompy/EdgeRun/func/edgeconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
RANGE_XPATH,
EDGE_MESH_XPATH,
EDGE_AEROMAP_UID_XPATH,
EDGE_SOLVER_XPATH,
EDGE_CFL_NB_XPATH,
EDGE_MAX_ITER_XPATH,
EDGE_MG_LEVEL_XPATH,
Expand Down Expand Up @@ -193,8 +194,8 @@ def generate_edge_cfd_ainp(cpacs_path, cpacs_out_path, wkdir):
ITMAX = int(get_value_or_default(cpacs.tixi, EDGE_MAX_ITER_XPATH, 200))
CFL = get_value_or_default(cpacs.tixi, EDGE_CFL_NB_XPATH, 1.5)
NGRID = int(get_value_or_default(cpacs.tixi, EDGE_MG_LEVEL_XPATH, 3))
NPART = int(get_value_or_default(cpacs.tixi, EDGE_NB_CPU_XPATH, 32))
INSEUL = 0
NPART = int(get_value_or_default(cpacs.tixi, EDGE_NB_CPU_XPATH, 64))
INSEUL = int(get_value_or_default(cpacs.tixi, EDGE_SOLVER_XPATH, 0))

# Parameters which will vary for the different cases (alt,mach,aoa,aos)
for case_nb in range(len(alt_list)):
Expand Down
1 change: 1 addition & 0 deletions ceasiompy/utils/commonxpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
EDGE_XPATH = CEASIOMPY_XPATH + "/aerodynamics/medge"
EDGE_AEROMAP_UID_XPATH = EDGE_XPATH + "/aeroMapUID"
EDGE_NB_CPU_XPATH = EDGE_XPATH + "/settings/nbCPU"
EDGE_SOLVER_XPATH = EDGE_XPATH + "/settings/solver"
EDGE_MAX_ITER_XPATH = EDGE_XPATH + "/settings/maxIter"
EDGE_CFL_NB_XPATH = EDGE_XPATH + "/settings/cflNumber/value"
EDGE_MG_LEVEL_XPATH = EDGE_XPATH + "/settings/multigridLevel"
Expand Down

0 comments on commit f211e17

Please sign in to comment.