1 #----------------------------------*-sh-*--------------------------------------
3 # \\ / F ield | foam-extend: Open Source CFD
4 # \\ / O peration | Version: 3.2
5 # \\ / A nd | Web: http://www.foam-extend.org
6 # \\/ M anipulation | For copyright notice see file Copyright
7 #------------------------------------------------------------------------------
9 # This file is part of foam-extend.
11 # foam-extend is free software: you can redistribute it and/or modify it
12 # under the terms of the GNU General Public License as published by the
13 # Free Software Foundation, either version 3 of the License, or (at your
14 # option) any later version.
16 # foam-extend is distributed in the hope that it will be useful, but
17 # WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 # General Public License for more details.
21 # You should have received a copy of the GNU General Public License
22 # along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
28 # Aliases for working with FOAM
29 # Sourced from FOAM-??/etc/bashrc and/or ~/.bashrc
31 #------------------------------------------------------------------------------
33 # Change compiled version aliases
34 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35 alias wm64
='export WM_ARCH_OPTION=64; . $WM_PROJECT_DIR/etc/bashrc'
36 alias wm32
='export WM_ARCH_OPTION=32; . $WM_PROJECT_DIR/etc/bashrc'
37 alias wmSP
='export WM_PRECISION_OPTION=SP; . $WM_PROJECT_DIR/etc/bashrc'
38 alias wmDP
='export WM_PRECISION_OPTION=DP; . $WM_PROJECT_DIR/etc/bashrc'
40 # Toggle wmakeScheduler on/off
41 # - also need to set WM_HOSTS
42 # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
43 alias wmSchedON
='export WM_SCHEDULER=$WM_PROJECT_DIR/wmake/wmakeScheduler'
44 alias wmSchedOFF
='unset WM_SCHEDULER'
46 # Change directory aliases
47 # ~~~~~~~~~~~~~~~~~~~~~~~~
48 alias src
='cd $FOAM_SRC'
49 alias lib
='cd $FOAM_LIB'
50 alias run
='cd $FOAM_RUN'
51 alias foam
='cd $WM_PROJECT_DIR'
52 alias foamsrc
='cd $FOAM_SRC/$WM_PROJECT'
53 alias foamfv
='cd $FOAM_SRC/finiteVolume'
54 alias app
='cd $FOAM_APP'
55 alias util
='cd $FOAM_UTILITIES'
56 alias sol
='cd $FOAM_SOLVERS'
57 alias tut
='cd $FOAM_TUTORIALS'
58 alias foam3rdParty
='cd $WM_THIRD_PARTY_DIR'
60 # -----------------------------------------------------------------------------