OpenCFD logo
  Search
  
  Back to Solutions
 
  OpenCFD
  Company profile
  OpenFOAM support
  OpenFOAM development
  OpenFOAM training
  Solutions
  Contact OpenCFD
  Recommended links
 
  OpenFOAM
  Features
  Download
  Documentation
  Discussion group
  Reporting a bug
 
 
 
 
  © 2004-2008 OpenCFD Ltd
OpenCFD Solutions Contact OpenFOAM
PART 5: Programming in OpenFOAM

  • Simulation involves solving equations
  • Top level OpenFOAM code represents the equations being solved, e.g.

@rU
-----+ ~/ •rUU - ~/ •m ~/ U = - ~/ p
@t special {t4ht=


    solve
    (
        fvm::ddt(rho, U)
      + fvm::div(phi, U)
      - fvm::laplacian(mu, U)
        ==
      - fvc::grad(p)
    );