Skip to content

Commit

Permalink
codacy and names
Browse files Browse the repository at this point in the history
  • Loading branch information
GBenedett committed Feb 13, 2024
1 parent e77a361 commit 01eb338
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ def add_actuator_disk(cfg, cpacs, case_dir_path, actuator_disk_file, mesh_marker


def add_thermodata(cfg, cpacs, alt, case_nb, alt_list):

if cpacs.tixi.checkElement(ENGINE_TYPE_XPATH):
log.info("adding engine BC to the SU2 config file")
engine_type = get_value(cpacs.tixi, ENGINE_TYPE_XPATH)
Expand Down Expand Up @@ -478,7 +477,7 @@ def generate_su2_cfd_config_rans(cpacs_path, cpacs_out_path, wkdir):

# Parameters which will vary for the different cases (alt,mach,aoa,aos)

for case_nb in range(len(alt_list)):
for case_nb, alt_value in enumerate(alt_list):
cfg["MESH_FILENAME"] = str(su2_mesh)

alt = alt_list[case_nb]
Expand Down
5 changes: 1 addition & 4 deletions ceasiompy/SU2Run/su2run.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from pathlib import Path

from ceasiompy.SU2Run.func.su2config import generate_su2_cfd_config
from ceasiompy.SU2Run.func.su2configrans import generate_su2_cfd_config_rans
from ceasiompy.SU2Run.func.su2config_rans import generate_su2_cfd_config_rans
from ceasiompy.SU2Run.func.su2results import get_su2_results
from ceasiompy.utils.ceasiomlogger import get_logger
from ceasiompy.utils.ceasiompyutils import (
Expand Down Expand Up @@ -73,7 +73,6 @@ def run_SU2_multi(wkdir, nb_proc=1):
raise OSError(f"No Case directory has been found in the working directory: {wkdir}")

for config_dir in sorted(case_dir_list):

config_cfd = [c for c in config_dir.iterdir() if c.name == CONFIG_CFD_NAME]

if not config_cfd:
Expand Down Expand Up @@ -104,7 +103,6 @@ def run_SU2_multi(wkdir, nb_proc=1):


def main(cpacs_path, cpacs_out_path):

log.info("----- Start of " + MODULE_NAME + " -----")

tixi = open_tixi(cpacs_path)
Expand All @@ -131,7 +129,6 @@ def main(cpacs_path, cpacs_out_path):


if __name__ == "__main__":

cpacs_path = get_toolinput_file_path(MODULE_NAME)
cpacs_out_path = get_tooloutput_file_path(MODULE_NAME)

Expand Down

0 comments on commit 01eb338

Please sign in to comment.