/*--------------------------------*- 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 {
  writeFields (U vG eps_g M_g rho_g mu_g); // 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/CarbonFiberPreform"; // material properties file
}

Pyrolysis {
  PyrolysisType virgin; // PATO pyrolysis
}

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

Energy {
  EnergyType Pyrolysis2T;// Pyrolysis2T;// no; //Pyrolysis2T;  // Solve the temperature equation
}

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

/****************************** GAS PROPERTIES  ************************************/
GasProperties {
  GasPropertiesType Tabulated2T; // tabulated gas properties
  GasPropertiesFile "$PATO_DIR/data/Materials/Composites/CarbonFiberPreform/gasProperties_with_k"; // tabulated gas property 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  ******************************/
