Corrections to get the tutorial test loop to run cleanly.

This commit is contained in:
henry
2009-07-09 23:28:54 +01:00
parent 14360a83ea
commit 37b0fe0ade
38 changed files with 124 additions and 66 deletions

View File

@ -2,11 +2,10 @@ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-IBCs/lnInclude \ -IBCs/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude -I$(LIB_SRC)/sampling/lnInclude
EXE_LIBS = \ EXE_LIBS = \
-lfiniteVolume \ -lfiniteVolume \
-lbasicThermophysicalModels \ -lbasicThermophysicalModels \
-lspecie \ -lspecie \
-L$(FOAM_USER_LIBBIN) \
-lrhoCentralFoam -lrhoCentralFoam

View File

@ -348,7 +348,8 @@ int main(int argc, char *argv[])
<< exit(FatalError); << exit(FatalError);
} }
Info<< nl << "end" << endl; Info<< nl << "End" << endl;
return 0; return 0;
} }

View File

@ -492,6 +492,8 @@ int main(int argc, char *argv[])
delete ensightCaseFilePtr; delete ensightCaseFilePtr;
} }
Info<< "End\n" << endl;
return 0; return 0;
} }

View File

@ -88,7 +88,7 @@ int main(int argc, char *argv[])
} }
} }
Info << nl << "Translation Complete." << nl; Info<< "\nEnd\n" << endl;
return 0; return 0;
} }

View File

@ -84,6 +84,8 @@ int main(int argc, char *argv[])
utility().tryPostCalc(args, runTime, mesh); utility().tryPostCalc(args, runTime, mesh);
Info<< "End\n" << endl;
return 0; return 0;
} }

View File

@ -179,6 +179,8 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
{ {
Info<< " No phi" << endl; Info<< " No phi" << endl;
} }
Info<< "\nEnd\n" << endl;
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,4 +1,4 @@
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------* \
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
@ -78,6 +78,8 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
{ {
Info<< " No U" << endl; Info<< " No U" << endl;
} }
Info<< "\nEnd\n" << endl;
} }

View File

@ -134,6 +134,8 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
{ {
Info<< " Missing U or T" << endl; Info<< " Missing U or T" << endl;
} }
Info<< "\nEnd\n" << endl;
} }

View File

@ -1,4 +1,4 @@
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------* \
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
@ -361,6 +361,9 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
{ {
Info<< " No phi" << endl; Info<< " No phi" << endl;
} }
Info<< "\nEnd\n" << endl;
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,4 +1,4 @@
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------* \
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
@ -105,6 +105,9 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
{ {
Info<< " No U" << endl; Info<< " No U" << endl;
} }
Info<< "\nEnd\n" << endl;
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -80,6 +80,8 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
{ {
Info<< " No U" << endl; Info<< " No U" << endl;
} }
Info<< "\nEnd\n" << endl;
} }

View File

@ -1,4 +1,4 @@
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------* \
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
@ -87,6 +87,8 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
{ {
Info<< " No U" << endl; Info<< " No U" << endl;
} }
Info<< "\nEnd\n" << endl;
} }

View File

@ -1,4 +1,4 @@
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------* \
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
@ -460,7 +460,7 @@ int main(int argc, char *argv[])
} }
} }
Info<< "End\n" << endl; Info<< "\nEnd\n" << endl;
return 0; return 0;
} }

View File

