1 fvVectorMatrix UaEqn(Ua, Ua.dimensions()*dimVol/dimTime);
2 fvVectorMatrix UbEqn(Ub, Ub.dimensions()*dimVol/dimTime);
5 volTensorField Rca = -nuEffa*(fvc::grad(Ua)().T());
6 Rca = Rca + (2.0/3.0)*sqr(Ct)*I*k - (2.0/3.0)*I*tr(Rca);
8 surfaceScalarField phiRa =
9 - fvc::interpolate(nuEffa)
10 *mesh.magSf()*fvc::snGrad(alpha)/fvc::interpolate(alpha + scalar(0.001));
14 (scalar(1) + Cvm*rhob*beta/rhoa)*
17 + fvm::div(phia, Ua, "div(phia,Ua)")
18 - fvm::Sp(fvc::div(phia), Ua)
21 - fvm::laplacian(nuEffa, Ua)
24 + fvm::div(phiRa, Ua, "div(phia,Ua)")
25 - fvm::Sp(fvc::div(phiRa), Ua)
26 + (fvc::grad(alpha)/(fvc::average(alpha) + scalar(0.001)) & Rca)
28 // g // Buoyancy term transfered to p-equation
29 - fvm::Sp(beta/rhoa*dragCoef, Ua)
30 //+ beta/rhoa*dragCoef*Ub // Explicit drag transfered to p-equation
31 - beta/rhoa*(liftCoeff - Cvm*rhob*DDtUb)
37 volTensorField Rcb = -nuEffb*fvc::grad(Ub)().T();
38 Rcb = Rcb + (2.0/3.0)*I*k - (2.0/3.0)*I*tr(Rcb);
40 surfaceScalarField phiRb =
41 - fvc::interpolate(nuEffb)
42 *mesh.magSf()*fvc::snGrad(beta)/fvc::interpolate(beta + scalar(0.001));
46 (scalar(1) + Cvm*rhoa*alpha/rhob)*
49 + fvm::div(phib, Ub, "div(phib,Ub)")
50 - fvm::Sp(fvc::div(phib), Ub)
53 - fvm::laplacian(nuEffb, Ub)
56 + fvm::div(phiRb, Ub, "div(phib,Ub)")
57 - fvm::Sp(fvc::div(phiRb), Ub)
59 + (fvc::grad(beta)/(fvc::average(beta) + scalar(0.001)) & Rcb)
61 // g // Buoyancy term transfered to p-equation
62 - fvm::Sp(alpha/rhob*dragCoef, Ub)
63 //+ alpha/rhob*dragCoef*Ua // Explicit drag transfered to p-equation
64 + alpha/rhob*(liftCoeff + Cvm*rhoa*DDtUa)