Skip to content

Commit

Permalink
Merge pull request #70 from tonyinme/master
Browse files Browse the repository at this point in the history
Added uniform inflow ADM example
  • Loading branch information
ewquon authored Jul 6, 2020
2 parents d8438ca + 594ad35 commit 103832e
Show file tree
Hide file tree
Showing 54 changed files with 6,700 additions and 0 deletions.
60 changes: 60 additions & 0 deletions exampleCases/example.uniform.inflow.ADM/0/T
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;
}
}


// ************************************************************************* //
62 changes: 62 additions & 0 deletions exampleCases/example.uniform.inflow.ADM/0/U
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.
60 changes: 60 additions & 0 deletions exampleCases/example.uniform.inflow.ADM/0/nuSgs
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;
}
}


// ************************************************************************* //
55 changes: 55 additions & 0 deletions exampleCases/example.uniform.inflow.ADM/0/p
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;
}
}


// ************************************************************************* //
54 changes: 54 additions & 0 deletions exampleCases/example.uniform.inflow.ADM/0/p_rgh
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 exampleCases/example.uniform.inflow.ADM/constant/ABLProperties
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;

// ************************************************************************* //
Loading

0 comments on commit 103832e

Please sign in to comment.