[go: up one dir, main page]

0% found this document useful (0 votes)
112 views13 pages

Airfoil 2 D

This document contains OpenFOAM case files that define the geometry, boundary conditions, physical models, and numerical schemes for a 2D airfoil simulation. Key files include the mesh file that defines the airfoil geometry and boundary patches, physical property files that specify the fluid (air) and turbulence model, and solver control files that configure the simpleFoam solver to iterate the simulation over 500 time steps.

Uploaded by

Mason925
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
112 views13 pages

Airfoil 2 D

This document contains OpenFOAM case files that define the geometry, boundary conditions, physical models, and numerical schemes for a 2D airfoil simulation. Key files include the mesh file that defines the airfoil geometry and boundary patches, physical property files that specify the fluid (air) and turbulence model, and solver control files that configure the simpleFoam solver to iterate the simulation over 500 time steps.

Uploaded by

Mason925
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Airfoil2D

0/U
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |

\\
\\

6 |

/
/

\\/

F ield

| OpenFOAM: The Open Source CFD Toolbox

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

object

U;

14 }
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
17 dimensions

[0 1 -1 0 0 0 0];

18
19 internalField

uniform (25.75 3.62 0);

20
21 boundaryField
22 {
23

inlet

24

25

type

26

freestreamValue uniform (25.75 3.62 0);

27

freestream;

28
29

outlet

30

31

type

32

freestreamValue uniform (25.75 3.62 0);

33

freestream;

34
35

wall

36

37

type

fixedValue;

38
39

value

uniform (0 0 0);

40
41

frontAndBack

42

43
44

type

empty;

45 }
46
47 // ************************************************************************* //

0/U
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |

\\
\\

6 |

/
/

\\/

F ield

| OpenFOAM: The Open Source CFD Toolbox

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 dimensions

[0 2 -2 0 0 0 0];

18
19 internalField

uniform 0;

20
21 boundaryField
22 {
23

inlet

24

25
26

type
}

27
28

outlet

freestreamPressure;

29

30
31

type

freestreamPressure;

32
33

wall

34

35
36

type

zeroGradient;

37
38

frontAndBack

39

40
41

type

empty;

42 }
43
44 // ************************************************************************* //

0/nut
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |

\\
\\

/
/

\\/

F ield

| OpenFOAM: The Open Source CFD Toolbox

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

nut;

14 }
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
17 dimensions

[0 2 -1 0 0 0 0];

18
19 internalField
20
21 boundaryField
22 {

uniform 0.14;

23

inlet

24

25

type

26

freestreamValue uniform 0.14;

27

freestream;

28
29

outlet

30

31

type

32

freestreamValue uniform 0.14;

33

freestream;

34
35

wall

36

37

type

nutSpalartAllmarasWallFunction;

38

value

uniform 0;

39

40
41

frontAndBack

42

43

type

44

empty;

45 }
46
47 // ************************************************************************* //

0/nuTilda
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |

\\
\\

/
/

\\/

F ield

| OpenFOAM: The Open Source CFD Toolbox

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

nuTilda;

14 }
15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16
17 dimensions

[0 2 -1 0 0 0 0];

18
19 internalField

uniform 0.14;

20
21 boundaryField
22 {
23

inlet

24

25

type

26

freestreamValue uniform 0.14;

27

freestream;

28
29

outlet

30

31

type

32

freestreamValue uniform 0.14;

33

freestream;

34
35

wall

36

37

type

fixedValue;

38

value

uniform 0;

39

40
41

frontAndBack

42

43
44

type

empty;

45 }
46
47 // ************************************************************************* //

constant/RASProperties
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |

\\

/
/

F ield

| OpenFOAM: The Open Source CFD Toolbox

O peration

| Version:

1.7.1

|
|

5 |

\\

6 |

A nd

\\/

M anipulation

| Web:

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

SpalartAllmaras;

19
20 turbulence

on;

21
22 printCoeffs

on;

23
24
25 // ************************************************************************* //

constant/transportProperties
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |

\\
\\

/
/

\\/

F ield

| OpenFOAM: The Open Source CFD Toolbox

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

transportProperties;

15 }
16 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
17

18 transportModel

Newtonian;

19
20 rho

rho [ 1 -3 0 0 0 0 0 ] 1;

21
22 nu

nu [ 0 2 -1 0 0 0 0 ] 1e-05;

