reactingFoam: Added frozenFlow option

with frozenFlow set true in the PIMPLE sub-dictionary of fvSolution the p-U
system is not solved and the energy-composition system including reactions is
solved with the fixed flow.
This commit is contained in:
Henry Weller
2020-12-16 11:24:00 +00:00
parent e27f719aed
commit a620e93fa7
3 changed files with 81 additions and 74 deletions

View File

@ -9,7 +9,6 @@ tmp<fv::convectionScheme<scalar>> mvConvection
) )
); );
{
reaction->correct(); reaction->correct();
forAll(Y, i) forAll(Y, i)
@ -39,4 +38,3 @@ tmp<fv::convectionScheme<scalar>> mvConvection
} }
composition.normalise(); composition.normalise();
}

View File

@ -0,0 +1 @@
#include "../../compressible/rhoPimpleFoam/correctPhi.H"

View File

@ -101,6 +101,13 @@ int main(int argc, char *argv[])
Info<< "Time = " << runTime.timeName() << nl << endl; Info<< "Time = " << runTime.timeName() << nl << endl;
if (pimple.frozenFlow())
{
#include "YEqn.H"
#include "EEqn.H"
}
else
{
// --- Pressure-velocity PIMPLE corrector loop // --- Pressure-velocity PIMPLE corrector loop
while (pimple.loop()) while (pimple.loop())
{ {
@ -126,7 +133,7 @@ int main(int argc, char *argv[])
// from the mapped surface velocity // from the mapped surface velocity
phi = mesh.Sf() & rhoUf(); phi = mesh.Sf() & rhoUf();
#include "../../compressible/rhoPimpleFoam/correctPhi.H" #include "correctPhi.H"
// Make the fluxes relative to the mesh-motion // Make the fluxes relative to the mesh-motion
fvc::makeRelative(phi, rho, U); fvc::makeRelative(phi, rho, U);
@ -160,6 +167,7 @@ int main(int argc, char *argv[])
thermophysicalTransport->correct(); thermophysicalTransport->correct();
} }
} }
}
rho = thermo.rho(); rho = thermo.rho();