Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions modules/Ansys/2024_R2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,25 @@ local bin = pathJoin(root, "ansys/bin")

conflict("Ansys")

-- Detect architecture
local arch = capture("uname -m"):gsub("\n", "")

-- Construct path to user-local libs
local user_lib64 = pathJoin(os.getenv("HOME"), ".local", arch, "lib64")
local user_lib = pathJoin(os.getenv("HOME"), ".local", arch, "lib")

-- Prepend to LD_LIBRARY_PATH
prepend_path("LD_LIBRARY_PATH", user_lib64)
prepend_path("LD_LIBRARY_PATH", user_lib)

-- Ansys root
prepend_path("PATH", bin)
setenv("ANSYS_ROOT", root)
setenv("ANSYS_BIN", bin)
setenv("AWP_ROOT242", root)
setenv("ANSYS_VERSION", "2024_R2_v242")
setenv("ANSYSLMD_LICENSE_FILE", "1055@ansyslic.empa.ch")

-- Fluent variables
prepend_path("PATH", pathJoin(root, "fluent/bin"))
setenv("FLUENT_INC", pathJoin(root, "fluent"))