15 lines
295 B
C
15 lines
295 B
C
// Momentum equation
|
|
fvVectorMatrix UEqn
|
|
(
|
|
fvm::ddt(U)
|
|
+ fvm::div(phi, U)
|
|
+ turbulence->divDevReff(U)
|
|
);
|
|
|
|
// Add MRF and porous sources
|
|
mrfZones.addCoriolis(UEqn);
|
|
pZones.addResistance(UEqn);
|
|
|
|
UEqn.relax();
|
|
|
|
UpEqn.insertEquation(0, UEqn);
|