-
Notifications
You must be signed in to change notification settings - Fork 0
/
Allwmake
executable file
·165 lines (124 loc) · 4.37 KB
/
Allwmake
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
#!/bin/bash
# Look at the version number of OpenFOAM to see if it is supported with this version of SOWFA.
version=${WM_PROJECT_VERSION:0:1}
variant=${WM_PROJECT_VERSION:2:1}
if [ $version -le 2 ] || ([ $version -eq 2 ] && [ $variant -le 4 ])
then
echo "Building with OpenFOAM-"$WM_PROJECT_VERSION
elif [ $version -gt 2 ] || ([ $version -eq 2 ] && [ $variant -gt 4 ])
then
echo "WARNING: Building with a version of OpenFOAM greater than 2.4.x, which is unsupported. This will not compile!!!"
fi
# Turbulence models.
cd src/turbulenceModels/incompressible/LES/
wmake libso
cd ../../../../
# Actuator turbine models.
cd src/turbineModels/turbineModelsStandard
wmake libso
cd ../../../
# OpenFAST coupled turbine models.
if [ -z ${OPENFAST_DIR+x} ]
then
echo "OPENFAST_DIR is not set. Not compiling OpenFAST interface."
else
if [ -d ${OPENFAST_DIR} ]
then
echo "OPENFAST_DIR is set to '${OPENFAST_DIR}'. Attempting to compile OpenFAST interface."
cd src/turbineModels/turbineModelsOpenFAST
wmake libso
cd ../../../
else
echo "OPENFAST_DIR is set to '${OPENFAST_DIR}'. Directory doesn't exist or I can't access it. Skipping compilation of OpenFAST interface."
fi
fi
# Custom sampling (this includes sampling on an annulus).
cd src/sampling
wmake libso
cd ../../
# Custom file formats (like structured VTK).
cd src/fileFormats
wmake libso
cd ../../
# Custom boundary conditions.
cd src/finiteVolume
wmake libso
cd ../../
# Custom function objects (this includes the lidar sampling).
cd src/postProcessing/functionObjects/utilities
wmake libso
cd ../../../../
# Utility to set the initial fields for the ABL solver.
cd applications/utilities/setFieldsABL
wmake
cd ../../../
# The atmospheric LES solver for precursors.
cd applications/solvers/incompressible/windEnergy/ABLSolver
wmake
cd ../../../../../
# The atmospheric LES solver for terrain cases.
cd applications/solvers/incompressible/windEnergy/ABLTerrainSolver
wmake
cd ../../../../../
# The wind plant solver with the standard actuator line.
cd applications/solvers/incompressible/windEnergy/windPlantSolver.ALM
wmake
cd ../../../../../
# The wind plant solver with the advanced actuator line.
cd applications/solvers/incompressible/windEnergy/windPlantSolver.ALMAdvanced
wmake
cd ../../../../../
if [ -z ${OPENFAST_DIR+x} ]
then
echo "OPENFAST_DIR is not set. Not compiling OpenFAST solver."
else
if [ -d ${OPENFAST_DIR} ]
then
echo "OPENFAST_DIR is set to '${OPENFAST_DIR}'. Attempting to compile OpenFAST windPlant solver."
# The wind plant solver with the OpenFAST coupled advanced actuator line.
cd applications/solvers/incompressible/windEnergy/windPlantSolver.ALMAdvancedOpenFAST
wmake
cd ../../../../../
else
echo "OPENFAST_DIR is set to '${OPENFAST_DIR}'. Directory doesn't exist or I can't access it. Skipping compilation of OpenFAST solver."
fi
fi
# The wind plant solver with the actuator disk.
cd applications/solvers/incompressible/windEnergy/windPlantSolver.ADM
wmake
cd ../../../../../
# The basic non-buoyant solver with the standard actuator line.
cd applications/solvers/incompressible/windEnergy/pisoFoamTurbine.ALM
wmake
cd ../../../../../
# The basic non-buoyant solver with the advanced actuator line.
cd applications/solvers/incompressible/windEnergy/pisoFoamTurbine.ALMAdvanced
wmake
cd ../../../../../
if [ -z ${OPENFAST_DIR+x} ]
then
echo "OPENFAST_DIR is not set. Not compiling OpenFAST solver."
else
if [ -d ${OPENFAST_DIR} ]
then
echo "OPENFAST_DIR is set to '${OPENFAST_DIR}'. Attempting to compile OpenFAST pisoFoam solver."
# The basic non-buoyant solver with the OpenFAST coupled advanced actuator line.
cd applications/solvers/incompressible/windEnergy/pisoFoamTurbine.ALMAdvancedOpenFAST
wmake
cd ../../../../../
else
echo "OPENFAST_DIR is set to '${OPENFAST_DIR}'. Directory doesn't exist or I can't access it. Skipping compilation of OpenFAST solver."
fi
fi
# The basic non-buoyant solver with the actuator disk.
cd applications/solvers/incompressible/windEnergy/pisoFoamTurbine.ADM
wmake
cd ../../../../../
# A simple solver shell meant for testing wind turbine models.
cd applications/solvers/incompressible/windEnergy/turbineTestHarness.ALM
wmake
cd ../../../../../
# A simple solver shell meant for testing wind turbine models.
cd applications/solvers/incompressible/windEnergy/turbineTestHarness.ALMAdvanced
wmake
cd ../../../../../