forked from sundbergjohanna/kanelbulle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsecond_step.sh
33 lines (32 loc) · 911 Bytes
/
second_step.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
# Setup file
#!/bin/sh
cd murtazo/navier_stokes_solver/src/
echo "*Entering murtazo/navier_stokes_solver/src/ "
ls
chmod +x compile_forms
./compile_forms
echo "*./compile_forms was a success."
cd ..
cmake .
make -j 2
cd ..
cd cloudnaca
echo "*Entering /cloudnaca "
apt-get update
apt-get -y install gmsh
apt install python-numpy
sed -i '\/Applications\/Gmsh.app\/Contents\/MacOS\/gmsh/c\GMSHBIN=\"\/usr\/bin\/gmsh\"' runme.sh
# ARGUMENTS to runme.sh
# angle_start : smallest anglemof attack (degrees)
# angle_stop : biggest angle of attack (degrees)
# n_angles : split angle_stop-angle_start into n_angles parts
# n_nodes : number of nodes on one side of airfoil
# n_levels : number of refinement steps in meshing 0=no refinement 1=one time 2=two times etc...
chmod +x runme.sh
./runme.sh 0 30 10 200 1
echo "*./runme complete "
cd ..
cd ..
chmod +x convert_xml.sh
./convert_xml.sh
echo "*FINISHED"