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

16 lines
308 B
C
Raw Normal View History

2015-04-27 14:34:02 +00:00
// Momentum equation
2015-10-29 15:29:08 +00:00
tmp<fvVectorMatrix> UEqn
2015-04-27 14:34:02 +00:00
(
fvm::ddt(U)
+ fvm::div(phi, U)
+ turbulence->divDevReff(U)
);
// Add MRF and porous sources
2015-10-29 15:29:08 +00:00
mrfZones.addCoriolis(UEqn());
pZones.addResistance(UEqn());
2015-04-27 14:34:02 +00:00
2015-10-29 15:29:08 +00:00
UEqn().relax();
2015-04-27 14:34:02 +00:00
2015-10-29 15:29:08 +00:00
UpEqn.insertEquation(0, UEqn());