2 #------------------------------------------------------------------------------
4 # \\ / F ield | foam-extend: Open Source CFD
6 # \\ / A nd | For copyright notice see file Copyright
8 #------------------------------------------------------------------------------
10 # This file is part of foam-extend.
12 # foam-extend is free software: you can redistribute it and/or modify it
13 # under the terms of the GNU General Public License as published by the
14 # Free Software Foundation, either version 3 of the License, or (at your
15 # option) any later version.
17 # foam-extend is distributed in the hope that it will be useful, but
18 # WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 # General Public License for more details.
22 # You should have received a copy of the GNU General Public License
23 # along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
29 # Installation script for local development
32 # Martin Beaudoin, Hydro-Quebec, (2012)
34 #------------------------------------------------------------------------------
36 command -v python
-V >/dev
/null
39 echo "Error: You need to install python in order to run these PyFoam scripts"
43 if [ -z "$PYFOAM_SITE_DIR" ]
45 echo "Error: Missing environment variable \$PYFOAM_SITE_DIR."
46 echo " Please execute the script ThirdParty/AllMake.stage5 to install PyFoam."
47 echo " Then, make sure to freshen your foam-extend environment by sourcing your main"
48 echo " foam-extend configuration file."
52 if [ ! -d $PYFOAM_SITE_DIR/lib
-o ! -d $PYFOAM_SITE_DIR/bin
]
54 echo "Directory $PYFOAM_SITE_DIR/lib or $PYFOAM_SITE_DIR/bin missing"
59 # pyFoamChangeMixingPlaneBoundary.py
60 cp pyFoamChangeMixingPlaneBoundary.py
$PYFOAM_SITE_DIR/bin
61 cp ChangeMixingPlaneBoundary.py
$PYFOAM_SITE_DIR/lib
63 # pyFoamChangeGGIBoundary.py
64 # Same as pyFoamModifyGGIBoundary.py. We just harmonize the name with rest of PyFoam
65 cp pyFoamChangeGGIBoundary.py
$PYFOAM_SITE_DIR/bin
66 cp ChangeGGIBoundary.py
$PYFOAM_SITE_DIR/lib
68 # pyFoamInitializeMixingPlane.py
69 cp pyFoamInitMixingPlaneInterface.py
$PYFOAM_SITE_DIR/bin
70 cp InitMixingPlaneInterface.py
$PYFOAM_SITE_DIR/lib
72 # pyFoamInitializeGGI.py
73 cp pyFoamInitGgiInterface.py
$PYFOAM_SITE_DIR/bin
74 cp InitGgiInterface.py
$PYFOAM_SITE_DIR/lib
76 # pyFoamConvertMixingPlaneBoundaryToNewSyntax.py
77 cp pyFoamConvertMixingPlaneBoundaryToNewSyntax.py
$PYFOAM_SITE_DIR/bin
78 cp ConvertMixingPlaneBoundaryToNewSyntax.py
$PYFOAM_SITE_DIR/lib
81 echo ========================================
83 echo ========================================
86 # ----------------------------------------------------------------- end-of-file