Packaged function objects to plug into OpenFOAM cases

See $FOAM_ETC/caseDicts/postProcessing/README for details
This commit is contained in:
Chris Greenshields
2015-05-17 18:22:13 +01:00
parent 46a4446587
commit 7283ecbd2a
67 changed files with 1912 additions and 0 deletions

View File

@ -0,0 +1,40 @@
/*--------------------------------*- 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;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Tinlet 1;
dimensions [0 0 0 0 0 0 0]; // T can represent any scalar
// with any dimensional units
internalField uniform 0;
boundaryField
{
inlet
{
type fixedValue;
value uniform $Tinlet;
}
".*"
{
type zeroGradient;
}
#includeEtc "caseDicts/setConstraintTypes"
}
// ************************************************************************* //

View File

@ -0,0 +1,25 @@
/*--------------------------------*- 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 scalarTransport.cfg;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
T
{
#includeEtc "caseDicts/postProcessing/scalarTransport/scalarTransport.cfg"
userDT true;
DT 1e-09;
}
// ************************************************************************* //

View File

@ -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 dictionary;
object scalarTransport.cfg;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
type scalarTransport;
functionObjectLibs ("libutilityFunctionObjects.so");
enabled true;
outputControl timeStep;
writeInterval 1;
write true;
log false;
resetOnStartUp false;
autoSchemes true;
fvOptions {};
// ************************************************************************* //

View File

@ -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 dictionary;
object scalarTransportDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// controlDict settings
startTime 0;
stopAt endTime;
endTime 1;
deltaT 1e-4;
writeControl runTime;
writeInterval 1e-2;
// transportProperties settings
DT DT [ 0 2 -1 0 0 0 0 ] 1e-9;
#includeEtc "caseDicts/postProcessing/scalarTransport/scalarTransportDict.cfg"
// ************************************************************************* //

View File

@ -0,0 +1,49 @@
/*--------------------------------*- 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 scalarTransportDict.cfg;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// fvSchemes settings
ddtSchemes
{
default Euler;
}
divSchemes
{
div(phi,T) Gauss limitedLinear 1;
}
// fvSolution settings
solvers
{
T
{
solver smoothSolver;
smoother symGaussSeidel;
tolerance 1e-6;
relTol 0;
}
}
relaxationFactors
{
fields
{
}
equations
{
}
}
// ************************************************************************* //