All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
alphaEqnSubCycle.H
Go to the documentation of this file.
2 {
3  dimensionedScalar totalDeltaT = runTime.deltaT();
4  surfaceScalarField rhoPhiSum
5  (
6  IOobject
7  (
8  "rhoPhiSum",
9  runTime.timeName(),
10  mesh
11  ),
12  mesh,
13  dimensionedScalar(rhoPhi.dimensions(), 0)
14  );
15 
16  for
17  (
18  subCycle<volScalarField> alphaSubCycle(alpha1, nAlphaSubCycles);
19  !(++alphaSubCycle).end();
20  )
21  {
22  #include "alphaEqn.H"
23  rhoPhiSum += (runTime.deltaT()/totalDeltaT)*rhoPhi;
24  }
25 
26  rhoPhi = rhoPhiSum;
27 }
28 else
29 {
30  #include "alphaEqn.H"
31 }
32 
engineTime & runTime
alpha2
Definition: alphaEqn.H:115
dynamicFvMesh & mesh
volScalarField & alpha1(mixture.alpha1())
const label nAlphaSubCycles(alphaControls.lookup< label >("nAlphaSubCycles"))
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
rhoPhi
Definition: rhoEqn.H:10
const dimensionedScalar & rho2
Definition: createFields.H:44
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const dimensionedScalar & rho1
Definition: createFields.H:43