15 lines
268 B
C++
15 lines
268 B
C++
{
|
|
// Momentum equation
|
|
fvVectorMatrix UEqn
|
|
(
|
|
fvm::div(phi, U)
|
|
+ turbulence->divDevReff()
|
|
);
|
|
|
|
rAU = 1.0/UEqn.A();
|
|
|
|
// Under-relax momentum. Note this will destroy the H and A
|
|
UEqn.relax();
|
|
|
|
UpEqn.insertEquation(0, UEqn);
|
|
}
|