forked from hystrath/hyStrath
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·67 lines (46 loc) · 1.4 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
set -e
userName=`whoami`
currentDir=`pwd`
sendingDir="$HOME/OpenFOAM/$userName-$WM_PROJECT_VERSION"
mkdir -p $sendingDir
# copy new files --------------------------------------------------------------
cp -r $currentDir/src $sendingDir/
cp -r $currentDir/applications $sendingDir/
cp -r $currentDir/run $sendingDir/
# compile new libraries -------------------------------------------------------
cd $sendingDir/src/thermophysicalModels/strath/
./Allwmake
cd $sendingDir/src/turbulenceModels/strath/
./Allwmake
cd $sendingDir/src/hTCModels
wclean libso
wmake libso
cd $sendingDir/src/finiteVolume
wclean libso
wmake libso
cd $sendingDir/src/postProcessing/functionObjects/forces
wclean libso
wmake libso
# compile new executables ------------------------------------------------------
#---- solvers ----
cd $sendingDir/applications/solvers/compressible/hy2Foam/
./Allwmake
#---- utilities ----
cd $sendingDir/applications/utilities/postProcessing/wall/pressureCoeff
wclean
wmake
cd $sendingDir/applications/utilities/postProcessing/wall/frictionCoeff2T
wclean
wmake
cd $sendingDir/applications/utilities/postProcessing/wall/yPlus2T
wclean
wmake
cd $sendingDir/applications/utilities/postProcessing/wall/StantonNumber
wclean
wmake
# re-set to the initial directory ---------------------------------------------
cd $currentDir
echo -e "
cfdStrath has now been compiled. Hope you'll enjoy it $userName :)
"