-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.sh
executable file
·45 lines (38 loc) · 1.01 KB
/
test.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
#!/bin/bash
rm -rf local/test
mkdir -p local/test && cd local/test
source ../../OpenFOAM-build/etc/bashrc
foamInstallationTest
rm -rf pitzDaily
cp -r "$FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily" pitzDaily
cd pitzDaily
blockMesh
simpleFoam
cd ..
rm -rf flange
cp -r "$FOAM_TUTORIALS/basic/laplacianFoam/flange" flange
cd flange
cp -r 0.orig 0
ansysToFoam "$FOAM_TUTORIALS/resources/geometry/flange.ans" -scale 0.001
decomposePar
mpirun -np 4 --oversubscribe laplacianFoam -parallel < /dev/null
reconstructPar
cd ..
rm -rf flange2
cp -r "$FOAM_TUTORIALS/basic/laplacianFoam/flange" flange2
cd flange2
foamDictionary -entry numberOfSubdomains -set 2 system/decomposeParDict
$BASH -e ./Allrun-parallel
reconstructPar
cd ..
rm -rf backwardFacingStep2D
cp -r "$FOAM_TUTORIALS/incompressible/simpleFoam/backwardFacingStep2D" backwardFacingStep2D
cd backwardFacingStep2D
$BASH -e ./Allrun
! grep 'FOAM Warning' log.simpleFoam
cd ..
rm -rf blob
cp -r "$FOAM_TUTORIALS/mesh/foamyHexMesh/blob" blob
cd blob
$BASH -e ./Allrun
cd ..