alphaEqnSubCycle.H
Go to the documentation of this file.
1 {
2  // Standard face-flux compression coefficient
3  surfaceScalarField phic(interface.cAlpha()*mag(phi/mesh.magSf()));
4 
5  // Add the optional isotropic compression contribution
6  if (icAlpha > 0)
7  {
8  phic *= (1.0 - icAlpha);
9  phic += (interface.cAlpha()*icAlpha)*fvc::interpolate(mag(U));
10  }
11 
13 
14  if (nAlphaSubCycles > 1)
15  {
16  dimensionedScalar totalDeltaT = runTime.deltaT();
17  surfaceScalarField rhoPhiSum("rhoPhiSum", rhoPhi);
18 
19  for
20  (
21  subCycle<volScalarField> alphaSubCycle(alpha1, nAlphaSubCycles);
22  !(++alphaSubCycle).end();
23  )
24  {
25  #include "alphaEqn.H"
26  rhoPhiSum += (runTime.deltaT()/totalDeltaT)*rhoPhi;
27  }
28 
29  rhoPhi = rhoPhiSum;
30  }
31  else
32  {
33  #include "alphaEqn.H"
34  }
35 
36  rho == alpha1*rho1 + alpha2*rho2;
37 }
surfaceScalarField & phi
U
Definition: pEqn.H:83
volScalarField divU(fvc::div(phi))
interfaceProperties interface(alpha1, U, mixture())
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcDiv.C:47
tmp< surfaceScalarField > interpolate(const RhoType &rho)
rho1
Definition: pEqn.H:114
scalar icAlpha(alphaControls.lookupOrDefault< scalar >("icAlpha", 0))
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
dynamicFvMesh & mesh
rho2
Definition: pEqn.H:115
alpha2
Definition: alphaEqn.H:112
volScalarField & alpha1
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
rhoPhi
Definition: rhoEqn.H:10
dimensioned< scalar > mag(const dimensioned< Type > &)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")))