1 #----------------------------------*-sh-*--------------------------------------
3 # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 # \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 #------------------------------------------------------------------------------
9 # This file is part of OpenFOAM.
11 # OpenFOAM is free software: you can redistribute it and/or modify it
12 # under the terms of the GNU General Public License as published by
13 # the Free Software Foundation, either version 3 of the License, or
14 # (at your option) any later version.
16 # OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 # You should have received a copy of the GNU General Public License
22 # along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 # etc/config/aliases.csh
28 # Aliases for working with OpenFOAM
29 # Sourced from OpenFOAM-<VERSION>/etc/cshrc and/or ~/.cshrc
31 #------------------------------------------------------------------------------
33 # Change compiled version aliases
34 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35 alias wmSET 'source $WM_PROJECT_DIR/etc/cshrc'
36 alias wm64 'wmSET WM_ARCH_OPTION=64'
37 alias wm32 'wmSET WM_ARCH_OPTION=32'
38 alias wmSP 'wmSET WM_PRECISION_OPTION=SP'
39 alias wmDP 'wmSET WM_PRECISION_OPTION=DP'
42 alias wmUNSET='source $WM_PROJECT_DIR/etc/config/unset.csh'
44 # Toggle wmakeScheduler on/off
45 # - also need to set WM_HOSTS
46 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
47 alias wmSchedON 'setenv WM_SCHEDULER $WM_PROJECT_DIR/wmake/wmakeScheduler'
48 alias wmSchedOFF 'unsetenv WM_SCHEDULER'
50 # Change ParaView version
51 # ~~~~~~~~~~~~~~~~~~~~~~~
52 alias foamPV 'source `$WM_PROJECT_DIR/etc/config/paraview.csh` ParaView_VERSION=\!*; echo paraview-$ParaView_VERSION'
55 # Change directory aliases
56 # ~~~~~~~~~~~~~~~~~~~~~~~~
57 alias src 'cd $FOAM_SRC'
58 alias lib 'cd $FOAM_LIBBIN'
59 alias run 'cd $FOAM_RUN'
60 alias foam 'cd $WM_PROJECT_DIR'
61 alias foamsrc 'cd $FOAM_SRC/$WM_PROJECT'
62 alias foamfv 'cd $FOAM_SRC/finiteVolume'
63 alias app 'cd $FOAM_APP'
64 alias util 'cd $FOAM_UTILITIES'
65 alias sol 'cd $FOAM_SOLVERS'
66 alias tut 'cd $FOAM_TUTORIALS'
68 alias foamApps 'cd $FOAM_APP'
69 alias foamSol 'cd $FOAM_SOLVERS'
70 alias foamTuts 'cd $FOAM_TUTORIALS'
71 alias foamUtils 'cd $FOAM_UTILITIES'
72 alias foam3rdParty 'cd $WM_THIRD_PARTY_DIR'
74 if ( $?WM_PROJECT_SITE ) then
75 alias foamSite 'cd $WM_PROJECT_SITE'
77 alias foamSite 'cd $WM_PROJECT_INST_DIR/site'
80 # -----------------------------------------------------------------------------