17 lines
351 B
C
17 lines
351 B
C
|
fvVectorMatrix UEqn
|
||
|
(
|
||
|
betav*fvm::ddt(rho, U)
|
||
|
+ fvm::div(phi, U)
|
||
|
+ turbulence->divDevRhoReff(U)
|
||
|
==
|
||
|
betav*rho*g
|
||
|
);
|
||
|
|
||
|
volSymmTensorField invA = inv(I*UEqn.A() + drag->Dcu());
|
||
|
|
||
|
if (momentumPredictor)
|
||
|
{
|
||
|
U = invA & (UEqn.H() - betav*fvc::grad(p));
|
||
|
U.correctBoundaryConditions();
|
||
|
}
|