/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile {
  version     2.0;
  format      ascii;
  class       dictionary;
  location    "system";
  object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application     PATOxs;

startFrom       latestTime;

startTime       0;

stopAt          endTime;

endTime         10;

deltaT          1e-8;

writeControl    adjustableRunTime;

writeInterval   0.1;

purgeWrite      0;

writeFormat     ascii;

writePrecision  6;

writeCompression uncompressed;

timeFormat      general;

timePrecision   6;

graphFormat     xmgr;

runTimeModifiable true;

/* Adjustable time step - based on a limiter on the max. pressure gradient and on species mass-fraction variations */
adjustTimeStep  yes; // you can turn it off but it's going to be very slow

adjustStartTime 0;

maxCo           0.05;

maxDeltaT   1e-3; // reduce it if the surface temperature starts oscilliating

minDeltaT   1e-8;

REVlength   1e3;

minChemDeltaT   1e-6; // Minimum time step for species equation

dYtolMin    0.05; // Min variation of mass fractions in species equation
dYtolMax    0.1; // Max
Ythreshold  0.001; // Species below this mass fraction are ignored for the time step optimization
/* End adjustable time step */

// For cfd coupled simulation, allow the flow to adjust to the solid temperature
delaySolid 1e-6; // time in seconds
delayFluid 0; // time in seconds

// Criteria of stittching method
solidStitchTolerance	5;
fluidStitchTolerance	5e+07;
forceFluidUpdate	0.1;

stitchingSolidPatch porousMat_to_flow;
stitchingFluidPatch flow_to_porousMat;

libs
(
    "libfluidThermophysicalModelsFrozen.so"
    //"libsampling.so"
);
// ************************************************************************* //
