/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  10
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    format      ascii;
    class       dictionary;
    location    "system";
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     pimpleFoam;

startFrom       latestTime;

startTime       0;

stopAt          endTime;

endTime         1;

deltaT          1e-3;

writeControl    adjustableRunTime;

writeInterval   0.01;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;

adjustTimeStep  yes;

maxCo           0.5;

functions
{
    #includeFunc patchFlowRate(funcName=inletFlowRate, patch=inlet)
    #includeFunc patchFlowRate(funcName=lowerOutletFlowRate, patch=lowerOutlet)
    #includeFunc patchFlowRate(funcName=upperOutletFlowRate, patch=upperOutlet)
    #includeFunc scalarTransport(s)
    #includeFunc reconstruct(phi)
    #includeFunc streamlinesPatch(patch=inlet, nPoints=100, U=reconstruct(phi))
    #includeFunc wallsSurface
}


// ************************************************************************* //