23
24 CrossPowerLawCoeffs
25 {
26

nu0

nu0 [ 0 2 -1 0 0 0 0 ] 1e-06;

27

nuInf

nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;

28

m [ 0 0 1 0 0 0 0 ] 1;

29

n [ 0 0 0 0 0 0 0 ] 1;

30 }
31
32 BirdCarreauCoeffs
33 {
34

nu0

nu0 [ 0 2 -1 0 0 0 0 ] 1e-06;

35

nuInf

nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;

36

k [ 0 0 1 0 0 0 0 ] 0;

37

n [ 0 0 0 0 0 0 0 ] 1;

38 }
39
40
41 // ************************************************************************* //

constant/ployMesh/boundary
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |

\\
\\

/
/

\\/

F ield

| OpenFOAM: The Open Source CFD Toolbox

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

object

boundary;

14 }

15 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
16 4
17 (
18 inlet
19 {
20

type patch;

21

physicalType inlet;

22

nFaces 134;

23

startFace 21254;

24 }
25
26 outlet
27 {
28

type patch;

29

physicalType outlet;

30

nFaces 160;

31

startFace 21388;

32 }
33
34 wall
35 {
36

type wall;

37

physicalType wall;

38

nFaces 78;

39

startFace 21548;

40 }
41
42 frontAndBack
43 {
44

type empty;

45

physicalType empty;

46

nFaces 21440;

47

startFace 21626;

48 }
49 )
50
51 // ************************************************************************* //

system/controlDict
1 /*--------------------------------*- C++ -*----------------------------------*\

2 | =========
3 | \\
4 |
5 |
6 |

\\
\\

/
/

\\/

F ield

| OpenFOAM: The Open Source CFD Toolbox

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

500;

27
28 deltaT

1;

29
30 writeControl

timeStep;

31
32 writeInterval

50;

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 yes;
47
48
49 // ************************************************************************* //

system/fvSchemes
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\
4 |
5 |
6 |

\\
\\

/
/

\\/

F ield

| OpenFOAM: The Open Source CFD Toolbox

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

steadyState;

21 }
22
23 gradSchemes
24 {
25

default

Gauss linear;

26

grad(p)

Gauss linear;

27

grad(U)

Gauss linear;

28 }
29
30 divSchemes

31 {
32

default

none;

33

div(phi,U)

Gauss linearUpwind Gauss linear;

34

div(phi,nuTilda) Gauss linearUpwind Gauss linear;

35

div((nuEff*dev(grad(U).T()))) Gauss linear;

36 }
37
38 laplacianSchemes
39 {
40

default

41

laplacian(nuEff,U) Gauss linear corrected;

42

laplacian((1|A(U)),p) Gauss linear corrected;

43

laplacian(DnuTildaEff,nuTilda) Gauss linear corrected;

44

laplacian(1,p)

none;

Gauss linear corrected;

45 }
46
47 interpolationSchemes
48 {
49

default

linear;

50

interpolate(U)

linear;

51 }
52
53 snGradSchemes
54 {
55

default

corrected;

56 }
57
58 fluxRequired
59 {
60

default

no;

61

62 }
63
64
65 // ************************************************************************* //

system/fvSolution
1 /*--------------------------------*- C++ -*----------------------------------*\
2 | =========
3 | \\

|
F ield

| OpenFOAM: The Open Source CFD Toolbox

|
|

4 |
5 |

\\
\\

6 |

/
/

\\/

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

GAMG;

23

tolerance

1e-06;

24

relTol

0.1;

25

smoother

GaussSeidel;

26

nPreSweeps

0;

27

nPostSweeps

2;

28

cacheAgglomeration true;

29

nCellsInCoarsestLevel 10;

30

agglomerator

faceAreaPair;

31

mergeLevels

1;

36

solver

smoothSolver;

37

smoother

GaussSeidel;

38

nSweeps

2;

39

tolerance

1e-08;

40

relTol

0.1;

32

33
34

35

41

42
43

nuTilda

44

45

solver

smoothSolver;

46

smoother

GaussSeidel;

47

nSweeps

2;

48

tolerance

1e-08;

49

relTol

0.1;

50

51 }
52
53 SIMPLE
54 {
55

nNonOrthogonalCorrectors 0;

56

pRefCell

0;

57

pRefValue

0;

58 }
59
60 relaxationFactors
61 {
62

default

0;

63

0.3;

64

0.7;

65

nuTilda

0.7;

66 }
67
68
69 // ************************************************************************* //

You might also like