Loading...
Searching...
No Matches
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}
31else
32{
33 #include "alphaEqn.H"
34}
35
37mu = mixture.mu();
rhoPhi
Definition rhoEqn.H:10
const volScalarField & alpha1
volScalarField & rho2
const volScalarField & alpha2
volScalarField & rho1
dynamicFvMesh & mesh
engineTime & runTime
bool LTS
Info<< "Creating temperaturePhaseChangeTwoPhaseMixture\n"<< endl;autoPtr< temperaturePhaseChangeTwoPhaseMixture > mixture
label nAlphaSubCycles(alphaControls.get< label >("nAlphaSubCycles"))