-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUEqn.H
40 lines (32 loc) · 871 Bytes
/
UEqn.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
MRF.correctBoundaryVelocity(U);
MST = eps*(fvc::grad(Ep)*fvc::grad(Ep) - scalar(0.5)*magSqr(fvc::grad(Ep))*I);
volVectorField eforce = fvc::div(MST);
fvVectorMatrix UEqn
(
fvm::ddt(rho, U)
+ fvm::div(rhoPhi, U)
+ MRF.DDt(rho, U)
==
fvOptions(rho, U)
+ mixture.divTauMF(U)
- eforce
);
UEqn.relax();
fvOptions.constrain(UEqn);
spSolverU->solve
(
UEqn
==
fvc::reconstruct
(
(
mixture.surfaceTensionForce()
- ghf*fvc::snGrad(rho)
- fvc::snGrad(p_rgh)
// - scalar(0.5)*fvc::interpolate(magSqr(Ef))*fvc::snGrad(eps)
// - scalar(0.5)*magSqr(fvc::snGrad(Ep))*fvc::snGrad(eps)
// - fvc::interpolate(Ec)*fvc::snGrad(Ep)
) * mesh.magSf()
)
);
fvOptions.correct(U);