alphaEqnSubCycle.H
Go to the documentation of this file.
2 {
3  dimensionedScalar totalDeltaT = runTime.deltaT();
4  surfaceScalarField rhoPhiSum
5  (
6  mesh.newIOobject("rhoPhiSum"),
7  mesh,
8  dimensionedScalar(rhoPhi.dimensions(), Zero)
9  );
10 
11  tmp<volScalarField> trSubDeltaT;
12 
13  if (LTS)
14  {
15  trSubDeltaT =
16  fv::localEulerDdt::localRSubDeltaT(mesh, nAlphaSubCycles);
17  }
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 
37 mu = mixture.mu();
volScalarField & rho1
Info<< "Creating temperaturePhaseChangeTwoPhaseMixture\"<< endl;autoPtr< temperaturePhaseChangeTwoPhaseMixture > mixture
Definition: createFields.H:39
engineTime & runTime
const volScalarField & alpha2
dynamicFvMesh & mesh
mu
Atomic mass unit.
bool LTS
Definition: createRDeltaT.H:1
constexpr auto end(C &c) -> decltype(c.end())
Return iterator to the end of the container c.
Definition: stdFoam.H:201
volScalarField & rho2
label nAlphaSubCycles(alphaControls.get< label >("nAlphaSubCycles"))
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
rhoPhi
Definition: rhoEqn.H:10
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:127
const volScalarField & alpha1