FreeFOAM The Cross-Platform CFD Toolkit
UEqn.H
Go to the documentation of this file.
1  // Solve the Momentum equation
2 
4  (
5  fvm::ddt(rho, U)
6  + fvm::div(phi, U)
7  + fvc::div
8  (
9  (Alpha/(scalar(1.001) - Alpha))*(sqr(rhoc)/rho)*Vdj*Vdj,
10  "div(phiVdj,Vdj)"
11  )
12  - fvm::laplacian(mu, U, "laplacian(muEff,U)")
13  );
14 
15  if (finalIter)
16  {
17  UEqn.relax(1);
18  }
19  else
20  {
21  UEqn.relax();
22  }
23 
25  {
26  solve
27  (
28  UEqn
29  ==
31  (
32  (
35  )*mesh.magSf()
36  ),
37  mesh.solver(U.select(finalIter))
38  );
39  }