Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / applications / solvers / coupled / MRFPorousFoam / couplingTerms.H
blob9aa6f9510b642ea67f2790624a182b284bd87343
2     // Calculate grad p coupling matrix. Needs to be here if one uses
3     // gradient schemes with limiters.  VV, 9/June/2014
4     BlockLduSystem<vector, vector> pInU(fvm::grad(p));
6     // Calculate div U coupling.  Could be calculated only once since
7     // it is only geometry dependent.  VV, 9/June/2014
8     BlockLduSystem<vector, scalar> UInp(fvm::UDiv(U));
10     // Last argument in insertBlockCoupling says if the column direction
11     // should be incremented. This is needed for arbitrary positioning
12     // of U and p in the system. This could be better. VV, 30/April/2014
13     UpEqn.insertBlockCoupling(0, 3, pInU, true);
14     UpEqn.insertBlockCoupling(3, 0, UInp, false);