OpenFOAM
v2512
The open source CFD toolbox
Loading...
Searching...
No Matches
alphaEqnSubCycle.H
Go to the documentation of this file.
1
if
(
nAlphaSubCycles
> 1)
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
36
rho
==
alpha1
*
rho1
+
alpha2
*
rho2
;
37
mu
=
mixture
.mu();
mu
mu
Definition
alphaEqnSubCycle.H:304
alphaEqn.H
rhoPhi
rhoPhi
Definition
rhoEqn.H:10
alpha1
const volScalarField & alpha1
Definition
setRegionFluidFields.H:6
rho2
volScalarField & rho2
Definition
setRegionFluidFields.H:30
alpha2
const volScalarField & alpha2
Definition
setRegionFluidFields.H:7
rho1
volScalarField & rho1
Definition
setRegionFluidFields.H:27
mesh
dynamicFvMesh & mesh
Definition
createDynamicFvMesh.H:6
runTime
engineTime & runTime
Definition
createEngineTime.H:13
LTS
bool LTS
Definition
createRDeltaT.H:1
rho
rho
Definition
readInitialConditions.H:88
mixture
Info<< "Creating temperaturePhaseChangeTwoPhaseMixture\n"<< endl;autoPtr< temperaturePhaseChangeTwoPhaseMixture > mixture
Definition
createFields.H:39
nAlphaSubCycles
label nAlphaSubCycles(alphaControls.get< label >("nAlphaSubCycles"))
applications
solvers
multiphase
MPPICInterFoam
alphaEqnSubCycle.H
Generated by
1.16.1