OpenFOAM: API Guide
v2112
The open source CFD toolbox
alphaEqnSubCycle.H
Go to the documentation of this file.
1
if
(
nAlphaSubCycles
> 1)
2
{
3
dimensionedScalar
totalDeltaT =
runTime
.deltaT();
4
surfaceScalarField
rhoPhiSum
5
(
6
IOobject
7
(
8
"rhoPhiSum"
,
9
runTime
.timeName(),
10
mesh
11
),
12
mesh
,
13
dimensionedScalar
(
rhoPhi
.dimensions(),
Zero
)
14
);
15
16
tmp<volScalarField> trSubDeltaT;
17
18
if
(
LTS
)
19
{
20
trSubDeltaT =
21
fv::localEulerDdt::localRSubDeltaT(
mesh
,
nAlphaSubCycles
);
22
}
23
24
for
25
(
26
subCycle<volScalarField> alphaSubCycle(
alpha1
,
nAlphaSubCycles
);
27
!(++alphaSubCycle).
end
();
28
)
29
{
30
#include "
alphaEqn.H
"
31
rhoPhiSum += (
runTime
.deltaT()/totalDeltaT)*
rhoPhi
;
32
}
33
34
rhoPhi
= rhoPhiSum;
35
}
36
else
37
{
38
#include "
alphaEqn.H
"
39
}
40
41
rho
==
alpha1
*
rho1
+
alpha2
*
rho2
;
runTime
engineTime & runTime
Definition:
createEngineTime.H:13
rhoPhi
rhoPhi
Definition:
rhoEqn.H:10
Foam::Zero
static constexpr const zero Zero
Global zero (0)
Definition:
zero.H:131
alpha2
const volScalarField & alpha2
Definition:
setRegionFluidFields.H:9
alpha1
const volScalarField & alpha1
Definition:
setRegionFluidFields.H:8
nAlphaSubCycles
label nAlphaSubCycles(alphaControls.get< label >("nAlphaSubCycles"))
rho
rho
Definition:
alphaEqnSubCycle.H:70
Foam::dimensionedScalar
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Definition:
dimensionedScalarFwd.H:42
rho2
volScalarField & rho2
Definition:
setRegionFluidFields.H:30
rho1
volScalarField & rho1
Definition:
setRegionFluidFields.H:27
LTS
bool LTS
Definition:
createRDeltaT.H:1
mesh
dynamicFvMesh & mesh
Definition:
createDynamicFvMesh.H:6
stdFoam::end
constexpr auto end(C &c) -> decltype(c.end())
Return iterator to the end of the container c.
Definition:
stdFoam.H:121
Foam::surfaceScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Definition:
surfaceFieldsFwd.H:54
alphaEqn.H
applications
solvers
multiphase
VoF
alphaEqnSubCycle.H
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.