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

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

/****************************** IO *****************************************/
IO {
  writeFields (U rho_g); // write fields in the time folders
  probingFunctions
  (
      plotDict
  ); // name of sampling/probing dictionaries in "system/porousMat"
}
/****************************** END IO ************************************/

/****************************** MASS, ENERGY, PYROLYSIS *******************/
MaterialProperties {
  MaterialPropertiesType         Porous; // porous material properties
  MaterialPropertiesDirectory    "$PATO_DIR/data/Materials/dummyPorousMaterial"; // material properties file
}

Pyrolysis {
  PyrolysisType    virgin; // PATO pyrolysis
}

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

Energy {
  EnergyType    Forchheimer2T;  // Solve the temperature equation
}

SolidMechanics {
  SolidMechanicsType    no;
}
/****************************** END MASS, ENERGY, PYROLYSIS ****************/

/****************************** GAS PROPERTIES  ************************************/
GasProperties {
  GasPropertiesType    Tabulated2T; // tabulated gas properties
  GasPropertiesFile    "$PATO_DIR/data/Materials/dummyPorousMaterial/gasProperties_with_k"; // tabulated gas properties file
}
/****************************** END GAS 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  ******************************/
