|
[Sponsors] |
WM_PROJECT_DIR: parameter not set or null. How to setup an environment for OpenFOAM? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 23, 2024, 20:23 |
WM_PROJECT_DIR: parameter not set or null. How to setup an environment for OpenFOAM?
|
#1 |
New Member
Phillip Russo
Join Date: Mar 2024
Posts: 1
Rep Power: 0 |
I installed on Ubuntu Jammy Jellyfish (WSL2):
Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy from these instructions. After adding a repository: sudo apt-get install openfoam2312-default OK... So I have some examples: /usr/lib/openfoam/openfoam2312/tutorials/incompressible/pimpleFoam/LES/vortexShed ``` /usr/lib/openfoam/openfoam2312/tutorials/incompressible/pimpleFoam/LES/vortexShed$ sudo ./Allrun ./Allrun: 3: WM_PROJECT_DIR: parameter not set or null ``` I also ran "source bashrc" from the openfoam/etc folder. How can I get Allrun to run? |
|
March 23, 2024, 20:55 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,689
Rep Power: 66 |
Your installer isn't working. The environmental variable should be set during the install but is generally a big no-no without root privileges (that's the best way to get a virus!).
source the etc/bashrc again and run ./Allwmake to compile OF again. If still the same error then echo $WM_PROJECT_DIR and verify that it is set. If still unset then check the bashrc to make sure it is set and then set it and compile. In general I recommend to never read a guide that has sudo in it (it's generally written by dummies for dummies). |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[surface handling] Decomposing Faces after Extrude2DMesh with autoPatch | JEBland | OpenFOAM Meshing & Mesh Conversion | 5 | December 6, 2021 07:28 |
Using a Parameter Set with Fluent Meshing Workflow | ro_bb | FLUENT | 1 | July 18, 2019 05:06 |
does Hyperthreading affect the application of UDF? | SJSW | Fluent UDF and Scheme Programming | 11 | October 10, 2018 22:28 |
Unable to set home environment in gambit | Neel Naik | FLUENT | 3 | January 23, 2007 11:02 |
FATAL ERROR: "HOME" environment MUST be set ! | gamer | FLUENT | 0 | April 19, 2006 03:50 |