twoPhaseEulerFoam: Update flux naming convention

This commit is contained in:
Henry
2013-01-17 18:03:45 +00:00
parent 0156c6549c
commit 03c8cf06da
2 changed files with 4 additions and 10 deletions

View File

@ -1,7 +1,4 @@
{ {
label nAlphaCorr(readLabel(pimple.dict().lookup("nAlphaCorr")));
label nAlphaSubCycles(readLabel(pimple.dict().lookup("nAlphaSubCycles")));
word alphaScheme("div(phi,alpha1)"); word alphaScheme("div(phi,alpha1)");
word alpharScheme("div(phir,alpha1)"); word alpharScheme("div(phir,alpha1)");
@ -24,7 +21,7 @@
!(++alphaSubCycle).end(); !(++alphaSubCycle).end();
) )
{ {
surfaceScalarField phiAlpha surfaceScalarField alphaPhic1
( (
fvc::flux fvc::flux
( (
@ -44,7 +41,7 @@
( (
alpha1, alpha1,
phi, phi,
phiAlpha, alphaPhic1,
(g0.value() > 0 ? alphaMax : 1), (g0.value() > 0 ? alphaMax : 1),
0 0
); );
@ -54,11 +51,6 @@
{ {
surfaceScalarField alpha1f(fvc::interpolate(alpha1)); surfaceScalarField alpha1f(fvc::interpolate(alpha1));
// ppMagf = rAU1f*fvc::interpolate
// (
// (1.0/(rho1*(alpha1 + scalar(0.0001))))
// *g0*min(exp(preAlphaExp*(alpha1 - alphaMax)), expMax)
// );
ppMagf = ppMagf =
rAU1f/(alpha1f + scalar(0.0001)) rAU1f/(alpha1f + scalar(0.0001))
*(g0/rho1)*min(exp(preAlphaExp*(alpha1f - alphaMax)), expMax); *(g0/rho1)*min(exp(preAlphaExp*(alpha1f - alphaMax)), expMax);

View File

@ -1,3 +1,5 @@
#include "readTimeControls.H" #include "readTimeControls.H"
int nAlphaCorr(readInt(pimple.dict().lookup("nAlphaCorr")));
int nAlphaSubCycles(readInt(pimple.dict().lookup("nAlphaSubCycles")));
Switch correctAlpha(pimple.dict().lookup("correctAlpha")); Switch correctAlpha(pimple.dict().lookup("correctAlpha"));