Formatting and stability changes
This commit is contained in:
parent
529271393f
commit
b1c3e76352
3 changed files with 9 additions and 9 deletions
|
@ -90,8 +90,8 @@ int main(int argc, char *argv[])
|
||||||
// --- Pressure-velocity PIMPLE corrector loop
|
// --- Pressure-velocity PIMPLE corrector loop
|
||||||
for (int oCorr=0; oCorr<nOuterCorr; oCorr++)
|
for (int oCorr=0; oCorr<nOuterCorr; oCorr++)
|
||||||
{
|
{
|
||||||
# include "rhoEqn.H"
|
# include "rhoEqn.H"
|
||||||
# include "UEqn.H"
|
# include "UEqn.H"
|
||||||
|
|
||||||
# include "ftEqn.H"
|
# include "ftEqn.H"
|
||||||
# include "bEqn.H"
|
# include "bEqn.H"
|
||||||
|
@ -106,8 +106,8 @@ int main(int argc, char *argv[])
|
||||||
// --- PISO loop
|
// --- PISO loop
|
||||||
for (int corr=1; corr<=nCorr; corr++)
|
for (int corr=1; corr<=nCorr; corr++)
|
||||||
{
|
{
|
||||||
# include "pEqn.H"
|
# include "pEqn.H"
|
||||||
}
|
}
|
||||||
|
|
||||||
turbulence->correct();
|
turbulence->correct();
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ if (ign.ignited())
|
||||||
fvm::ddt(rho, b)
|
fvm::ddt(rho, b)
|
||||||
+ mvConvection->fvmDiv(phi, b)
|
+ mvConvection->fvmDiv(phi, b)
|
||||||
+ fvm::div(phiSt, b, "div(phiSt,b)")
|
+ fvm::div(phiSt, b, "div(phiSt,b)")
|
||||||
- fvm::Sp(fvc::div(phiSt), b)
|
+ fvm::SuSp(-fvc::div(phiSt), b)
|
||||||
- fvm::laplacian(turbulence->alphaEff(), b)
|
- fvm::laplacian(turbulence->alphaEff(), b)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -65,7 +65,8 @@ if (ign.ignited())
|
||||||
// ~~~~~~~~~~~
|
// ~~~~~~~~~~~
|
||||||
bEqn.solve();
|
bEqn.solve();
|
||||||
|
|
||||||
Info<< "min(b) = " << min(b).value() << endl;
|
Info<< "min(b) = " << min(b).value()
|
||||||
|
<< " max(b) = " << max(b).value() << endl;
|
||||||
|
|
||||||
|
|
||||||
// Calculate coefficients for Gulder's flame speed correlation
|
// Calculate coefficients for Gulder's flame speed correlation
|
||||||
|
@ -138,7 +139,7 @@ if (ign.ignited())
|
||||||
(
|
(
|
||||||
fvm::ddt(rho, Su)
|
fvm::ddt(rho, Su)
|
||||||
+ fvm::div(phi + phiXi, Su, "div(phiXi,Su)")
|
+ fvm::div(phi + phiXi, Su, "div(phiXi,Su)")
|
||||||
- fvm::Sp(fvc::div(phiXi), Su)
|
+ fvm::SuSp(-fvc::div(phiXi), Su)
|
||||||
==
|
==
|
||||||
- fvm::SuSp(-rho*Rc*Su0/Su, Su)
|
- fvm::SuSp(-rho*Rc*Su0/Su, Su)
|
||||||
- fvm::SuSp(rho*(sigmas + Rc), Su)
|
- fvm::SuSp(rho*(sigmas + Rc), Su)
|
||||||
|
@ -203,7 +204,7 @@ if (ign.ignited())
|
||||||
(
|
(
|
||||||
fvm::ddt(rho, Xi)
|
fvm::ddt(rho, Xi)
|
||||||
+ fvm::div(phi + phiXi, Xi, "div(phiXi,Xi)")
|
+ fvm::div(phi + phiXi, Xi, "div(phiXi,Xi)")
|
||||||
- fvm::Sp(fvc::div(phiXi), Xi)
|
+ fvm::SuSp(-fvc::div(phiXi), Xi)
|
||||||
==
|
==
|
||||||
rho*R
|
rho*R
|
||||||
- fvm::Sp(rho*(R - G), Xi)
|
- fvm::Sp(rho*(R - G), Xi)
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
|
|
||||||
const volScalarField& T = thermo.T();
|
const volScalarField& T = thermo.T();
|
||||||
|
|
||||||
|
|
||||||
Info<< "\nReading field U\n" << endl;
|
Info<< "\nReading field U\n" << endl;
|
||||||
volVectorField U
|
volVectorField U
|
||||||
(
|
(
|
||||||
|
|
Reference in a new issue