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 }
volScalarField divU(fvc::div(phi))
surfaceScalarField & phi
interfaceProperties interface(alpha1, U, mixture())
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Definition: fvcDiv.C:47
engineTime & runTime
scalar icAlpha(alphaControls.lookupOrDefault< scalar >("icAlpha", 0))
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:52
dynamicFvMesh & mesh
const volScalarField & alpha1
alpha2
Definition: alphaEqn.H:115
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
U
Definition: pEqn.H:72
surfaceScalarField phic(mixture.cAlpha() *mag(phi/mesh.magSf()))
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
rhoPhi
Definition: rhoEqn.H:10
dimensioned< scalar > mag(const dimensioned< Type > &)
const dimensionedScalar & rho2
Definition: createFields.H:40
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const dimensionedScalar & rho1
Definition: createFields.H:39
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")))