|
[Sponsors] |
Differences in solution method for pisoFoam and buoyantBoussinesqPisoFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 30, 2009, 17:56 |
Differences in solution method for pisoFoam and buoyantBoussinesqPisoFoam
|
#1 |
Member
Matthew J. Churchfield
Join Date: Nov 2009
Location: Boulder, Colorado, USA
Posts: 49
Rep Power: 18 |
To whom can help,
I am trying to reconcile some differences between pisoFoam and buoyantBoussinesqPisoFoam. In the UEqn.H file of buoyantBoussinesqPisoFoam the following equation is set up to predict velocity: UEqn == fvc::reconstruct((fvc::interpolate(rhok)*(g & mesh.Sf()) - fvc::snGrad(p)*mesh.magSf())) However, in pisoFoam, this is the equation: UEqn == -fvc::grad(p) Aside from the inclusion of the gravity term in buoyantBoussinesqPisoFoam, why are the face values used to reconstruct the cell centered values, whereas in pisoFoam the cell center values are used directly? The same situation occurs in setting up the pressure equation. In buoyantBoussinesqPisoFoam, the equation is: volScalarField rUA("rUA", 1.0/UEqn.A()); surfaceScalarField rUAf("(1|A(U))", fvc::interpolate(rUA)); fvm::laplacian(rUAf, p) == fvc::div(phi) whereas in pisoFoam, it is: volScalarField rUA = 1.0/UEqn.A(); fvm::laplacian(rUA, p) == fvc::div(phi) buoyantBoussinesqPisoFoam is solving for pressure on the faces, and pisoFoam is solving for cell centered pressure. Does this make a difference? Why are the two codes different in this manner? Thank you |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
smoothSolver diverges - solution in using PBiCG solver? | makaveli_lcf | OpenFOAM Running, Solving & CFD | 3 | September 11, 2013 12:44 |
Solution Method & turbulent intensity in CFX 5.5.1 | hamza albazzaz | CFX | 7 | June 29, 2011 12:39 |
Question about meshing / solution scheme of CFX | Coriolius | CFX | 8 | August 1, 2004 18:39 |
FVM,FDM AND FEM | d | Main CFD Forum | 4 | May 30, 2003 03:19 |
Trouble w. tri. FV method and lam. backstep flow | Steve Reuss | Main CFD Forum | 12 | December 26, 2001 11:47 |