CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

WM_PROJECT_DIR: parameter not set or null. How to setup an environment for OpenFOAM?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2024, 20:23
Default 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
prusso is on a distinguished road
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?
prusso is offline   Reply With Quote

Old   March 23, 2024, 20:55
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,676
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
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).
prusso likes this.
LuckyTran is offline   Reply With Quote

Old   April 10, 2024, 04:44
Default Good
  #3
New Member
 
Join Date: Apr 2024
Posts: 1
Rep Power: 0
Kiolspa is on a distinguished road
It is recommended to set and double-check the environmental variable during the installation process.


-----------------------------------
run 3
Kiolspa is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 13:14.