Go to the documentation of this file.
40 #ifndef reactingOneDim_H
41 #define reactingOneDim_H
51 namespace regionModels
53 namespace pyrolysisModels
76 void readReactingOneDimControls();
213 const word& modelType,
215 const word& regionType
221 const word& modelType,
224 const word& regionType
265 virtual scalar
maxDiff()
const;
Base class for pyrolysis models.
autoPtr< solidReactionThermo > solidThermo_
Reference to solid thermo.
virtual ~reactingOneDim()
Destructor.
virtual tmp< volScalarField > kappa() const
Return the region thermal conductivity [W/m/k].
A class for handling words, derived from Foam::string.
virtual void preEvolveRegion()
Pre-evolve region.
virtual const surfaceScalarField & phiGas() const
Return the total gas mass flux to primary region [kg/m2/s].
void solveSpeciesMass()
Solve solid species mass conservation.
scalar maxDiff_
Maximum diffusivity.
A class for managing temporary objects.
Reacting, 1-D pyrolysis model NOTE: The moveMesh option can only be applied to solid reaction such as...
bool useChemistrySolvers_
Use chemistry solvers (ode or sequential)
void updatePhiGas()
Update enthalpy flux for pyrolysis gases.
void solveContinuity()
Solve continuity equation.
virtual scalar solidRegionDiffNo() const
Mean diffusion number of the solid region.
dimensionedScalar addedGasMass_
Cumulative mass generation of the gas phase [kg].
volScalarField rho_
Density [kg/m3].
bool gasHSource_
Add gas enthalpy source term.
void updateFields()
Update submodels.
volScalarField chemistryQdot_
Heat release rate [J/s/m3].
TypeName("reactingOneDim")
Runtime type information.
void calculateMassTransfer()
Mass check.
virtual scalar maxDiff() const
Return max diffusivity allowed in the solid.
label nNonOrthCorr_
Number of non-orthogonal correctors.
virtual const volScalarField & T() const
Return const temperature [K].
PtrList< volScalarField > & Ys_
List of solid components.
bool read()
Read control parameters from dictionary.
const volScalarField & rho() const
Fields.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
scalar minimumDelta_
Minimum delta for combustion.
virtual tmp< volScalarField > kappaRad() const
Return the region absorptivity [1/m].
dimensionedScalar totalHeatRR_
Total heat release rate [J/s].
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual scalar addMassSources(const label patchi, const label facei)
External hook to add mass to the primary region.
Mesh data needed to do the Finite Volume discretisation.
virtual void evolveRegion()
Evolve the pyrolysis equations.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
surfaceScalarField phiGas_
Total gas mass flux to the primary region [kg/m2/s].
volScalarField phiHsGas_
Sensible enthalpy gas flux [J/m2/s].
void updateMesh(const scalarField &mass0)
Update/move mesh based on change in mass.
bool qrHSource_
Add in depth radiation source term.
dimensionedScalar lostSolidMass_
Cumulative lost mass of the condensed phase [kg].
label nNonOrthCorr() const
Return the number of non-orthogonal correctors.
virtual void info()
Provide some feedback.
autoPtr< radiation::radiationModel > radiation_
Pointer to radiation model.
volScalarField qr_
Coupled region radiative heat flux [W/m2].
void solveEnergy()
Solve energy.
autoPtr< basicSolidChemistryModel > solidChemistry_
Reference to the solid chemistry model.
Generic GeometricField class.
void updateqr()
Update radiative flux in pyrolysis region.
scalar totalGasMassFlux_
Total mass gas flux at the pyrolysing walls [kg/s].
virtual const tmp< volScalarField > Cp() const
Return specific heat capacity [J/kg/K].