@ -1,4 +1,4 @@
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------* \
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
@ -80,6 +80,9 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
{ {
Info<< " No k" << endl; Info<< " No k" << endl;
} }
Info<< "\nEnd\n" << endl;
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,4 +1,4 @@
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------* \
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
@ -93,6 +93,9 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
{ {
Info<< " No U" << endl; Info<< " No U" << endl;
} }
Info<< "\nEnd\n" << endl;
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,8 +1,8 @@
/*--------------------------------*- 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: http://www.OpenFOAM.org | | \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
@ -10,28 +10,42 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
object alpha1; location "0";
object alphat;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 0 0 0 0 0]; dimensions [1 -1 -1 0 0 0 0];
internalField uniform 0; internalField uniform 0;
boundaryField boundaryField
{ {
front inlet
{
type empty;
}
back
{
type empty;
}
walls
{ {
type zeroGradient; type zeroGradient;
} }
outlet
{
type zeroGradient;
}
upperWall
{
type zeroGradient;
}
lowerWall
{
type zeroGradient;
}
frontAndBack
{
type empty;
}
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,8 +1,8 @@
/*--------------------------------*- 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: http://www.OpenFOAM.org | | \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
@ -10,6 +10,7 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class polyBoundaryMesh; class polyBoundaryMesh;
location "constant/polyMesh";
object boundary; object boundary;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -45,6 +45,11 @@ timePrecision 6;
runTimeModifiable yes; runTimeModifiable yes;
adjustTimeStep no;
maxCo 0.5;
functions functions
{ {
fieldAverage1 fieldAverage1

View File

@ -4,6 +4,5 @@
runApplication blockMesh runApplication blockMesh
runApplication snappyHexMesh -overwrite runApplication snappyHexMesh -overwrite
runApplication setFields
runApplication buoyantBoussinesqSimpleFoam runApplication buoyantBoussinesqSimpleFoam

View File

@ -10,9 +10,8 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class dictionary; class dictionary;
object autoHexMeshDict; object snappyHexMeshDict;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Which of the steps to run // Which of the steps to run
@ -317,7 +316,6 @@ addLayersControls
// Create buffer region for new layer terminations // Create buffer region for new layer terminations
nBufferCellsNoExtrude 0; nBufferCellsNoExtrude 0;
// Overall max number of layer addition iterations // Overall max number of layer addition iterations
nLayerIter 50; nLayerIter 50;
} }
@ -391,4 +389,5 @@ debug 0;
// Note: the write tolerance needs to be higher than this. // Note: the write tolerance needs to be higher than this.
mergeTolerance 1E-6; mergeTolerance 1E-6;
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,11 +10,13 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class uniformDimensionedVectorField; class uniformDimensionedVectorField;
location "constant";
object g; object g;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -2 0 0 0 0]; dimensions [0 1 -2 0 0 0 0];
value (0 -9.81 0); value ( 0 -9.81 0 );
// ************************************************************************* // // ************************************************************************* //

View File

@ -0,0 +1 @@
../bottomAir/g

View File

@ -1,11 +1,10 @@
/*---------------------------------------------------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.0 | | \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.openfoam.org | | \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile
{ {
version 2.0; version 2.0;
@ -13,7 +12,6 @@ FoamFile
class dictionary; class dictionary;
object snappyHexMeshDict; object snappyHexMeshDict;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Which of the steps to run // Which of the steps to run
@ -176,6 +174,8 @@ snapControls
// Settings for the layer addition. // Settings for the layer addition.
addLayersControls addLayersControls
{ {
relativeSizes true;
// Per final patch (so not geometry!) the layer information // Per final patch (so not geometry!) the layer information
layers layers
{ {
@ -460,7 +460,7 @@ addLayersControls
// is the // is the
// thickness of the layer furthest away from the wall. // thickness of the layer furthest away from the wall.
// Relative to undistorted size of cell outside layer. // Relative to undistorted size of cell outside layer.
finalLayerRatio 0.3; finalLayerThickness 0.3;
//- Minimum thickness of cell layer. If for any reason layer //- Minimum thickness of cell layer. If for any reason layer
// cannot be above minThickness do not add layer. // cannot be above minThickness do not add layer.
@ -504,6 +504,9 @@ addLayersControls
// Create buffer region for new layer terminations // Create buffer region for new layer terminations
nBufferCellsNoExtrude 0; nBufferCellsNoExtrude 0;
// Overall max number of layer addition iterations
nLayerIter 50;
} }

View File

@ -22,12 +22,14 @@ boundaryField
{ {
walls walls
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
obstacle obstacle
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
atmosphere atmosphere

View File

@ -22,12 +22,14 @@ boundaryField
{ {
walls walls
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
obstacle obstacle
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
atmosphere atmosphere

View File

@ -30,7 +30,8 @@ boundaryField
} }
walls walls
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
} }

View File

@ -56,7 +56,7 @@ functions
probes probes
{ {
type probes; type probes;
functionObjectLibs ( "libsampling.so" ); functionObjectLibs ("libsampling.so");
outputControl timeStep; outputControl timeStep;
outputInterval 1; outputInterval 1;
probeLocations probeLocations
@ -73,7 +73,7 @@ functions
wallPressure wallPressure
{ {
type surfaces; type surfaces;
functionObjectLibs ( "libsampling.so" ); functionObjectLibs ("libsampling.so");
outputControl timeStep; outputControl timeStep;
outputInterval 10; outputInterval 10;
surfaceFormat raw; surfaceFormat raw;

View File

@ -30,7 +30,8 @@ boundaryField
} }
walls walls
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
} }

View File

@ -23,8 +23,6 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// User-defined parameters // User-defined parameters

View File

@ -1,8 +1,8 @@
/*--------------------------------*- 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: http://www.OpenFOAM.org | | \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
FoamFile FoamFile

View File

@ -56,9 +56,9 @@ functions
probes probes
{ {
type probes; type probes;
name probes; functionObjectLibs ("libsampling.so");
outputControl timeStep; outputControl timeStep;
outputInterval 10; outputInterval 1;
probeLocations probeLocations
( (
( 0 9.95 19.77 ) ( 0 9.95 19.77 )
@ -73,7 +73,7 @@ functions
wallPressure wallPressure
{ {
type surfaces; type surfaces;
functionObjectLibs ( "libsampling.so" ); functionObjectLibs ("libsampling.so");
outputControl timeStep; outputControl timeStep;
outputInterval 10; outputInterval 10;
surfaceFormat raw; surfaceFormat raw;
@ -81,6 +81,7 @@ functions
( (
p p
); );
surfaces surfaces
( (
walls walls

View File

@ -22,7 +22,8 @@ boundaryField
{ {
walls walls
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
} }

View File

@ -56,7 +56,7 @@ functions
probes probes
{ {
type probes; type probes;
name probes; functionObjectLibs ("libsampling.so");
outputControl timeStep; outputControl timeStep;
outputInterval 1; outputInterval 1;
probeLocations probeLocations

View File

@ -22,7 +22,8 @@ boundaryField
{ {
walls walls
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
} }

View File

@ -56,7 +56,7 @@ functions
probes probes
{ {
type probes; type probes;
name probes; functionObjectLibs ("libsampling.so");
outputControl timeStep; outputControl timeStep;
outputInterval 1; outputInterval 1;
probeLocations probeLocations

View File

@ -22,7 +22,8 @@ boundaryField
{ {
walls walls
{ {
type zeroGradient; type buoyantPressure;
value uniform 0;
} }
} }

View File

@ -56,7 +56,7 @@ functions
probes probes
{ {
type probes; type probes;
name probes; functionObjectLibs ("libsampling.so");
outputControl timeStep; outputControl timeStep;
outputInterval 1; outputInterval 1;
probeLocations probeLocations