ENH: Update tutorial for features directionalPressureGradient, Global file handling

This commit is contained in:
Prashant
2016-06-03 16:38:34 +05:30
parent 91d4bab09c
commit ec5a0e75b4
11 changed files with 94 additions and 417 deletions

View File

@ -14,7 +14,7 @@ FoamFile
object fvOptions; object fvOptions;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
/*
airDeflection airDeflection
{ {
type directionalPressureGradientExplicitSource; type directionalPressureGradientExplicitSource;
@ -47,5 +47,5 @@ airDeflection
fileName "volFlowRateTable"; fileName "volFlowRateTable";
} }
} }
*/
// ************************************************************************* // // ************************************************************************* //

View File

@ -15,6 +15,8 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "solverControls"
libs ("libliquidPropertiesFvPatchFields.so"); libs ("libliquidPropertiesFvPatchFields.so");
application chtMultiRegionFoam; application chtMultiRegionFoam;
@ -31,8 +33,6 @@ deltaT 0.01;
writeControl adjustableRunTime; writeControl adjustableRunTime;
writeInterval 2.5;
purgeWrite 0; purgeWrite 0;
writeFormat binary; writeFormat binary;
@ -49,12 +49,8 @@ runTimeModifiable true;
adjustTimeStep yes; adjustTimeStep yes;
maxCo 12;
maxDi 10; maxDi 10;
maxDeltaT 1;
functions functions
{ {
H2O H2O
@ -85,14 +81,14 @@ functions
outputControl timeStep; outputControl timeStep;
outputInterval 1; outputInterval 1;
region cabin; region cabin;
fileToUpdate "$FOAM_CASE/system/controlDict"; fileToUpdate "$FOAM_CASE/system/solverControls";
timeVsFile timeVsFile
( (
( 1 "$FOAM_CASE/system/controlDict.0" ) ( 1 "$FOAM_CASE/system/solverControls.0" )
( 5 "$FOAM_CASE/system/controlDict.5") ( 5 "$FOAM_CASE/system/solverControls.5")
( 20 "$FOAM_CASE/system/controlDict.20") ( 20 "$FOAM_CASE/system/solverControls.20")
( 60 "$FOAM_CASE/system/controlDict.60") ( 60 "$FOAM_CASE/system/solverControls.60")
); );
} }
} }

View File

@ -1,101 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs ("libliquidPropertiesFvPatchFields.so");
application chtMultiRegionFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 90;
deltaT 0.01;
writeControl adjustableRunTime;
writeInterval 10;
purgeWrite 0;
writeFormat binary;
writePrecision 10;
writeCompression off;
timeFormat general;
timePrecision 6;
runTimeModifiable true;
adjustTimeStep yes;
maxCo 2.5;
maxDi 10;
maxDeltaT 0.3;
functions
{
H2O
{
type scalarTransport;
functionObjectLibs ("libutilityFunctionObjects.so");
resetOnStartUp no;
region cabin;
// employ schemes used by U to the scalar transport equation
// note: field name is given by the name of the function, in this case
// 'scalar1'
autoSchemes no;
fvOptions
{
}
}
fileUpdate
{
type timeActivatedFileUpdate;
functionObjectLibs ("libutilityFunctionObjects.so");
outputControl timeStep;
outputInterval 1;
region cabin;
fileToUpdate "$FOAM_CASE/system/controlDict";
timeVsFile
(
( 1 "$FOAM_CASE/system/controlDict.0" )
( 5 "$FOAM_CASE/system/controlDict.5")
( 20 "$FOAM_CASE/system/controlDict.20")
( 60 "$FOAM_CASE/system/controlDict.60")
);
}
}
// ************************************************************************* //

View File

