This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/solvers/coupled/MRFPorousFoam/UEqn.H
2015-10-30 10:40:52 +00:00

15 lines
308 B
C

// Momentum equation
tmp<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());