CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[Other] $WM_PROJECT_DIR command

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By Lisandro Maders

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2017, 12:14
Default $WM_PROJECT_DIR command
  #1
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 305
Rep Power: 12
alimea is on a distinguished road
Hi friend
I have a basic question!
what is the meaning of :
$WM_PROJECT_DIR
is it just for openFoam or this is a general command in linux?
why do we use $ in the start point of some addresses?
what is under lines between those words?
and finally, what is WM_PROJECT_DIR?

thanks
alimea is offline   Reply With Quote

Old   November 30, 2017, 22:17
Default
  #2
Member
 
Lisandro Maders
Join Date: Feb 2013
Posts: 98
Rep Power: 13
Lisandro Maders is on a distinguished road
Hi A.Min,

I suggest you to take a first look in this link before start using OpenFOAM: http://openfoamwiki.net/index.php/In...with_the_Shell

Regarding your question, when you are working with the shell in the Linux terminal, any $ is a environment variable. If you want to which is the return of this variable, you can use the command

Code:
echo $WM_PROJECT_DIR
and it should return, for this specific environment variable, a path to the installation directory of the current OpenFOAM sourced. This is an OpenFOAM environment variable. You should not have anything returned with the command above if you didn't source OpenFOAM yet.

The " _ " between the words is only to separate it instead of using spaces (because you can't).

Other OpenFOAM environment variables are $FOAM_RUN, $WM_PROJECT_USER_DIR, $FOAM_APP, $FOAM_SRC, ..

Good luck !

Regards,

Lisandro Maders
wyldckat and ZhangPikai like this.
Lisandro Maders is offline   Reply With Quote

Reply

Tags
command, linux


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
8x icoFoam speed up with Cufflink CUDA solver library kmooney OpenFOAM Running, Solving & CFD 42 November 6, 2012 11:37
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 08:48
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 04:41
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 04:26


All times are GMT -4. The time now is 00:28.