-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from tonyinme/master
Added uniform inflow ADM example
- Loading branch information
Showing
54 changed files
with
6,700 additions
and
0 deletions.
There are no files selected for viewing
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,60 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: 1.6 | | ||
| \\ / A nd | Web: http://www.OpenFOAM.org | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
version 2.0; | ||
format ascii; | ||
class volScalarField; | ||
location "0"; | ||
object T ; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
#include "../setUp" | ||
|
||
|
||
dimensions [0 0 0 1 0 0 0]; | ||
|
||
internalField uniform $TBottom; | ||
|
||
boundaryField | ||
{ | ||
lower | ||
{ | ||
type fixedValue; | ||
value $internalField; | ||
} | ||
upper | ||
{ | ||
type fixedValue; | ||
value $internalField; | ||
} | ||
west | ||
{ | ||
type fixedValue; | ||
value $internalField; | ||
} | ||
east | ||
{ | ||
type fixedValue; | ||
value $internalField; | ||
} | ||
south | ||
{ | ||
type fixedValue; | ||
value $internalField; | ||
} | ||
north | ||
{ | ||
type fixedValue; | ||
value $internalField; | ||
} | ||
} | ||
|
||
|
||
// ************************************************************************* // |
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,62 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: 1.6 | | ||
| \\ / A nd | Web: http://www.OpenFOAM.org | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
version 2.0; | ||
format ascii; | ||
class volVectorField; | ||
location "0"; | ||
object U; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
#include "../setUp" | ||
|
||
|
||
dimensions [0 1 -1 0 0 0 0]; | ||
|
||
internalField uniform ($U0Mag 0 0); | ||
|
||
boundaryField | ||
{ | ||
lower | ||
{ | ||
type slip; | ||
value $internalField; | ||
} | ||
upper | ||
{ | ||
type slip; | ||
value $internalField; | ||
} | ||
west | ||
{ | ||
type fixedValue; | ||
value $internalField; | ||
} | ||
east | ||
{ | ||
type inletOutlet; | ||
inletValue uniform (0 0 0); | ||
value $internalField; | ||
} | ||
south | ||
{ | ||
type slip; | ||
value $internalField; | ||
} | ||
north | ||
{ | ||
type slip; | ||
value $internalField; | ||
} | ||
} | ||
|
||
|
||
|
||
// ************************************************************************* // |
Binary file not shown.
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,60 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: 2.1.x | | ||
| \\ / A nd | Web: www.OpenFOAM.org | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
version 2.0; | ||
format ascii; | ||
class volScalarField; | ||
location "0"; | ||
object nuSgs; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
#include "../setUp" | ||
|
||
|
||
dimensions [0 2 -1 0 0 0 0]; | ||
|
||
internalField uniform $nuSgs0; | ||
|
||
boundaryField | ||
{ | ||
lower | ||
{ | ||
type fixedValue; | ||
value uniform 0.0; | ||
} | ||
upper | ||
{ | ||
type fixedValue; | ||
value uniform 0.0; | ||
} | ||
west | ||
{ | ||
type fixedValue; | ||
value $internalField; | ||
} | ||
east | ||
{ | ||
type fixedValue; | ||
value $internalField; | ||
} | ||
north | ||
{ | ||
type fixedValue; | ||
value $internalField; | ||
} | ||
south | ||
{ | ||
type fixedValue; | ||
value $internalField; | ||
} | ||
} | ||
|
||
|
||
// ************************************************************************* // |
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,55 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: 1.6 | | ||
| \\ / A nd | Web: http://www.OpenFOAM.org | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
version 2.0; | ||
format ascii; | ||
class volScalarField; | ||
location "0000"; | ||
object p ; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
#include "../setUp" | ||
|
||
|
||
dimensions [0 2 -2 0 0 0 0]; | ||
|
||
internalField uniform $p_rgh0; | ||
|
||
boundaryField | ||
{ | ||
lower | ||
{ | ||
type zeroGradient; | ||
} | ||
upper | ||
{ | ||
type zeroGradient; | ||
} | ||
east | ||
{ | ||
type fixedValue; | ||
value $internalField; | ||
} | ||
west | ||
{ | ||
type zeroGradient; | ||
} | ||
south | ||
{ | ||
type zeroGradient; | ||
} | ||
north | ||
{ | ||
type zeroGradient; | ||
} | ||
} | ||
|
||
|
||
// ************************************************************************* // |
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,54 @@ | ||
/*--------------------------------*- C++ -*----------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: 1.6 | | ||
| \\ / A nd | Web: http://www.OpenFOAM.org | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
FoamFile | ||
{ | ||
version 2.0; | ||
format ascii; | ||
class volScalarField; | ||
location "0000"; | ||
object p_rgh; | ||
} | ||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
#include "../setUp" | ||
|
||
|
||
dimensions [0 2 -2 0 0 0 0]; | ||
|
||
internalField uniform $p_rgh0; | ||
|
||
boundaryField | ||
{ | ||
lower | ||
{ | ||
type fixedFluxPressure; | ||
} | ||
upper | ||
{ | ||
type fixedFluxPressure; | ||
} | ||
east | ||
{ | ||
type zeroGradient; | ||
} | ||
west | ||
{ | ||
type fixedFluxPressure; | ||
} | ||
south | ||
{ | ||
type fixedFluxPressure; | ||
} | ||
north | ||
{ | ||
type fixedFluxPressure; | ||
} | ||
} | ||
|
||
|
||
// ************************************************************************* // |
55 changes: 55 additions & 0 deletions
55
exampleCases/example.uniform.inflow.ADM/constant/ABLProperties
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,55 @@ | ||
/*---------------------------------------------------------------------------*\ | ||
| ========= | | | ||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | ||
| \\ / O peration | Version: 1.6 | | ||
| \\ / A nd | Web: http://www.openfoam.org | | ||
| \\/ M anipulation | | | ||
\*---------------------------------------------------------------------------*/ | ||
|
||
FoamFile | ||
{ | ||
version 2.0; | ||
format ascii; | ||
|
||
root ""; | ||
case ""; | ||
instance ""; | ||
local ""; | ||
|
||
class dictionary; | ||
object ABLProperties; | ||
} | ||
|
||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // | ||
|
||
#include "../setUp" | ||
|
||
|
||
|
||
// Properties of the mesoscale source terms | ||
momentumSourceType "given"; | ||
temperatureSourceType "given"; | ||
|
||
|
||
velocityInputType "speedAndDirection"; | ||
|
||
|
||
#include "../constant/sources" | ||
|
||
|
||
// Relaxation factors applied when computing sources given desired | ||
// velocity and temperature. | ||
alphaMomentum 0.7; | ||
alphaTemperature 0.7; | ||
|
||
|
||
// Properties of the Coriolis force | ||
planetaryRotationPeriod $EarthPeriod; | ||
latitude $latitude; | ||
|
||
|
||
// Statistics gathering input | ||
meanStartTime $meanStartTime; | ||
corrStartTime $corrStartTime; | ||
|
||
// ************************************************************************* // |
Oops, something went wrong.