/*--------------------------------*- 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 Y[O2] Y[CO]);
  plot1DMassLoss yes;
  writeFields (); // write fields in the time folders
  probingFunctions
  (
      plotDict
      surfacePatchDict
  ); // name of sampling/probing dictionaries in "system/porousMat"
}
/****************************** END IO ************************************/

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

Pyrolysis {
  PyrolysisType LinearArrhenius; // PATO pyrolysis
}

Mass {
  MassType DarcyLaw_Heterogeneous; // Solve the semi implicit pressure equation in cluding heterogeneous reactions
}

Energy {
  EnergyType Pyrolysis_Heterogeneous_SpeciesDiffusion;
}
/****************************** END MASS, ENERGY, PYROLYSIS ****************/

/****************************** GAS PROPERTIES  ************************************/
GasProperties {
  GasPropertiesType FiniteRate; // gas properties for finite-rate chemistry
}
/****************************** END GAS PROPERTIES **************************/

/****************************** MaterialChemistry  **********************************/
MaterialChemistry {
  MaterialChemistryType SpeciesConservation;
  mixture TACOT_oxidation_species; // Mutation++ mixture in "$PATO_DIR/data/ThermoTransportChemistry/mutation++/mixtures"
}
/****************************** END MaterialChemistry  ******************************/

/****************************** VOLUME ABLATION  **********************************/
VolumeAblation {
  VolumeAblationType FibrousMaterialTypeA; // Cylindrical fiber shrinking, fibrous material type A
}
/****************************** END VOLUME ABLATION  ******************************/

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

