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

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

/****************************** GENERAL ************************************/
//debug yes;
movingMesh      no;
/****************************** end GENERAL ********************************/

/****************************** IO *****************************************/
IO {
  IOType mass;
  topPatchName top;
  massOutputFile "output/porousMat/mass";
  massLossOutputFile "output/porousMat/massLoss";
  writeFields (); // write fields in the time folders
  probingFunctions
  (
      plotDict
      surfacePatchDict
  ); // name of sampling/probing dictionaries in "system/porousMat"
}
/****************************** END IO ************************************/

/****************************** MASS, ENERGY, PYROLYSIS *******************/
Pyrolysis {
  PyrolysisType LinearArrhenius; // PATO pyrolysis
}

Mass {
  MassType DarcyLaw; // Solve the semi implicit pressure equation
}

Energy {
  EnergyType Pyrolysis; // Solve the temperature equation
}
/****************************** END MASS, ENERGY, PYROLYSIS ****************/

/****************************** GAS PROPERTIES  ****************************/
GasProperties {
  GasPropertiesType Equilibrium; // Equilibrium gas properties (p,T,Zx)
}
/****************************** END GAS PROPERTIES **************************/

/****************************** MATERIAL PROPERTIES  ************************/
MaterialProperties {
  MaterialPropertiesType Porous; // porous material properties
  MaterialPropertiesDirectory "$FOAM_CASE/TACOT-air"; // material properties file
}
/****************************** END MATERIAL PROPERTIES  ********************/

/****************************** MaterialChemistry  **********************************/
MaterialChemistry {
  MaterialChemistryType EquilibriumElement;
  mixture tacotair;
}
/****************************** END MaterialChemistry  ******************************/

/****************************** TIME CONTROL  **********************************/
TimeControl {
  TimeControlType GradP; // change the integration time step in function of the gradient of the pressure and the species mass fractions
  chemTransEulerStepLimiter no;
}
/****************************** END TIME CONTROL  ******************************/
