Skip to content

Commit

Permalink
improve method for future linux support
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcapodi78 authored and maxcapodi78 committed Jul 26, 2023
1 parent be2bfb0 commit cde2f32
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pyaedt/icepak.py
Original file line number Diff line number Diff line change
Expand Up @@ -2712,14 +2712,17 @@ def generate_fluent_mesh(
fluent_script.write("/file/stop-transcript\n")
fluent_script.write("/exit,\n")
fluent_script.close()

cmd = os.path.join(self.desktop_install_dir, "fluent", "ntbin", "win64", "fluent.exe")
if is_linux: # pragma: no cover
cmd = os.path.join(ansys_install_dir, "fluent", "bin", "fluent")
# Fluent command line parameters: -meshing -i <journal> -hidden -tm<x> (# processors for meshing) -wait
fl_ucommand = [
os.path.join(self.desktop_install_dir, "fluent", "ntbin", "win64", "fluent.exe"),
cmd,
"3d",
"-meshing",
"-hidden",
"-i" + '"' + fl_uscript_file_pointer + '"',
"-i",
'"' + fl_uscript_file_pointer + '"',
]
self.logger.info("Fluent is starting in BG.")
subprocess.call(fl_ucommand)
Expand Down

0 comments on commit cde2f32

Please sign in to comment.