@ -1,101 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs ("libliquidPropertiesFvPatchFields.so");
application chtMultiRegionFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 90;
deltaT 0.01;
writeControl adjustableRunTime;
writeInterval 10;
purgeWrite 0;
writeFormat binary;
writePrecision 10;
writeCompression off;
timeFormat general;
timePrecision 6;
runTimeModifiable true;
adjustTimeStep yes;
maxCo 8;
maxDi 10;
maxDeltaT 1;
functions
{
H2O
{
type scalarTransport;
functionObjectLibs ("libutilityFunctionObjects.so");
resetOnStartUp no;
region cabin;
// employ schemes used by U to the scalar transport equation
// note: field name is given by the name of the function, in this case
// 'scalar1'
autoSchemes no;
fvOptions
{
}
}
fileUpdate
{
type timeActivatedFileUpdate;
functionObjectLibs ("libutilityFunctionObjects.so");
outputControl timeStep;
outputInterval 1;
region cabin;
fileToUpdate "$FOAM_CASE/system/controlDict";
timeVsFile
(
( 1 "$FOAM_CASE/system/controlDict.0" )
( 5 "$FOAM_CASE/system/controlDict.5")
( 20 "$FOAM_CASE/system/controlDict.20")
( 60 "$FOAM_CASE/system/controlDict.60")
);
}
}
// ************************************************************************* //

View File

@ -1,101 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs ("libliquidPropertiesFvPatchFields.so");
application chtMultiRegionFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 90;
deltaT 0.01;
writeControl adjustableRunTime;
writeInterval 10;
purgeWrite 0;
writeFormat binary;
writePrecision 10;
writeCompression off;
timeFormat general;
timePrecision 6;
runTimeModifiable true;
adjustTimeStep yes;
maxCo 5;
maxDi 10;
maxDeltaT 1;
functions
{
H2O
{
type scalarTransport;
functionObjectLibs ("libutilityFunctionObjects.so");
resetOnStartUp no;
region cabin;
// employ schemes used by U to the scalar transport equation
// note: field name is given by the name of the function, in this case
// 'scalar1'
autoSchemes no;
fvOptions
{
}
}
fileUpdate
{
type timeActivatedFileUpdate;
functionObjectLibs ("libutilityFunctionObjects.so");
outputControl timeStep;
outputInterval 1;
region cabin;
fileToUpdate "$FOAM_CASE/system/controlDict";
timeVsFile
(
( 1 "$FOAM_CASE/system/controlDict.0" )
( 5 "$FOAM_CASE/system/controlDict.5")
( 20 "$FOAM_CASE/system/controlDict.20")
( 60 "$FOAM_CASE/system/controlDict.60")
);
}
}
// ************************************************************************* //

View File

@ -1,101 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
libs ("libliquidPropertiesFvPatchFields.so");
application chtMultiRegionFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 90;
deltaT 0.01;
writeControl adjustableRunTime;
writeInterval 2.5;
purgeWrite 0;
writeFormat binary;
writePrecision 10;
writeCompression off;
timeFormat general;
timePrecision 6;
runTimeModifiable true;
adjustTimeStep yes;
maxCo 12;
maxDi 10;
maxDeltaT 1;
functions
{
H2O
{
type scalarTransport;
functionObjectLibs ("libutilityFunctionObjects.so");
resetOnStartUp no;
region cabin;
// employ schemes used by U to the scalar transport equation
// note: field name is given by the name of the function, in this case
// 'scalar1'
autoSchemes no;
fvOptions
{
}
}
fileUpdate
{
type timeActivatedFileUpdate;
functionObjectLibs ("libutilityFunctionObjects.so");
outputControl timeStep;
outputInterval 1;
region cabin;
fileToUpdate "$FOAM_CASE/system/controlDict";
timeVsFile
(
( 1 "$FOAM_CASE/system/controlDict.0" )
( 5 "$FOAM_CASE/system/controlDict.5")
( 20 "$FOAM_CASE/system/controlDict.20")
( 60 "$FOAM_CASE/system/controlDict.60")
);
}
}
// ************************************************************************* //

View File

@ -0,0 +1,17 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
writeInterval 10;
maxCo 2.5;
maxDeltaT 0.3;
#inputMode merge
// ************************************************************************* //

View File

@ -0,0 +1,17 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
writeInterval 10;
maxCo 2.5;
maxDeltaT 0.3;
#inputMode merge
// ************************************************************************* //

View File

@ -0,0 +1,17 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
writeInterval 10;
maxCo 8;
maxDeltaT 1;
#inputMode merge
// ************************************************************************* //

View File

@ -0,0 +1,17 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
writeInterval 10;
maxCo 5;
maxDeltaT 1;
#inputMode merge
// ************************************************************************* //

View File

@ -0,0 +1,17 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
writeInterval 2.5;
maxCo 12;
maxDeltaT 1;
#inputMode merge
// ************************************************************************* //