FreeFOAM The Cross-Platform CFD Toolkit
UEqn.H
Go to the documentation of this file.
2  (
3  "muEff",
6  );
7 
8  // Calculate and cache mu for the porous media
10 
12  (
13  pZones.ddt(rho, U)
14  + fvm::div(rhoPhi, U)
16  - (fvc::grad(U) & fvc::grad(muEff))
17  //- fvc::div(muEff*(fvc::interpolate(dev(fvc::grad(U))) & mesh.Sf()))
18  );
19 
20  UEqn.relax();
21 
22  pZones.addResistance(UEqn);
23 
25  {
26  solve
27  (
28  UEqn
29  ==
31  (
32  (
33  fvc::interpolate(interface.sigmaK())*fvc::snGrad(alpha1)
36  ) * mesh.magSf()
37  )
38  );
39  }