alphaEqnSubCycle.H
Go to the documentation of this file.
1#include "alphaControls.H"
2
4{
5 dimensionedScalar totalDeltaT = runTime.deltaT();
6 surfaceScalarField rhoPhiSum
7 (
8 IOobject
9 (
10 "rhoPhiSum",
11 runTime.timeName(),
12 mesh
13 ),
14 mesh,
15 dimensionedScalar(rhoPhi.dimensions(), Zero)
16 );
17
18 for
19 (
20 subCycle<volScalarField> alphaSubCycle(alpha1, nAlphaSubCycles);
21 !(++alphaSubCycle).end();
22 )
23 {
24 #include "alphaEqn.H"
25 rhoPhiSum += (runTime.deltaT()/totalDeltaT)*rhoPhi;
26 }
27
28 rhoPhi = rhoPhiSum;
29}
30else
31{
32 #include "alphaEqn.H"
33}
34
rhoPhi
Definition: rhoEqn.H:10
const volScalarField & alpha1
volScalarField & rho2
const volScalarField & alpha2
volScalarField & rho1
dynamicFvMesh & mesh
engineTime & runTime
label nAlphaSubCycles(alphaControls.get< label >("nAlphaSubCycles"))