/*--------------------------------*- 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 Profile;
  topPatch top;
  bottomPatch bottom;
  plot1DProfileList (rho_s eps_s[1] eps_s[2] eps_s[3]);
  plot1DMassLoss yes;
  writeFields (eps_s[1] eps_s[2] eps_s[3]); // 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 Tabulated; // tabulated gas properties
  GasPropertiesFile "$PATO_DIR/data/Materials/Composites/TACOT/gasProperties"; // tabulated gas properties file
}
/****************************** END GAS PROPERTIES **************************/

/****************************** MATERIAL PROPERTIES  ************************/
MaterialProperties {
  MaterialPropertiesType GradedPorous; // porous material properties
  MaterialPropertiesDirectory "$FOAM_CASE/gradedTACOT"; // material properties file
}
/****************************** END MATERIAL PROPERTIES  ********************/

/****************************** 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  ******************************/
