OpenFOAM
v2512
The open source CFD toolbox
Loading...
Searching...
No Matches
compressibleAlphaEqnSubCycle.H
Go to the documentation of this file.
1
tmp<surfaceScalarField>
talphaPhi1
(
alphaPhi10
);
2
3
if
(
nAlphaSubCycles
> 1)
4
{
5
dimensionedScalar totalDeltaT =
runTime
.deltaT();
6
7
talphaPhi1
.reset
8
(
9
new
surfaceScalarField
10
(
11
mesh
.newIOobject(
"alphaPhi1"
),
12
mesh
,
13
dimensionedScalar(
alphaPhi10
.dimensions(), Zero)
14
)
15
);
16
17
surfaceScalarField rhoPhiSum
18
(
19
mesh
.newIOobject(
"rhoPhiSum"
),
20
mesh
,
21
dimensionedScalar(
rhoPhi
.dimensions(), Zero)
22
);
23
24
tmp<volScalarField> trSubDeltaT;
25
26
if
(
LTS
)
27
{
28
trSubDeltaT =
29
fv::localEulerDdt::localRSubDeltaT(
mesh
,
nAlphaSubCycles
);
30
}
31
32
for
33
(
34
subCycle<volScalarField> alphaSubCycle(
alpha1
,
nAlphaSubCycles
);
35
!(++alphaSubCycle).end();
36
)
37
{
38
#include "alphaEqn.H"
39
talphaPhi1
.ref() += (
runTime
.deltaT()/totalDeltaT)*
alphaPhi10
;
40
rhoPhiSum += (
runTime
.deltaT()/totalDeltaT)*
rhoPhi
;
41
}
42
43
rhoPhi
= rhoPhiSum;
44
}
45
else
46
{
47
#include "alphaEqn.H"
48
}
49
50
rho
==
alpha1
*
rho1
+
alpha2
*
rho2
;
51
52
const
surfaceScalarField&
alphaPhi1
=
talphaPhi1
();
53
surfaceScalarField
alphaPhi2
(
"alphaPhi2"
,
phi
-
alphaPhi1
);
54
55
volScalarField::Internal
contErr
56
(
57
(
58
fvc::ddt(
rho
) + fvc::div(
rhoPhi
)
59
- (
fvOptions
(
alpha1
,
mixture
.thermo1().rho())&
rho1
)
60
- (
fvOptions
(
alpha2
,
mixture
.thermo2().rho())&
rho2
)
61
)()
62
);
rhoPhi
rhoPhi
Definition
rhoEqn.H:10
fvOptions
fv::options & fvOptions
Definition
setRegionFluidFields.H:21
talphaPhi1
const tmp< surfaceScalarField > talphaPhi1
Definition
setRegionFluidFields.H:11
alpha1
const volScalarField & alpha1
Definition
setRegionFluidFields.H:6
alphaPhi2
const auto & alphaPhi2
Definition
setRegionFluidFields.H:17
alphaPhi1
const auto & alphaPhi1
Definition
setRegionFluidFields.H:12
rho2
volScalarField & rho2
Definition
setRegionFluidFields.H:30
alpha2
const volScalarField & alpha2
Definition
setRegionFluidFields.H:7
rho1
volScalarField & rho1
Definition
setRegionFluidFields.H:27
contErr
volScalarField::Internal contErr((fvc::ddt(rho)+fvc::div(rhoPhi) -(fvOptions(alpha1, mixture.thermo1().rho())&rho1) -(fvOptions(alpha2, mixture.thermo2().rho())&rho2))())
alphaPhi10
alphaPhi10
Definition
alphaEqn.H:7
phi
phi
Definition
correctPhiFaceMask.H:34
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
compressibleInterFoam
compressibleAlphaEqnSubCycle.H
Generated by
1.16.1