Loading...
Searching...
No Matches
compressibleAlphaEqnSubCycle.H
Go to the documentation of this file.
1if (pimple.nCorrPIMPLE() > 1)
2{
3 if (!pimple.firstIter())
4 {
5 // Resetting alpha1 to value before advection in first PIMPLE
6 // iteration.
7 alpha1 = alpha1.oldTime();
8 }
9}
10tmp<surfaceScalarField> talphaPhi1(alphaPhi10);
11
13{
14 dimensionedScalar totalDeltaT = runTime.deltaT();
15
16 talphaPhi1.reset
17 (
18 new surfaceScalarField
19 (
20 mesh.newIOobject("alphaPhi1"),
21 mesh,
22 dimensionedScalar(alphaPhi10.dimensions(), Zero)
23 )
24 );
25
26 surfaceScalarField rhoPhiSum
27 (
28 mesh.newIOobject("rhoPhiSum"),
29 mesh,
30 dimensionedScalar(rhoPhi.dimensions(), Zero)
31 );
32
33 for
34 (
35 subCycle<volScalarField> alphaSubCycle(alpha1, nAlphaSubCycles);
36 !(++alphaSubCycle).end();
37 )
38 {
39 #include "alphaEqn.H"
40 talphaPhi1.ref() += (runTime.deltaT()/totalDeltaT)*alphaPhi10;
41 rhoPhiSum += (runTime.deltaT()/totalDeltaT)*rhoPhi;
42 }
43
44 rhoPhi = rhoPhiSum;
45}
46else
47{
48 #include "alphaEqn.H"
49}
50
52
55
56volScalarField::Internal contErr
57(
58 (
59 fvc::ddt(rho) + fvc::div(rhoPhi)
60 - (fvOptions(alpha1, mixture.thermo1().rho())&rho1)
61 - (fvOptions(alpha2, mixture.thermo2().rho())&rho2)
62 )()
63);
rhoPhi
Definition rhoEqn.H:10
fv::options & fvOptions
pimpleControl & pimple
const tmp< surfaceScalarField > talphaPhi1
const volScalarField & alpha1
const auto & alphaPhi2
const auto & alphaPhi1
volScalarField & rho2
const volScalarField & alpha2
volScalarField & rho1
volScalarField::Internal contErr((fvc::ddt(rho)+fvc::div(rhoPhi) -(fvOptions(alpha1, mixture.thermo1().rho())&rho1) -(fvOptions(alpha2, mixture.thermo2().rho())&rho2))())
alphaPhi10
Definition alphaEqn.H:7
dynamicFvMesh & mesh
engineTime & runTime
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Info<< "Creating temperaturePhaseChangeTwoPhaseMixture\n"<< endl;autoPtr< temperaturePhaseChangeTwoPhaseMixture > mixture
label nAlphaSubCycles(alphaControls.get< label >("nAlphaSubCycles"))