1 fvVectorMatrix UaEqn(Ua, Ua.dimensions()*dimVol/dimTime);
2 fvVectorMatrix UbEqn(Ub, Ub.dimensions()*dimVol/dimTime);
6 volTensorField gradUaT = fvc::grad(Ua)().T();
10 ((2.0/3.0)*I)*(sqr(Ct)*k + nuEffa*tr(gradUaT)) - nuEffa*gradUaT
13 if (kineticTheory.on())
15 Rca -= ((kineticTheory.lambda()/rhoa)*tr(gradUaT))*tensor(I);
18 surfaceScalarField phiRa =
19 -fvc::interpolate(nuEffa)*mesh.magSf()*fvc::snGrad(alpha)
20 /fvc::interpolate(alpha + scalar(0.001));
24 (scalar(1) + Cvm*rhob*beta/rhoa)*
27 + fvm::div(phia, Ua, "div(phia,Ua)")
28 - fvm::Sp(fvc::div(phia), Ua)
31 - fvm::laplacian(nuEffa, Ua)
34 + fvm::div(phiRa, Ua, "div(phia,Ua)")
35 - fvm::Sp(fvc::div(phiRa), Ua)
36 + (fvc::grad(alpha)/(fvc::average(alpha) + scalar(0.001)) & Rca)
38 // g // Buoyancy term transfered to p-equation
39 - fvm::Sp(beta/rhoa*K, Ua)
40 //+ beta/rhoa*K*Ub // Explicit drag transfered to p-equation
41 - beta/rhoa*(liftCoeff - Cvm*rhob*DDtUb)
48 volTensorField gradUbT = fvc::grad(Ub)().T();
52 ((2.0/3.0)*I)*(k + nuEffb*tr(gradUbT)) - nuEffb*gradUbT
55 surfaceScalarField phiRb =
56 -fvc::interpolate(nuEffb)*mesh.magSf()*fvc::snGrad(beta)
57 /fvc::interpolate(beta + scalar(0.001));
61 (scalar(1) + Cvm*rhob*alpha/rhob)*
64 + fvm::div(phib, Ub, "div(phib,Ub)")
65 - fvm::Sp(fvc::div(phib), Ub)
68 - fvm::laplacian(nuEffb, Ub)
71 + fvm::div(phiRb, Ub, "div(phib,Ub)")
72 - fvm::Sp(fvc::div(phiRb), Ub)
74 + (fvc::grad(beta)/(fvc::average(beta) + scalar(0.001)) & Rcb)
76 // g // Buoyancy term transfered to p-equation
77 - fvm::Sp(alpha/rhob*K, Ub)
78 //+ alpha/rhob*K*Ua // Explicit drag transfered to p-equation
79 + alpha/rhob*(liftCoeff + Cvm*rhob*DDtUa)