1

Previous: OpenFOAM User Directory Up: OpenFOAM Structure Next: Meshes in OpenFOAM
This is an automatically generated documentation by LaTeX2HTML utility. In case of any issue, please, contact us at info@cfdsupport.com.

System Variables and Aliases

  • The following table shows selected system variables and aliases in OpenFOAM.
DirectoryVariableAliasDescription
OpenFOAM-devWM_PROJECT_DIRfoamJumps to directory of version dev
img92 2 applicationsFOAM_APPappJumps to directory application
     img92 1 1 solversFOAM_SOLVERSsolJumps to directory application/solvers
     img92 1 1 utilitiesFOAM_UTILITIESutilJumps to directory application/utilities
img92 1 1 platforms   
     img92 1 1 platformName   
         img92 1 1 libFOAM_LIBBINlibJumps to directory with compiled libraries
img92 1 1 srcFOAM_SRCsrcJumps to directory src
img92 1 1 tutorialsFOAM_TUTORIALStutJumps to directory tutorials
  • System variable (environment variable)
    definition:
    # export variable=value (bash)
    # setenv variable value (csh, tcsh)
    usage:
    # $variable
    example:
    # export WM_PROJECT_DIR=$HOME/OpenFOAM/OpenFOAM-dev
    # defines system variable WM_PROJECT_DIR, which contains the path to directory OpenFOAM-dev
    # cd $WM_PROJECT_DIR
    # jump to directory OpenFOAM-dev
  • alias (user defined one-word command substitution for another command)
    definition:
    # alias name=`commands`
    usage:
    # name
    example:
    # alias foam=`cd $WM_PROJECT_DIR`
    # alias definition foam for jumping to directory OpenFOAM-dev
    # foam
    # jumps to directory OpenFOAM-dev