OpenFOAM
v2512
The open source CFD toolbox
Loading...
Searching...
No Matches
UEqns.H
Go to the documentation of this file.
1
#include "
MRFCorrectBCs.H
"
2
3
PtrList<fvVectorMatrix>
UEqns
(
fluid
.phases().size());
4
autoPtr<multiphaseSystem::dragCoeffFields>
dragCoeffs
(
fluid
.dragCoeffs());
5
6
label
phasei
= 0;
7
for
(phaseModel& phase :
fluid
.phases())
8
{
9
const
volScalarField&
alpha
= phase;
10
volVectorField&
U
= phase.U();
11
12
volScalarField nuEff(
turbulence
->nut() + phase.nu());
13
14
UEqns
.set
15
(
16
phasei
,
17
new
fvVectorMatrix
18
(
19
fvm::ddt(
alpha
,
U
)
20
+ fvm::div(phase.alphaPhi(),
U
)
21
22
+ (
alpha
/phase.rho())*
fluid
.Cvm(phase)*
23
(
24
fvm::ddt(
U
)
25
+ fvm::div(phase.phi(),
U
)
26
- fvm::Sp(fvc::div(phase.phi()),
U
)
27
)
28
29
- fvm::laplacian(
alpha
*nuEff,
U
)
30
- fvc::div
31
(
32
alpha
*(nuEff*dev(
T
(fvc::grad(
U
)))
/*- ((2.0/3.0)*I)*k*/
),
33
"div(Rc)"
34
)
35
==
36
//- fvm::Sp(fluid.dragCoeff(phase, dragCoeffs())/phase.rho(), U)
37
//- (alpha*phase.rho())*fluid.lift(phase)
38
//+
39
(
alpha
/phase.rho())*
fluid
.Svm(phase)
40
- fvm::Sp
41
(
42
slamDampCoeff
43
*max
44
(
45
mag(
U
()) - maxSlamVelocity,
46
dimensionedScalar(
"U0"
, dimVelocity, Zero)
47
)
48
/cbrt(
mesh
.V()),
49
U
50
)
51
)
52
);
53
MRF
.addAcceleration
54
(
55
alpha
*(1 + (1/phase.rho())*
fluid
.Cvm(phase)),
56
UEqns
[
phasei
]
57
);
58
//UEqns[phasei].relax();
59
60
++
phasei
;
61
}
MRFCorrectBCs.H
MRF
IOMRFZoneList & MRF
Definition
setRegionFluidFields.H:20
fluid
twoPhaseSystem & fluid
Definition
setRegionFluidFields.H:1
U
U
Definition
pEqn.H:72
T
const volScalarField & T
Definition
createFieldRefs.H:2
mesh
dynamicFvMesh & mesh
Definition
createDynamicFvMesh.H:6
turbulence
compressible::turbulenceModel & turbulence
Definition
setRegionFluidFields.H:28
dragCoeffs
autoPtr< multiphaseSystem::dragCoeffFields > dragCoeffs(fluid.dragCoeffs())
UEqns
PtrList< fvVectorMatrix > UEqns(fluid.phases().size())
phasei
label phasei
Definition
pEqn.H:27
alpha
volScalarField & alpha
Definition
readThermalProperties.H:212
applications
solvers
multiphase
multiphaseEulerFoam
UEqns.H
Generated by
1.16.1