- can now specify sampled sets as dictionary entries instead of a list entry. can now use: sets { ... } instead of: sets ( ... ); This is similar to sampled surfaces and makes it easier to manage with dictionary manipulation tools. TUT: update to use writeTime instead of outputTime
99 lines
2.1 KiB
C++
99 lines
2.1 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: v2112 |
|
|
| \\ / A nd | Website: www.openfoam.com |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class dictionary;
|
|
object controlDict;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
application interFoam;
|
|
|
|
startFrom startTime;
|
|
|
|
startTime 0;
|
|
|
|
stopAt endTime;
|
|
|
|
endTime 10;
|
|
|
|
deltaT 0.001;
|
|
|
|
writeControl adjustable;
|
|
|
|
writeInterval 0.1;
|
|
|
|
purgeWrite 0;
|
|
|
|
writeFormat ascii;
|
|
|
|
writePrecision 6;
|
|
|
|
writeCompression off;
|
|
|
|
timeFormat general;
|
|
|
|
timePrecision 6;
|
|
|
|
runTimeModifiable yes;
|
|
|
|
adjustTimeStep on;
|
|
|
|
maxCo 1;
|
|
|
|
maxAlphaCo 1;
|
|
|
|
maxDeltaT 1;
|
|
|
|
functions
|
|
{
|
|
sTransport
|
|
{
|
|
type scalarTransport;
|
|
libs (solverFunctionObjects);
|
|
|
|
enabled true;
|
|
writeControl writeTime;
|
|
writeInterval 1;
|
|
|
|
field s;
|
|
|
|
write true;
|
|
|
|
phase alpha.water;
|
|
bounded01 false;
|
|
|
|
// Adding fvOption source for residence time
|
|
fvOptions
|
|
{
|
|
unitySource
|
|
{
|
|
type scalarSemiImplicitSource;
|
|
enabled true;
|
|
|
|
scalarSemiImplicitSourceCoeffs
|
|
{
|
|
selectionMode all;
|
|
volumeMode specific;
|
|
injectionRateSuSp
|
|
{
|
|
s (1 0);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
resetOnStartUp false;
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|