Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BernardCells: tutorial demonstrating Bernard cells
2D buoyancy-driven flow between flat plates with small temperature difference
- Loading branch information
Chris Greenshields
committed
Mar 15, 2017
1 parent
fbc5595
commit 2598b13
Showing
17 changed files
with
662 additions
and
0 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/BernardCells/0/T
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: dev | | ||
| \\ / A nd | Web: www.OpenFOAM.org | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
version 2.0; | ||
format ascii; | ||
class volScalarField; | ||
object T; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
dimensions [0 0 0 1 0 0 0]; | ||
|
||
internalField uniform 300; | ||
|
||
boundaryField | ||
{ | ||
floor | ||
{ | ||
type fixedValue; | ||
value uniform 301; | ||
} | ||
ceiling | ||
{ | ||
type fixedValue; | ||
value uniform 300; | ||
} | ||
sideWalls | ||
{ | ||
type zeroGradient; | ||
} | ||
|
||
#includeEtc "caseDicts/setConstraintTypes" | ||
} | ||
|
||
// ************************************************************************* // |
31 changes: 31 additions & 0 deletions
31
tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/BernardCells/0/U
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: dev | | ||
| \\ / A nd | Web: www.OpenFOAM.org | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
version 2.0; | ||
format ascii; | ||
class volVectorField; | ||
object U; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
dimensions [0 1 -1 0 0 0 0]; | ||
|
||
internalField uniform (1e-4 0 0); | ||
|
||
boundaryField | ||
{ | ||
wall | ||
{ | ||
type noSlip; | ||
} | ||
|
||
#includeEtc "caseDicts/setConstraintTypes" | ||
} | ||
|
||
// ************************************************************************* // |
34 changes: 34 additions & 0 deletions
34
tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/BernardCells/0/alphat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: dev | | ||
| \\ / A nd | Web: www.OpenFOAM.org | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
version 2.0; | ||
format ascii; | ||
class volScalarField; | ||
object alphat; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
dimensions [0 2 -1 0 0 0 0]; | ||
|
||
internalField uniform 0; | ||
|
||
boundaryField | ||
{ | ||
wall | ||
{ | ||
type alphatJayatillekeWallFunction; | ||
Prt 0.85; | ||
value $internalField; | ||
} | ||
|
||
#includeEtc "caseDicts/setConstraintTypes" | ||
} | ||
|
||
|
||
// ************************************************************************* // |
33 changes: 33 additions & 0 deletions
33
tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/BernardCells/0/epsilon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: dev | | ||
| \\ / A nd | Web: www.OpenFOAM.org | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
version 2.0; | ||
format ascii; | ||
class volScalarField; | ||
object epsilon; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
dimensions [0 2 -3 0 0 0 0]; | ||
|
||
internalField uniform 1e-5; | ||
|
||
boundaryField | ||
{ | ||
wall | ||
{ | ||
type epsilonWallFunction; | ||
value $internalField; | ||
} | ||
|
||
#includeEtc "caseDicts/setConstraintTypes" | ||
} | ||
|
||
|
||
// ************************************************************************* // |
33 changes: 33 additions & 0 deletions
33
tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/BernardCells/0/k
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: dev | | ||
| \\ / A nd | Web: www.OpenFOAM.org | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
version 2.0; | ||
format ascii; | ||
class volScalarField; | ||
object k; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
dimensions [0 2 -2 0 0 0 0]; | ||
|
||
internalField uniform 1e-5; | ||
|
||
boundaryField | ||
{ | ||
wall | ||
{ | ||
type kqRWallFunction; | ||
value $internalField; | ||
} | ||
|
||
#includeEtc "caseDicts/setConstraintTypes" | ||
} | ||
|
||
|
||
// ************************************************************************* // |
33 changes: 33 additions & 0 deletions
33
tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/BernardCells/0/nut
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: dev | | ||
| \\ / A nd | Web: www.OpenFOAM.org | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
version 2.0; | ||
format ascii; | ||
class volScalarField; | ||
object nut; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
dimensions [0 2 -1 0 0 0 0]; | ||
|
||
internalField uniform 0; | ||
|
||
boundaryField | ||
{ | ||
wall | ||
{ | ||
type nutkWallFunction; | ||
value $internalField; | ||
} | ||
|
||
#includeEtc "caseDicts/setConstraintTypes" | ||
} | ||
|
||
|
||
// ************************************************************************* // |
32 changes: 32 additions & 0 deletions
32
tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/BernardCells/0/p
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: dev | | ||
| \\ / A nd | Web: www.OpenFOAM.org | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
version 2.0; | ||
format ascii; | ||
class volScalarField; | ||
object p; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
dimensions [0 2 -2 0 0 0 0]; | ||
|
||
internalField uniform 0; | ||
|
||
boundaryField | ||
{ | ||
wall | ||
{ | ||
type calculated; | ||
value $internalField; | ||
} | ||
|
||
#includeEtc "caseDicts/setConstraintTypes" | ||
} | ||
|
||
// ************************************************************************* // |
33 changes: 33 additions & 0 deletions
33
tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/BernardCells/0/p_rgh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: dev | | ||
| \\ / A nd | Web: www.OpenFOAM.org | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
version 2.0; | ||
format ascii; | ||
class volScalarField; | ||
object p_rgh; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
dimensions [0 2 -2 0 0 0 0]; | ||
|
||
internalField uniform 0; | ||
|
||
boundaryField | ||
{ | ||
wall | ||
{ | ||
type fixedFluxPressure; | ||
rho rhok; | ||
value $internalField; | ||
} | ||
|
||
#includeEtc "caseDicts/setConstraintTypes" | ||
} | ||
|
||
// ************************************************************************* // |
22 changes: 22 additions & 0 deletions
22
tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/BernardCells/constant/g
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: dev | | ||
| \\ / A nd | Web: www.OpenFOAM.org | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
version 2.0; | ||
format ascii; | ||
class uniformDimensionedVectorField; | ||
location "constant"; | ||
object g; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
dimensions [0 1 -2 0 0 0 0]; | ||
value (0 -9.81 0); | ||
|
||
|
||
// ************************************************************************* // |
35 changes: 35 additions & 0 deletions
35
tutorials/heatTransfer/buoyantBoussinesqPimpleFoam/BernardCells/constant/transportProperties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: dev | | ||
| \\ / A nd | Web: www.OpenFOAM.org | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
version 2.0; | ||
format ascii; | ||
class dictionary; | ||
object transportProperties; | ||
} | ||
|
||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
transportModel Newtonian; | ||
|
||
// Laminar viscosity | ||
nu [0 2 -1 0 0 0 0] 1e-03; | ||
|
||
// Thermal expansion coefficient | ||
beta [0 0 0 -1 0 0 0] 1e-03; | ||
|
||
// Reference temperature | ||
TRef [0 0 0 1 0 0 0] 300; | ||
|
||
// Laminar Prandtl number | ||
Pr [0 0 0 0 0 0 0] 1.0; | ||
|
||
// Turbulent Prandtl number | ||
Prt [0 0 0 0 0 0 0] 1.0; | ||
|
||
// ************************************************************************* // |
30 changes: 30 additions & 0 deletions
30
...rials/heatTransfer/buoyantBoussinesqPimpleFoam/BernardCells/constant/turbulenceProperties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: dev | | ||
| \\ / A nd | Web: www.OpenFOAM.org | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
version 2.0; | ||
format ascii; | ||
class dictionary; | ||
location "constant"; | ||
object turbulenceProperties; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
simulationType laminar; | ||
|
||
RAS | ||
{ | ||
RASModel kEpsilon; | ||
|
||
turbulence on; | ||
|
||
printCoeffs on; | ||
} | ||
|
||
|
||
// ************************************************************************* // |
Oops, something went wrong.