Skip to content
Snippets Groups Projects
Commit 4ff9c018 authored by henry's avatar henry
Browse files
parents 82a0c2ae dca06aff
Branches
Tags
No related merge requests found
Showing
with 158 additions and 86 deletions
...@@ -46,11 +46,14 @@ using namespace Foam; ...@@ -46,11 +46,14 @@ using namespace Foam;
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
timeSelector::addOptions();
#include "addRegionOption.H"
#include "setRootCase.H" #include "setRootCase.H"
#include "createTime.H" #include "createTime.H"
instantList timeDirs = timeSelector::select0(runTime, args); instantList timeDirs = timeSelector::select0(runTime, args);
#include "createMesh.H" #include "createNamedMesh.H"
#include "createFields.H" #include "createFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
#!/bin/sh
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get application name from directory
application="XiFoam"
cases=" \
pitzDaily \
pitzDaily3D
"
for i in $cases; do
blockMesh -case $i
$application -case $i
done
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object alphaSgs;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
inlet
{
type zeroGradient;
}
outlet
{
type zeroGradient;
}
upperWall
{
type zeroGradient;
}
lowerWall
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
}
// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object alphaSgs;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
inlet
{
type zeroGradient;
}
outlet
{
type zeroGradient;
}
upperWall
{
type zeroGradient;
}
lowerWall
{
type zeroGradient;
}
frontAndBack
{
type cyclic;
}
}
// ************************************************************************* //
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 | | \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org | | \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
...@@ -23,7 +23,7 @@ boundaryField ...@@ -23,7 +23,7 @@ boundaryField
{ {
walls walls
{ {
type alphatWallFunction; type compressible::alphatWallFunction;
value uniform 0; value uniform 0;
} }
} }
......
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 | | \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org | | \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
...@@ -23,7 +23,7 @@ boundaryField ...@@ -23,7 +23,7 @@ boundaryField
{ {
walls walls
{ {
type epsilonWallFunction; type compressible::epsilonWallFunction;
value uniform 90; value uniform 90;
} }
} }
......
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 | | \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org | | \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
...@@ -23,7 +23,7 @@ boundaryField ...@@ -23,7 +23,7 @@ boundaryField
{ {
walls walls
{ {
type kQRWallFunction; type compressible::kQRWallFunction;
value uniform 1; value uniform 1;
} }
} }
......
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 | | \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org | | \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
......
...@@ -15,9 +15,11 @@ FoamFile ...@@ -15,9 +15,11 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
psiChemistryModel ODEChemistryModel<gasThermoPhysics>;
chemistry off; chemistry off;
chemistrySolver ODE; chemistrySolver ode;
initialChemicalTimeStep 1e-07; initialChemicalTimeStep 1e-07;
...@@ -32,7 +34,7 @@ EulerImplicitCoeffs ...@@ -32,7 +34,7 @@ EulerImplicitCoeffs
equilibriumRateLimiter off; equilibriumRateLimiter off;
} }
ODECoeffs odeCoeffs
{ {
ODESolver SIBS; ODESolver SIBS;
eps 0.05; eps 0.05;
......
...@@ -15,7 +15,7 @@ FoamFile ...@@ -15,7 +15,7 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
thermoType hMixtureThermo<reactingMixture>; thermoType hPsiMixtureThermo<reactingMixture<gasThermoPhysics>>;
CHEMKINFile "$FOAM_CASE/chemkin/chem.inp"; CHEMKINFile "$FOAM_CASE/chemkin/chem.inp";
......
...@@ -23,22 +23,22 @@ boundaryField ...@@ -23,22 +23,22 @@ boundaryField
{ {
front front
{ {
type alphatWallFunction; type compressible::alphatWallFunction;
value uniform 0; value uniform 0;
} }
back back
{ {
type alphatWallFunction; type compressible::alphatWallFunction;
value uniform 0; value uniform 0;
} }
wall wall
{ {
type alphatWallFunction; type compressible::alphatWallFunction;
value uniform 0; value uniform 0;
} }
porosityWall porosityWall
{ {
type alphatWallFunction; type compressible::alphatWallFunction;
value uniform 0; value uniform 0;
} }
inlet inlet
......
...@@ -23,27 +23,27 @@ boundaryField ...@@ -23,27 +23,27 @@ boundaryField
{ {
front front
{ {
type epsilonWallFunction; type compressible::epsilonWallFunction;
value uniform 200; value uniform 200;
} }
back back
{ {
type epsilonWallFunction; type compressible::epsilonWallFunction;
value uniform 200; value uniform 200;
} }
wall wall
{ {
type epsilonWallFunction; type compressible::epsilonWallFunction;
value uniform 200; value uniform 200;
} }
porosityWall porosityWall
{ {
type epsilonWallFunction; type compressible::epsilonWallFunction;
value uniform 200; value uniform 200;
} }
inlet inlet
{ {
type turbulentMixingLengthDissipationRateInlet; type compressible::turbulentMixingLengthDissipationRateInlet;
mixingLength 0.005; mixingLength 0.005;
value uniform 200; value uniform 200;
} }
......
...@@ -23,22 +23,22 @@ boundaryField ...@@ -23,22 +23,22 @@ boundaryField
{ {
front front
{ {
type kQRWallFunction; type compressible::kQRWallFunction;
value uniform 1; value uniform 1;
} }
back back
{ {
type kQRWallFunction; type compressible::kQRWallFunction;
value uniform 1; value uniform 1;
} }
wall wall
{ {
type kQRWallFunction; type compressible::kQRWallFunction;
value uniform 1; value uniform 1;
} }
porosityWall porosityWall
{ {
type kQRWallFunction; type compressible::kQRWallFunction;
value uniform 1; value uniform 1;
} }
inlet inlet
......
...@@ -22,25 +22,25 @@ boundaryField ...@@ -22,25 +22,25 @@ boundaryField
{ {
floor floor
{ {
type calculated; type fixedFluxBuoyantPressure;
value uniform 100000; value uniform 100000;
} }
ceiling ceiling
{ {
type calculated; type fixedFluxBuoyantPressure;
value uniform 100000; value uniform 100000;
} }
fixedWalls fixedWalls
{ {
type calculated; type fixedFluxBuoyantPressure;
value uniform 100000; value uniform 100000;
} }
box box
{ {
type calculated; type fixedFluxBuoyantPressure;
value uniform 100000; value uniform 100000;
} }
} }
......
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object pd;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
floor
{
type fixedFluxBuoyantPressure;
value uniform 0;
}
ceiling
{
type fixedFluxBuoyantPressure;
value uniform 0;
}
fixedWalls
{
type fixedFluxBuoyantPressure;
value uniform 0;
}
box
{
type fixedFluxBuoyantPressure;
value uniform 0;
}
}
// ************************************************************************* //
...@@ -41,7 +41,7 @@ laplacianSchemes ...@@ -41,7 +41,7 @@ laplacianSchemes
{ {
default none; default none;
laplacian(muEff,U) Gauss linear corrected; laplacian(muEff,U) Gauss linear corrected;
laplacian((rho*(1|A(U))),pd) Gauss linear corrected; laplacian((rho*(1|A(U))),p) Gauss linear corrected;
laplacian(alphaEff,h) Gauss linear corrected; laplacian(alphaEff,h) Gauss linear corrected;
laplacian(DkEff,k) Gauss linear corrected; laplacian(DkEff,k) Gauss linear corrected;
laplacian(DepsilonEff,epsilon) Gauss linear corrected; laplacian(DepsilonEff,epsilon) Gauss linear corrected;
...@@ -62,7 +62,7 @@ snGradSchemes ...@@ -62,7 +62,7 @@ snGradSchemes
fluxRequired fluxRequired
{ {
default no; default no;
pd ; p;
} }
......
...@@ -17,7 +17,7 @@ FoamFile ...@@ -17,7 +17,7 @@ FoamFile
solvers solvers
{ {
pd p
{ {
solver PCG; solver PCG;
preconditioner DIC; preconditioner DIC;
...@@ -69,14 +69,14 @@ solvers ...@@ -69,14 +69,14 @@ solvers
SIMPLE SIMPLE
{ {
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
pdRefCell 0; pRefCell 0;
pdRefValue 0; pRefValue 0;
} }
relaxationFactors relaxationFactors
{ {
rho 1; rho 1;
pd 0.3; p 0.3;
U 0.7; U 0.7;
h 0.7; h 0.7;
k 0.7; k 0.7;
......
...@@ -22,25 +22,25 @@ boundaryField ...@@ -22,25 +22,25 @@ boundaryField
{ {
floor floor
{ {
type calculated; type fixedFluxBuoyantPressure;
value uniform 100000; value uniform 100000;
} }
ceiling ceiling
{ {
type calculated; type fixedFluxBuoyantPressure;
value uniform 100000; value uniform 100000;
} }
fixedWalls fixedWalls
{ {
type calculated; type fixedFluxBuoyantPressure;
value uniform 100000; value uniform 100000;
} }
box box
{ {
type calculated; type fixedFluxBuoyantPressure;
value uniform 100000; value uniform 100000;
} }
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment