reactingTwoPhaseEulerFoam: Updated tutorial function objects

This commit is contained in:
Will Bainbridge
2018-05-24 16:37:00 +01:00
parent 55f086bc86
commit 34d2bf7af8

View File

@ -58,7 +58,7 @@ totalMass
libs ("libutilityFunctionObjects.so");
name error;
code
codeExecute
#{
const volScalarField& alphaGas =
mesh().lookupObject<volScalarField>("alpha.gas");
@ -70,9 +70,6 @@ totalMass
const volScalarField& rhoLiquid =
mesh().lookupObject<volScalarField>("thermo:rho.liquid");
const volScalarField& dmdt =
mesh().lookupObject<volScalarField>("dmdt.gasAndLiquid");
const scalarField& v = mesh().V();
Info<< "coded totalMass output:" << endl
@ -80,8 +77,6 @@ totalMass
<< gSum(alphaGas*rhoGas*v) << endl
<< " volIntegrate(all) for alpha.liquid*rho.liquid = "
<< gSum(alphaLiquid*rhoLiquid*v) << endl
<< " volIntegrate(all) for dmdt = "
<< gSum(dmdt*v) << endl
<< endl;
#};
}