OpenFOAM Wingmotion
OpenFOAM Wingmotion
OpenFOAM Wingmotion
wingMotion2D-pimpleDyMFoam
0/k
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
\\
\\
6 |
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
volScalarField;
13
object
k;
14 }
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
17 #include
"include/initialConditions"
18
19 dimensions
[0 2 -2 0 0 0 0];
20
21 internalField
uniform $turbulentKE;
22
23 boundaryField
24 {
25
#include "include/fixedInlet"
26
27
outlet
28
29
type
inletOutlet;
30
inletValue
$internalField;
31
value
$internalField;
32
33
34
wing
35
36
type
kqRWallFunction;
37
value
$internalField;
38
[]
39
40
#include "include/frontBackTopBottomPatches"
41 }
42
43
44 // ************************************************************************* //
0/nut
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
\\
\\
6 |
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
volScalarField;
13
location
"0";
14
object
nut;
15 }
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
18 dimensions
[0 2 -1 0 0 0 0];
19
20 internalField
uniform 0;
21
22 boundaryField
23 {
24
wing
25
26
type
nutkWallFunction;
27
value
uniform 0;
28
29
30
"(front|back|topAndBottom|inlet|outlet)"
31
32
type
calculated;
33
value
uniform 0;
34
[]
35 }
36
37
38 // ************************************************************************* //
0/omega
Line
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
\\
\\
6 |
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
volScalarField;
13
object
epsilon;
14 }
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
17 #include
"include/initialConditions"
18
19 dimensions
[0 0 -1 0 0 0 0];
20
21 internalField
uniform $turbulentOmega;
22
23 boundaryField
24 {
25
#include "include/fixedInlet"
26
27
outlet
28
29
type
inletOutlet;
30
inletValue
$internalField;
[]
Line
31
32
value
$internalField;
33
34
wing
35
36
type
omegaWallFunction;
37
value
$internalField;
38
39
40
#include "include/frontBackTopBottomPatches"
41 }
42
43
44 // ************************************************************************* //
0/p
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |
\\
\\
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
volScalarField;
13
object
p;
14 }
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
17 #include
"include/initialConditions"
18
19 dimensions
[0 2 -2 0 0 0 0];
20
21 internalField
22
23 boundaryField
uniform $pressure;
[]
24 {
25
inlet
26
27
type
28
zeroGradient;
29
30
outlet
31
32
type
fixedValue;
33
value
$internalField;
34
35
36
wing
37
38
type
39
zeroGradient;
40
41
#include "include/frontBackTopBottomPatches"
42 }
43
44 // ************************************************************************* //
0/pointDisplacement
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |
\\
\\
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
pointVectorField;
13
location
"0.01";
14
object
pointDisplacement;
15 }
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
[]
18 dimensions
[0 1 0 0 0 0 0];
19
20 internalField
uniform (0 0 0);
21
22 boundaryField
23 {
24
wing
25
26
type
sixDoFRigidBodyDisplacement;
27
mass
22.9;
28
centreOfMass
29
30
orientation
31
32
0.9953705935 0.09611129781 0
33
-0.09611129781 0.9953705935 0
34
0 0 1
35
);
36
velocity
(0 0 0);
37
acceleration
(0 0 0);
38
angularMomentum (0 0 -0.5);
39
torque
(0 0 0);
40
rhoName
rhoInf;
41
rhoInf
1;
42
(0 -9.81 0);
43
report
on;
44
constraints
45
46
maxIterations
500;
47
48
fixedLine1
49
50
sixDoFRigidBodyMotionConstraint fixedLine;
51
tolerance
52
relaxationFactor 0.7;
53
fixedLineCoeffs
54
1e-9;
55
refPoint
56
direction
(0 1 0);
57
[]
58
59
60
fixedAxis1
61
62
sixDoFRigidBodyMotionConstraint fixedAxis;
63
tolerance
64
relaxationFactor 0.7;
65
fixedAxisCoeffs
66
67
1e-06;
axis
68
( 0 0 1 );
69
70
71
restraints
72
73
verticalSpring
74
75
sixDoFRigidBodyMotionRestraint linearSpring;
76
77
linearSpringCoeffs
78
79
anchor
80
81
stiffness
4000;
82
damping
2;
83
restLength
0;
84
85
86
axialSpring
87
88
sixDoFRigidBodyMotionRestraint linearAxialAngularSpring;
89
90
linearAxialAngularSpringCoeffs
91
92
axis
(0 0 1);
93
stiffness
700;
94
damping
0.5;
95
referenceOrientation $orientation;
96
97
}
}
98
99
value
100
[]
uniform (0 0 0);
101
102
front
103
104
type
105
empty;
106
107
back
108
109
type
110
empty;
111
112
".*"
113
114
type
fixedValue;
115
value
uniform (0 0 0);
116
117 }
118
119
120 // ************************************************************************* //
0/u
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |
\\
\\
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
volVectorField;
13
location
"0";
14
object
U;
15 }
[]
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
18 #include
"include/initialConditions"
19
20 dimensions
[0 1 -1 0 0 0 0];
21
22 internalField
uniform $flowVelocity;
23
24 boundaryField
25 {
26
#include "include/fixedInlet"
27
28
outlet
29
30
type
inletOutlet;
31
inletValue
uniform (0 0 0);
32
value
$internalField;
33
34
35
wing
36
37
type
movingWallVelocity;
38
value
uniform (0 0 0);
39
40
41
#include "include/frontBackTopBottomPatches"
42 }
43
44
45 // ************************************************************************* //
constant/ployMesh/boundary
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |
\\
\\
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
[]
9 {
10
version
2.0;
11
format
ascii;
12
class
polyBoundaryMesh;
13
location
"constant/polyMesh";
14
object
boundary;
15 }
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
18 6
19 (
20
topAndBottom
21
22
type
patch;
23
nFaces
150;
24
startFace
76473;
25
26
inlet
27
28
type
patch;
29
nFaces
48;
30
startFace
76623;
31
32
outlet
33
34
type
patch;
35
nFaces
48;
36
startFace
76671;
37
38
wing
39
40
type
wall;
41
nFaces
778;
42
startFace
76719;
43
44
back
45
46
type
empty;
47
nFaces
38129;
48
startFace
77497;
49
50
front
51
52
type
empty;
53
nFaces
38129;
54
startFace
115626;
55
[]
56 )
57
58 // ************************************************************************* //
constant/dynamicMeshDict
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |
\\
\\
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
dictionary;
13
object
motionProperties;
14 }
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
17 dynamicFvMesh
dynamicMotionSolverFvMesh;
18
19 motionSolverLibs ("libfvMotionSolvers.so");
20
21 solver
displacementLaplacian;
22
23 diffusivity
inverseDistance (wing);
24
25
26 // ************************************************************************* //
constant/RASProperties
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
\\
\\
6 |
[]
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
dictionary;
13
location
"constant";
14
object
RASProperties;
15 }
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
18 RASModel
kOmegaSST;
19
20 turbulence
on;
21
22 printCoeffs
on;
23
24
25 // ************************************************************************* //
constant/transportProperties
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |
\\
\\
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
dictionary;
13
object
transportProperties;
14 }
[]
15
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
18 transportModel Newtonian;
19
20 nu
nu [0 2 -1 0 0 0 0] 1e-05;
21
22 // ************************************************************************* //
constant/turbulenceProperties
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
\\
\\
6 |
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
dictionary;
13
location
"constant";
14
object
turbulenceProperties;
15 }
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
18 simulationType
RASModel;
19
20
21 // ************************************************************************* //
system/controlDict
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |
\\
\\
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
[]
9 {
10
version
2.0;
11
format
ascii;
12
class
dictionary;
13
location
"system";
14
object
controlDict;
15 }
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
18 application
pimpleDyMFoam;
19
20 startFrom
latestTime;
21
22 startTime
0;
23
24 stopAt
endTime;
25
26 endTime
1;
27
28 deltaT
1e-5;
29
30 writeControl
adjustableRunTime;
31
32 writeInterval
5e-3;
33
34 purgeWrite
0;
35
36 writeFormat
ascii;
37
38 writePrecision
10;
39
40 writeCompression uncompressed;
41
42 timeFormat
general;
43
44 timePrecision
6;
45
46 runTimeModifiable true;
47
48 adjustTimeStep
yes;
[]
49
50 maxCo
0.9;
51
52 libs ("libforces.so");
53
54 functions
55 {
56
forces
57
58
type
59
functionObjectLibs
( "libforces.so" );
60
outputControl
timeStep;
61
outputInterval
10;
62
patches
(wing);
63
pName
p;
64
UName
U;
65
rhoName
rhoInf;
66
log
true;
67
rhoInf
1;
68
CofR
69
forces;
70 }
71
72 // ************************************************************************* //
system/decomposeParDict
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |
\\
\\
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
dictionary;
13
location
"system";
14
object
decomposeParDict;
[]
15 }
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
18 numberOfSubdomains 3;
19
20 method
simple;
21
22 simpleCoeffs
23 {
24
( 1 3 1 );
25
delta
0.001;
26 }
27
28 hierarchicalCoeffs
29 {
30
( 3 2 1 );
31
delta
0.001;
32
order
xyz;
33 }
34
35 manualCoeffs
36 {
37
dataFile
"cellDecomposition";
38 }
39
40 metisCoeffs
41 {
42 }
43
44
45 // ************************************************************************* //
system/fvSchemes
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |
\\
\\
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
[]
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
dictionary;
13
object
fvSchemes;
14 }
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
17 ddtSchemes
18 {
19
default Euler;
20 }
21
22 gradSchemes
23 {
24
default
Gauss linear;
25
grad(p)
Gauss linear;
26
grad(U)
Gauss linear;
27 }
28
29 divSchemes
30 {
31
default
none;
32
div(phi,U)
33
div(phi,k)
Gauss limitedLinear 1;
34
div(phi,omega)
Gauss limitedLinear 1;
35
36 }
37
38 laplacianSchemes
39 {
40
default
41 }
42
43 interpolationSchemes
44 {
45
46 }
47
default
linear;
[]
48 snGradSchemes
49 {
50
default
corrected;
51 }
52
53 fluxRequired
54 {
55
default
56
p;
no;
57 }
58
59 // ************************************************************************* //
system/fvSolution
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
\\
\\
6 |
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
dictionary;
13
object
fvSolution;
14 }
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
17 solvers
18 {
19
20
21
solver
GAMG;
22
tolerance
1e-7;
23
relTol
0.01;
24
smoother
GaussSeidel;
25
nPreSweeps
0;
26
nPostSweeps
2;
[]
27
cacheAgglomeration on;
28
agglomerator
29
nCellsInCoarsestLevel 10;
30
mergeLevels
31
faceAreaPair;
1;
32
33
pFinal
34
35
solver
GAMG;
36
tolerance
1e-7;
37
relTol
0;
38
smoother
GaussSeidel;
39
nPreSweeps
0;
40
nPostSweeps
2;
41
cacheAgglomeration on;
42
agglomerator
43
nCellsInCoarsestLevel 10;
44
mergeLevels
45
faceAreaPair;
1;
46
47
"(U|k|omega)"
48
49
solver
50
preconditioner
DILU;
51
tolerance
1e-06;
52
relTol
0;
53
PBiCG;
54
55
cellDisplacement
56
57
solver
GAMG;
58
tolerance
1e-5;
59
relTol
0;
60
smoother
GaussSeidel;
61
cacheAgglomeration true;
62
nCellsInCoarsestLevel 10;
63
agglomerator
faceAreaPair;
64
mergeLevels
1;
65
66 }
[]
67
68 PIMPLE
69 {
70
nOuterCorrectors
2;
71
nCorrectors
1;
72
nNonOrthogonalCorrectors 0;
73 }
74
75 relaxationFactors
76 {
77
0.3;
78
0.7;
79
0.7;
80
omega
0.7;
81 }
82
83 cache
84 {
85
grad(U);
86 }
87
88 // ************************************************************************* //
[]
wingMotion2D_simpleFoam
0/k
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
\\
\\
6 |
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
volScalarField;
13
object
k;
14 }
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
17 #include
"include/initialConditions"
18
19 dimensions
[0 2 -2 0 0 0 0];
20
21 internalField
uniform $turbulentKE;
22
23 boundaryField
24 {
25
#include "include/fixedInlet"
26
27
outlet
28
29
type
inletOutlet;
30
inletValue
$internalField;
31
value
$internalField;
32
33
34
wing
35
36
type
kqRWallFunction;
37
value
$internalField;
38
[]
39
40
#include "include/frontBackTopBottomPatches"
41 }
42
43
44 // ************************************************************************* //
0/nut
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
\\
\\
6 |
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
volScalarField;
13
location
"0";
14
object
nut;
15 }
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
18 dimensions
[0 2 -1 0 0 0 0];
19
20 internalField
uniform 0;
21
22 boundaryField
23 {
24
wing
25
26
type
nutkWallFunction;
27
value
uniform 0;
28
29
30
"(front|back|topAndBottom|inlet|outlet)"
31
32
type
calculated;
33
value
uniform 0;
34
[]
35 }
36
37
38 // ************************************************************************* //
0/omega
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
\\
\\
6 |
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
volScalarField;
13
object
epsilon;
14 }
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
17 #include
"include/initialConditions"
18
19 dimensions
[0 0 -1 0 0 0 0];
20
21 internalField
uniform $turbulentOmega;
22
23 boundaryField
24 {
25
#include "include/fixedInlet"
26
27
outlet
28
29
type
inletOutlet;
30
inletValue
$internalField;
31
value
$internalField;
32
[]
33
34
wing
35
36
type
omegaWallFunction;
37
value
$internalField;
38
39
40
#include "include/frontBackTopBottomPatches"
41 }
42
43
44 // ************************************************************************* //
0/p
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |
\\
\\
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
volScalarField;
13
object
p;
14 }
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
17 #include
"include/initialConditions"
18
19 dimensions
[0 2 -2 0 0 0 0];
20
21 internalField
22
23 boundaryField
24 {
25
inlet
uniform $pressure;
26
27
28
[]
type
zeroGradient;
29
30
outlet
31
32
type
fixedValue;
33
value
$internalField;
34
35
36
wing
37
38
39
type
zeroGradient;
40
41
#include "include/frontBackTopBottomPatches"
42 }
43
44 // ************************************************************************* //
0/u
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |
\\
\\
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
volVectorField;
13
location
"0";
14
object
U;
15 }
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
18 #include
19
"include/initialConditions"
[]
20 dimensions
[0 1 -1 0 0 0 0];
21
22 internalField
uniform $flowVelocity;
23
24 boundaryField
25 {
26
#include "include/fixedInlet"
27
28
outlet
29
30
type
inletOutlet;
31
inletValue
uniform (0 0 0);
32
value
$internalField;
33
34
35
wing
36
37
type
fixedValue;
38
value
uniform (0 0 0);
39
40
41
#include "include/frontBackTopBottomPatches"
42 }
43
44
45 // ************************************************************************* //
constant/ployMesh/boundary
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |
\\
\\
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
polyBoundaryMesh;
[]
13
location
"constant/polyMesh";
14
object
boundary;
15 }
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
18 6
19 (
20
topAndBottom
21
22
type
patch;
23
nFaces
150;
24
startFace
76473;
25
26
inlet
27
28
type
patch;
29
nFaces
48;
30
startFace
76623;
31
32
outlet
33
34
type
patch;
35
nFaces
48;
36
startFace
76671;
37
38
wing
39
40
type
wall;
41
nFaces
778;
42
startFace
76719;
43
44
back
45
46
type
empty;
47
nFaces
38129;
48
startFace
77497;
49
50
front
51
52
type
empty;
53
nFaces
38129;
54
startFace
115626;
55
[]
56 )
57
58 // ************************************************************************* //
constant/extrudeProperties
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |
\\
\\
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
dictionary;
13
object
extrudeProperties;
14 }
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
17 // What to extrude:
18 //
patch
19
20 constructFrom patch;
21 sourceCase "../wingMotion_snappyHexMesh";
22 sourcePatch front;
23
24 // If construct from patch: patch to use for back (can be same as sourcePatch)
25 exposedPatchName back;
26
27 // Flip surface normals before usage.
28 flipNormals false;
29
30 //- Linear extrusion in point-normal direction
31 extrudeModel
32
linearNormal;
[]
33 nLayers
1;
34
35 expansionRatio
1.0;
36
37 linearNormalCoeffs
38 {
39
thickness
0.05;
40 }
41
42 // Do front and back need to be merged? Usually only makes sense for 360
43 // degree wedges.
44 mergeFaces false;
45
46
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
constant/RASProperties
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |
\\
\\
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
dictionary;
13
location
"constant";
14
object
RASProperties;
15 }
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
18 RASModel
kOmegaSST;
19
20 turbulence
on;
21
22 printCoeffs
23
on;
[]
24
25 // ************************************************************************* //
constant/transportProperties
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
\\
\\
6 |
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
dictionary;
13
object
transportProperties;
14 }
15
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
18 transportModel Newtonian;
19
20 nu
nu [0 2 -1 0 0 0 0] 1e-05;
21
22 // ************************************************************************* //
system/controlDict
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |
\\
\\
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
dictionary;
13
location
"system";
14
object
[]
controlDict;
15 }
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
18 application
simpleFoam;
19
20 startFrom
latestTime;
21
22 startTime
0;
23
24 stopAt
endTime;
25
26 endTime
3000;
27
28 deltaT
1;
29
30 writeControl
runTime;
31
32 writeInterval
100;
33
34 purgeWrite
0;
35
36 writeFormat
ascii;
37
38 writePrecision
6;
39
40 writeCompression uncompressed;
41
42 timeFormat
general;
43
44 timePrecision
6;
45
46 runTimeModifiable true;
47
48 functions
49 {
50
forces
51
52
type
53
functionObjectLibs
forces;
( "libforces.so" );
[]
54
outputControl
timeStep;
55
outputInterval
10;
56
patches
(wing);
57
pName
p;
58
UName
U;
59
rhoName
rhoInf;
60
log
true;
61
rhoInf
1;
62
CofR
63
64 }
65
66
67 // ************************************************************************* //
system/createPatchDict
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |
\\
\\
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
dictionary;
13
object
createPatchDict;
14 }
15
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
18 // Tolerance used in matching faces. Absolute tolerance is span of
19 // face times this factor. To load incorrectly matches meshes set this
20 // to a higher value.
21 matchTolerance 1E-3;
22
23 // Do a synchronisation of coupled points after creation of any patches.
24 // Note: this does not work with points that are on multiple coupled patches
25 //
[]
with transformations.
26 pointSync true;
27
28 // Patches to create.
29 patchInfo
30 (
31
32
name topAndBottom;
33
dictionary
34
35
type patch;
36
37
constructFrom patches;
38
39
40
41
42
name inlet;
43
dictionary
44
45
type patch;
46
47
constructFrom patches;
48
patches ( auto1 );
49
50
51
52
name outlet;
53
dictionary
54
55
type patch;
56
57
constructFrom patches;
58
patches ( auto3 );
59
60
61
62
name wing;
63
dictionary
64
65
type wall;
66
67
constructFrom patches;
68
patches ( auto4 );
69
[]
70
71
72
name back;
73
dictionary
74
75
type empty;
76
77
constructFrom patches;
78
patches ( auto5 );
79
80
81
82
name front;
83
dictionary
84
85
type empty;
86
87
constructFrom patches;
88
patches ( auto6 );
89
90 );
system/fvSchemes
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |
\\
\\
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
dictionary;
13
object
[]
fvSchemes;
14 }
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
17 ddtSchemes
18 {
19
default steadyState;
20 }
21
22 gradSchemes
23 {
24
default
Gauss linear;
25
grad(p)
Gauss linear;
26
grad(U)
Gauss linear;
27 }
28
29 divSchemes
30 {
31
default
none;
32
div(phi,U)
33
div(phi,k)
Gauss upwind;
34
div(phi,omega)
Gauss upwind;
35
36 }
37
38 laplacianSchemes
39 {
40
default
41 }
42
43 interpolationSchemes
44 {
45
default
linear;
46 }
47
48 snGradSchemes
49 {
50
51 }
52
default
corrected;
[]
53 fluxRequired
54 {
55
default
56
p;
no;
57 }
58
59 // ************************************************************************* //
system/fvSolution
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
\\
\\
6 |
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
dictionary;
13
object
fvSolution;
14 }
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
17 solvers
18 {
19
20
21
solver
GAMG;
22
tolerance
1e-7;
23
relTol
0.1;
24
smoother
GaussSeidel;
25
nPreSweeps
0;
26
nPostSweeps
2;
27
cacheAgglomeration on;
28
agglomerator
29
nCellsInCoarsestLevel 10;
30
mergeLevels
31
faceAreaPair;
1;
[]
32
33
34
35
solver
smoothSolver;
36
smoother
GaussSeidel;
37
tolerance
1e-8;
38
relTol
0.1;
39
nSweeps
1;
44
solver
smoothSolver;
45
smoother
GaussSeidel;
46
tolerance
1e-8;
47
relTol
0.1;
48
nSweeps
1;
40
41
42
43
49
50
51
omega
52
53
solver
smoothSolver;
54
smoother
GaussSeidel;
55
tolerance
1e-8;
56
relTol
0.1;
57
nSweeps
1;
58
59 }
60
61 SIMPLE
62 {
63
nNonOrthogonalCorrectors 0;
64 }
65
66 relaxationFactors
67 {
68
0.3;
69
0.7;
70
0.7;
71
omega
0.7;
[]
72 }
73
74 cache
75 {
76
grad(U);
77 }
78
79 // ************************************************************************* //
wingMotion_snappyHexMesh
constant/ployMesh/blockMeshDict
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |
\\
\\
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
dictionary;
13
object
blockMeshDict;
14 }
15
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
18 convertToMeters 1;
19
20 vertices
21 (
22
23
( 10
-4.8 -0.1)
24
( 10
4.8 -0.1)
25
(-2.5
4.8 -0.1)
26
(-2.5 -4.8
0.1)
27
( 10
-4.8
0.1)
28
( 10
4.8
0.1)
29
(-2.5
4.8
0.1)
[]
30 );
31
32 blocks
33 (
34
35 );
36
37 edges
38 (
39 );
40
41 patches
42 (
43
patch topAndBottom
44
45
(3 7 6 2)
46
(1 5 4 0)
47
48
49
patch inlet
50
51
52
(0 4 7 3)
)
53
54
patch outlet
55
56
57
(2 6 5 1)
)
58
59
empty front
60
61
62
(4 5 6 7)
)
63
64
empty back
65
66
67
68 );
69
(0 3 2 1)
)
[]
70 mergePatchPairs
71 (
72 );
73
74 // ************************************************************************* //
constant/ployMesh/ boundary
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
\\
\\
6 |
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
polyBoundaryMesh;
13
location
"constant/polyMesh";
14
object
boundary;
15 }
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
18 6
19 (
20
topAndBottom
21
22
type
patch;
23
nFaces
150;
24
startFace
2098769;
25
26
inlet
27
28
type
patch;
29
nFaces
48;
30
startFace
2098919;
31
32
outlet
33
[]
34
type
patch;
35
nFaces
48;
36
startFace
2098967;
37
38
front
39
40
type
empty;
41
nFaces
38129;
42
startFace
2099015;
43
44
back
45
46
type
empty;
47
nFaces
38120;
48
startFace
2137144;
49
50
wing_5degrees.obj_WALL10
51
52
type
wall;
53
nFaces
49792;
54
startFace
2175264;
55
56 )
57
58 // ************************************************************************* //
constant/triSurface/wing_5degrees.obj
1 # Wavefront OBJ file written 2010-05-13T09:12:43
2 o wing_5degrees
3
4 # points : 520
5 # faces
: 520
6 # zones
: 1
7 #
WALL10
(nFaces: 520)
8
9 # <points count="520">
10 v 1.00488 -0.0890722 -0.5
11 v 1.00488 -0.0890722 0.5
12 v 0.999453 -0.0870827 0.5
13 v 0.999453 -0.0870827 -0.5
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
534 f 1 2 3
535 f 3 4 1
536 f 4 3 5
537 f 5 6 4
538 f 6 5 7
539 f 7 8 6
540 f 8 7 9
541 f 9 10 8
542 f 10 9 11
543 f 11 12 10
544 f 12 11 13
545 f 13 14 12
546 f 14 13 15
547 f 15 16 14
548 f 16 15 17
549 f 17 18 16
550 f 18 17 19
551 f 19 20 18
552 f 20 19 21
553 f 21 22 20
554 f 22 21 23
555 f 23 24 22
556 f 24 23 25
557 f 25 26 24
558 f 26 25 27
559 f 27 28 26
560 f 28 27 29
561 f 29 30 28
562 f 30 29 31
563 f 31 32 30
564 f 32 31 33
565 f 33 34 32
566 f 34 33 35
567 f 35 36 34
568 f 36 35 37
569 f 37 38 36
570 f 38 37 39
571 f 39 40 38
572 f 40 39 41
573 f 41 42 40
[]
574 f 42 41 43
575 f 43 44 42
576 f 44 43 45
577 f 45 46 44
578 f 46 45 47
579 f 47 48 46
580 f 48 47 49
581 f 49 50 48
582 f 50 49 51
583 f 51 52 50
584 f 52 51 53
585 f 53 54 52
586 f 54 53 55
587 f 55 56 54
588 f 56 55 57
589 f 57 58 56
590 f 58 57 59
591 f 59 60 58
592 f 60 59 61
593 f 61 62 60
594 f 62 61 63
595 f 63 64 62
596 f 64 63 65
597 f 65 66 64
598 f 66 65 67
599 f 67 68 66
600 f 68 67 69
601 f 69 70 68
602 f 70 69 71
603 f 71 72 70
604 f 72 71 73
605 f 73 74 72
606 f 74 73 75
607 f 75 76 74
608 f 76 75 77
609 f 77 78 76
610 f 78 77 79
611 f 79 80 78
612 f 80 79 81
613 f 81 82 80
[]
614 f 82 81 83
615 f 83 84 82
616 f 84 83 85
617 f 85 86 84
618 f 86 85 87
619 f 87 88 86
620 f 88 87 89
621 f 89 90 88
622 f 90 89 91
623 f 91 92 90
624 f 92 91 93
625 f 93 94 92
626 f 94 93 95
627 f 95 96 94
628 f 96 95 97
629 f 97 98 96
630 f 98 97 99
631 f 99 100 98
632 f 100 99 101
633 f 101 102 100
634 f 102 101 103
635 f 103 104 102
636 f 104 103 105
637 f 105 106 104
638 f 106 105 107
639 f 107 108 106
640 f 108 107 109
641 f 109 110 108
642 f 110 109 111
643 f 111 112 110
644 f 112 111 113
645 f 113 114 112
646 f 114 113 115
647 f 115 116 114
648 f 116 115 117
649 f 117 118 116
650 f 118 117 119
651 f 119 120 118
652 f 120 119 121
653 f 121 122 120
[]
654 f 122 121 123
655 f 123 124 122
656 f 124 123 125
657 f 125 126 124
658 f 126 125 127
659 f 127 128 126
660 f 128 127 129
661 f 129 130 128
662 f 130 129 131
663 f 131 132 130
664 f 132 131 133
665 f 133 134 132
666 f 134 133 135
667 f 135 136 134
668 f 136 135 137
669 f 137 138 136
670 f 138 137 139
671 f 139 140 138
672 f 140 139 141
673 f 141 142 140
674 f 142 141 143
675 f 143 144 142
676 f 144 143 145
677 f 145 146 144
678 f 146 145 147
679 f 147 148 146
680 f 148 147 149
681 f 149 150 148
682 f 150 149 151
683 f 151 152 150
684 f 152 151 153
685 f 153 154 152
686 f 154 153 155
687 f 155 156 154
688 f 156 155 157
689 f 157 158 156
690 f 158 157 159
691 f 159 160 158
692 f 160 159 161
693 f 161 162 160
[]
694 f 162 161 163
695 f 163 164 162
696 f 164 163 165
697 f 165 166 164
698 f 166 165 167
699 f 167 168 166
700 f 168 167 169
701 f 169 170 168
702 f 170 169 171
703 f 171 172 170
704 f 172 171 173
705 f 173 174 172
706 f 174 173 175
707 f 175 176 174
708 f 176 175 177
709 f 177 178 176
710 f 178 177 179
711 f 179 180 178
712 f 180 179 181
713 f 181 182 180
714 f 182 181 183
715 f 183 184 182
716 f 184 183 185
717 f 185 186 184
718 f 186 185 187
719 f 187 188 186
720 f 188 187 189
721 f 189 190 188
722 f 190 189 191
723 f 191 192 190
724 f 192 191 193
725 f 193 194 192
726 f 194 193 195
727 f 195 196 194
728 f 196 195 197
729 f 197 198 196
730 f 198 197 199
731 f 199 200 198
732 f 200 199 201
733 f 201 202 200
[]
734 f 202 201 203
735 f 203 204 202
736 f 204 203 205
737 f 205 206 204
738 f 206 205 207
739 f 207 208 206
740 f 208 207 209
741 f 209 210 208
742 f 210 209 211
743 f 211 212 210
744 f 212 211 213
745 f 213 214 212
746 f 214 213 215
747 f 215 216 214
748 f 216 215 217
749 f 217 218 216
750 f 218 217 219
751 f 219 220 218
752 f 220 219 221
753 f 221 222 220
754 f 222 221 223
755 f 223 224 222
756 f 224 223 225
757 f 225 226 224
758 f 226 225 227
759 f 227 228 226
760 f 228 227 229
761 f 229 230 228
762 f 230 229 231
763 f 231 232 230
764 f 232 231 233
765 f 233 234 232
766 f 234 233 235
767 f 235 236 234
768 f 236 235 237
769 f 237 238 236
770 f 238 237 239
771 f 239 240 238
772 f 240 239 241
773 f 241 242 240
[]
774 f 242 241 243
775 f 243 244 242
776 f 244 243 245
777 f 245 246 244
778 f 246 245 247
779 f 247 248 246
780 f 248 247 249
781 f 249 250 248
782 f 250 249 251
783 f 251 252 250
784 f 252 251 253
785 f 253 254 252
786 f 254 253 255
787 f 255 256 254
788 f 256 255 257
789 f 257 258 256
790 f 258 257 259
791 f 259 260 258
792 f 261 262 2
793 f 2 1 261
794 f 260 259 263
795 f 263 264 260
796 f 264 263 265
797 f 265 266 264
798 f 266 265 267
799 f 267 268 266
800 f 268 267 269
801 f 269 270 268
802 f 270 269 271
803 f 271 272 270
804 f 272 271 273
805 f 273 274 272
806 f 274 273 275
807 f 275 276 274
808 f 276 275 277
809 f 277 278 276
810 f 278 277 279
811 f 279 280 278
812 f 280 279 281
813 f 281 282 280
[]
814 f 282 281 283
815 f 283 284 282
816 f 284 283 285
817 f 285 286 284
818 f 286 285 287
819 f 287 288 286
820 f 288 287 289
821 f 289 290 288
822 f 290 289 291
823 f 291 292 290
824 f 292 291 293
825 f 293 294 292
826 f 294 293 295
827 f 295 296 294
828 f 296 295 297
829 f 297 298 296
830 f 298 297 299
831 f 299 300 298
832 f 300 299 301
833 f 301 302 300
834 f 302 301 303
835 f 303 304 302
836 f 304 303 305
837 f 305 306 304
838 f 306 305 307
839 f 307 308 306
840 f 308 307 309
841 f 309 310 308
842 f 310 309 311
843 f 311 312 310
844 f 312 311 313
845 f 313 314 312
846 f 314 313 315
847 f 315 316 314
848 f 316 315 317
849 f 317 318 316
850 f 318 317 319
851 f 319 320 318
852 f 320 319 321
853 f 321 322 320
[]
854 f 322 321 323
855 f 323 324 322
856 f 324 323 325
857 f 325 326 324
858 f 326 325 327
859 f 327 328 326
860 f 328 327 329
861 f 329 330 328
862 f 330 329 331
863 f 331 332 330
864 f 332 331 333
865 f 333 334 332
866 f 334 333 335
867 f 335 336 334
868 f 336 335 337
869 f 337 338 336
870 f 338 337 339
871 f 339 340 338
872 f 340 339 341
873 f 341 342 340
874 f 342 341 343
875 f 343 344 342
876 f 344 343 345
877 f 345 346 344
878 f 346 345 347
879 f 347 348 346
880 f 348 347 349
881 f 349 350 348
882 f 350 349 351
883 f 351 352 350
884 f 352 351 353
885 f 353 354 352
886 f 354 353 355
887 f 355 356 354
888 f 356 355 357
889 f 357 358 356
890 f 358 357 359
891 f 359 360 358
892 f 360 359 361
893 f 361 362 360
[]
894 f 362 361 363
895 f 363 364 362
896 f 364 363 365
897 f 365 366 364
898 f 366 365 367
899 f 367 368 366
900 f 368 367 369
901 f 369 370 368
902 f 370 369 371
903 f 371 372 370
904 f 372 371 373
905 f 373 374 372
906 f 374 373 375
907 f 375 376 374
908 f 376 375 377
909 f 377 378 376
910 f 378 377 379
911 f 379 380 378
912 f 380 379 381
913 f 381 382 380
914 f 382 381 383
915 f 383 384 382
916 f 384 383 385
917 f 385 386 384
918 f 386 385 387
919 f 387 388 386
920 f 388 387 389
921 f 389 390 388
922 f 390 389 391
923 f 391 392 390
924 f 392 391 393
925 f 393 394 392
926 f 394 393 395
927 f 395 396 394
928 f 396 395 397
929 f 397 398 396
930 f 398 397 399
931 f 399 400 398
932 f 400 399 401
933 f 401 402 400
[]
934 f 402 401 403
935 f 403 404 402
936 f 404 403 405
937 f 405 406 404
938 f 406 405 407
939 f 407 408 406
940 f 408 407 409
941 f 409 410 408
942 f 410 409 411
943 f 411 412 410
944 f 412 411 413
945 f 413 414 412
946 f 414 413 415
947 f 415 416 414
948 f 416 415 417
949 f 417 418 416
950 f 418 417 419
951 f 419 420 418
952 f 420 419 421
953 f 421 422 420
954 f 422 421 423
955 f 423 424 422
956 f 424 423 425
957 f 425 426 424
958 f 426 425 427
959 f 427 428 426
960 f 428 427 429
961 f 429 430 428
962 f 430 429 431
963 f 431 432 430
964 f 432 431 433
965 f 433 434 432
966 f 434 433 435
967 f 435 436 434
968 f 436 435 437
969 f 437 438 436
970 f 438 437 439
971 f 439 440 438
972 f 440 439 441
973 f 441 442 440
[]
974 f 442 441 443
975 f 443 444 442
976 f 444 443 445
977 f 445 446 444
978 f 446 445 447
979 f 447 448 446
980 f 448 447 449
981 f 449 450 448
982 f 450 449 451
983 f 451 452 450
984 f 452 451 453
985 f 453 454 452
986 f 454 453 455
987 f 455 456 454
988 f 456 455 457
989 f 457 458 456
990 f 458 457 459
991 f 459 460 458
992 f 460 459 461
993 f 461 462 460
994 f 462 461 463
995 f 463 464 462
996 f 464 463 465
997 f 465 466 464
998 f 466 465 467
999 f 467 468 466
1000 f 468 467 469
1001 f 469 470 468
1002 f 470 469 471
1003 f 471 472 470
1004 f 472 471 473
1005 f 473 474 472
1006 f 474 473 475
1007 f 475 476 474
1008 f 476 475 477
1009 f 477 478 476
1010 f 478 477 479
1011 f 479 480 478
1012 f 480 479 481
1013 f 481 482 480
[]
1014 f 482 481 483
1015 f 483 484 482
1016 f 484 483 485
1017 f 485 486 484
1018 f 486 485 487
1019 f 487 488 486
1020 f 488 487 489
1021 f 489 490 488
1022 f 490 489 491
1023 f 491 492 490
1024 f 492 491 493
1025 f 493 494 492
1026 f 494 493 495
1027 f 495 496 494
1028 f 496 495 497
1029 f 497 498 496
1030 f 498 497 499
1031 f 499 500 498
1032 f 500 499 501
1033 f 501 502 500
1034 f 502 501 503
1035 f 503 504 502
1036 f 504 503 505
1037 f 505 506 504
1038 f 506 505 507
1039 f 507 508 506
1040 f 508 507 509
1041 f 509 510 508
1042 f 510 509 511
1043 f 511 512 510
1044 f 512 511 513
1045 f 513 514 512
1046 f 514 513 515
1047 f 515 516 514
1048 f 516 515 517
1049 f 517 518 516
1050 f 518 517 519
1051 f 519 520 518
1052 f 520 519 262
1053 f 262 261 520
[]
[]
1054 # </faces>
system/controlDict
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |
\\
\\
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
dictionary;
13
location
"system";
14
object
controlDict;
15 }
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
18 application
snappyHexMesh;
19
20 startFrom
latestTime;
21
22 startTime
0;
23
24 stopAt
endTime;
25
26 endTime
100;
27
28 deltaT
1;
29
30 writeControl
runTime;
31
32 writeInterval
1;
33
34 purgeWrite
0;
35
36 writeFormat
37
ascii;
[]
38 writePrecision
6;
39
40 writeCompression uncompressed;
41
42 timeFormat
general;
43
44 timePrecision
6;
45
46 runTimeModifiable true;
47
48 }
49
50 // ************************************************************************* //
system/decomposeParDict
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
\\
\\
6 |
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
dictionary;
13
location
"system";
14
object
decomposeParDict;
15 }
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
18 numberOfSubdomains 3;
19
20 method
simple;
21
22 simpleCoeffs
23 {
24
( 1 3 1 );
25
delta
0.001;
[]
26 }
27
28 hierarchicalCoeffs
29 {
30
( 3 2 1 );
31
delta
0.001;
32
order
xyz;
33 }
34
35 manualCoeffs
36 {
37
dataFile
"cellDecomposition";
38 }
39
40 metisCoeffs
41 {
42 }
43
44
45 // ************************************************************************* //
system/fvSchemes
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |
\\
\\
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
dictionary;
13
location
"system";
14
object
fvSchemes;
15 }
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
18 ddtSchemes
[]
19 {
20
default
Euler;
21 }
22
23 gradSchemes
24 {
25
default
Gauss linear;
26 }
27
28 divSchemes
29 {
30
default
none;
31
div(phi,U)
Gauss limitedLinearV 1;
32
div(phi,k)
Gauss upwind;
33
34
div(phi,R)
Gauss upwind;
35
div(R)
Gauss linear;
36
div(phid,p)
Gauss limitedLinear 1;
37
div(phiU,p)
Gauss limitedLinear 1;
38
div(phi,e)
Gauss limitedLinear 1;
39
40 }
41
42 laplacianSchemes
43 {
44
default
45
46
47
48
49
50
none;
51 }
52
53 interpolationSchemes
54 {
55
default
56 }
57
58 snGradSchemes
linear;
[]
59 {
60
default
corrected;
61 }
62
63 fluxRequired
64 {
65
default
66
p;
no;
67 }
68
69
70 // ************************************************************************* //
system/fvSolution
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
\\
\\
6 |
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
dictionary;
13
location
"system";
14
object
fvSolution;
15 }
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17
18 solvers
19 {
20
21
22
solver
23
preconditioner
DILU;
24
tolerance
1e-12;
25
relTol
0;
26
PBiCG;
[]
27
28
rho
29
30
solver
31
preconditioner
DIC;
32
tolerance
1e-08;
33
relTol
0;
34
PCG;
35
36
"(U|e|k|epsilon|R)"
37
38
$p;
39
tolerance
1e-08;
40
relTol
0;
41
42 }
43
44 PISO
45 {
46
nCorrectors
47
nNonOrthogonalCorrectors 2;
2;
48 }
49
50
51 // ************************************************************************* //
system/snappyHexMeshDict
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |
\\
\\
/
/
\\/
F ield
O peration
| Version:
A nd
| Web:
M anipulation
1.7.1
|
|
www.OpenFOAM.com
|
|
7 \*---------------------------------------------------------------------------*/
8 FoamFile
9 {
10
version
2.0;
11
format
ascii;
12
class
dictionary;
13
object
snappyHexMeshDict;
[]
14 }
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
17 // Which of the steps to run
18 castellatedMesh true;
19 snap
true;
20 addLayers
true;
21
22
23 // Geometry. Definition of all surfaces. All surfaces are of class
24 // searchableSurface.
25 // Surfaces are used
26 // - to specify refinement for any mesh cell intersecting it
27 // - to specify refinement for any mesh cell inside/outside/near
28 // - to 'snap' the mesh boundary to the surface
29 geometry
30 {
31
wing_5degrees.obj
32
33
34
type triSurfaceMesh;
}
35
36
refinementBox
37
38
type searchableBox;
39
40
max ( 5
41
1);
42 };
43
44
45
46 // Settings for the castellatedMesh generation.
47 castellatedMeshControls
48 {
49
50
// Refinement parameters
51
// ~~~~~~~~~~~~~~~~~~~~~
52
53
[]
54
55
56
maxLocalCells 1000000;
57
58
59
60
// Note that this is the number of cells before removing the part which
61
// is not 'visible' from the keepPoint. The final number of cells might
62
63
maxGlobalCells 2000000;
64
65
// The surface refinement loop might spend lots of iterations refining just a
66
// few cells. This setting will cause refinement to stop if <= minimumRefine
67
68
69
minRefinementCells 100;
70
71
72
73
// refinement.
74
nCellsBetweenLevels 6;
75
76
77
78
79
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
80
81
82
83
features ();
84
85
86
87
88
// ~~~~~~~~~~~~~~~~~~~~~~~~
89
90
// Specifies two levels for every surface. The first is the minimum level,
91
92
// The second level is the maximum level. Cells that 'see' multiple
93
94
[]
95
96
refinementSurfaces
97
98
wing_5degrees.obj
99
100
101
level (6 6);
102
103
}
}
104
105
106
resolveFeatureAngle 30;
107
108
109
// Region-wise refinement
110
// ~~~~~~~~~~~~~~~~~~~~~~
111
112
113
// three modes
114
115
//
116
//
descending order.
117
// - inside. 'levels' is only one entry and only the level is used. All
118
//
cells inside the surface get refined up to the level. The surface
119
//
120
121
122
refinementRegions
123
124
refinementBox
125
126
mode inside;
127
128
129
}
}
130
131
132
// Mesh selection
133
// ~~~~~~~~~~~~~~
[]
134
135
136
// all cells intersecting the surfaces get put into these patches. The
137
138
// NOTE: This point should never be on a face, always inside a cell, even
139
// after refinement.
140
141
142
143
144
145
146
allowFreeStandingZoneFaces true;
147 }
148
149
150
151 // Settings for the snapping.
152 snapControls
153 {
154
155
//
156
nSmoothPatch 3;
to surface
157
158
159
//
160
//
161
tolerance 4.0;
162
163
164
nSolveIter 30;
165
166
167
//
168
nRelaxIter 5;
169 }
170
171
172
173 // Settings for the layer addition.
[]
174 addLayersControls
175 {
176
177
// size of the refined cell outside layer (true) or absolute sizes (false).
178
relativeSizes true;
179
180
181
layers
182
183
"wing.*"
184
185
nSurfaceLayers 3;
186
187
}
}
188
189
190
expansionRatio 1.3;
191
192
193
//
is the
194
//
195
//
196
//
197
//
198
finalLayerThickness 0.7;
199
200
201
//
202
//
203
//
204
minThickness 0.25;
205
206
//- If points get not extruded do nGrow layers of connected faces that are
207
//
also not grown. This helps convergence of the layer addition process
208
//
close to features.
209
nGrow 0;
210
211
212
213
// Advanced settings
[]
214
//- When not to extrude surface. 0 is flat surface, 90 is when two faces
215
//
216
featureAngle 60;
217
218
219
//
220
nRelaxIter 5;
221
222
223
nSmoothSurfaceNormals 1;
224
225
226
nSmoothNormals 3;
227
228
229
nSmoothThickness 10;
230
231
232
maxFaceThicknessRatio 0.5;
233
234
235
// distance is large
236
maxThicknessToMedialRatio 0.3;
237
238
239
240
minMedianAxisAngle 90;
241
242
243
nBufferCellsNoExtrude 0;
244
245
246
// Overall max number of layer addition iterations. The mesher will exit
247
248
// mesh.
249
nLayerIter 50;
250 }
251
252
253
[]
254 // Generic mesh quality settings. At any undoable phase these determine
255 // where to undo.
256 meshQualityControls
257 {
258
259
maxNonOrtho 65;
260
261
262
maxBoundarySkewness 20;
263
maxInternalSkewness 4;
264
265
//- Max concaveness allowed. Is angle (in degrees) below which concavity
266
//
267
//
268
maxConcave 80;
269
270
271
//
272
//
273
minVol 1e-13;
274
275
//- Minimum tet volume. Is absolute volume of the tet formed by the
276
//
277
//
278
//
279
minTetVol 1e-20;
280
281
282
minArea -1;
283
284
//- Minimum face twist. Set to <-1 to disable. dot product of face normal
285
286
minTwist 0.05;
287
288
289
290
minDeterminant 0.001;
291
292
293
minFaceWeight 0.05;
[]
294
295
296
minVolRatio 0.01;
297
298
299
minTriangleTwist -1;
300
301
302
// Advanced
303
304
305
nSmoothScale 4;
306
307
errorReduction 0.75;
308 }
309
310
311 // Advanced
312
313 // Flags for optional output
314 // 0 : only write final meshes
315 // 1 : write intermediate meshes
316 // 2 : write volScalarField with cellLevel for postprocessing
317 // 4 : write current intersections as .obj files
318 debug 0;
319
320
321 // Merge tolerance. Is fraction of overall bounding box of initial mesh.
322 // Note: the write tolerance needs to be higher than this.
323 mergeTolerance 1E-6;
324
325
326 // ************************************************************************* //