mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Pyrolysis - updated handling for phiGas
This commit is contained in:
@ -251,15 +251,12 @@ void reactingOneDim::solveEnergy()
|
|||||||
|
|
||||||
tmp<volScalarField> alpha(solidThermo_.alpha());
|
tmp<volScalarField> alpha(solidThermo_.alpha());
|
||||||
|
|
||||||
const surfaceScalarField phiGas(fvc::interpolate(phiHsGas_));
|
|
||||||
|
|
||||||
fvScalarMatrix hEqn
|
fvScalarMatrix hEqn
|
||||||
(
|
(
|
||||||
fvm::ddt(rho_, h_)
|
fvm::ddt(rho_, h_)
|
||||||
- fvm::laplacian(alpha, h_)
|
- fvm::laplacian(alpha, h_)
|
||||||
==
|
==
|
||||||
chemistrySh_
|
chemistrySh_
|
||||||
+ fvc::div(phiGas)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if (regionMesh().moving())
|
if (regionMesh().moving())
|
||||||
@ -334,7 +331,7 @@ reactingOneDim::reactingOneDim(const word& modelType, const fvMesh& mesh)
|
|||||||
"phiGas",
|
"phiGas",
|
||||||
time().timeName(),
|
time().timeName(),
|
||||||
regionMesh(),
|
regionMesh(),
|
||||||
IOobject::NO_READ,
|
IOobject::READ_IF_PRESENT,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
regionMesh(),
|
regionMesh(),
|
||||||
|
|||||||
Reference in New Issue
Block a user