|
[Sponsors] |
October 27, 2008, 11:04 |
Dear all,
I'm new to OF and
|
#1 |
Member
Niklas Winkler
Join Date: Mar 2009
Location: Stockholm, Stockholm, Sweden
Posts: 73
Rep Power: 17 |
Dear all,
I'm new to OF and trying to implement a Poisson solver to calculate a pressure field from a velocity field. For the simplest case, inviscid and incompressible that would be, laplace(p) = -div(div(UU)). After reading U and setting pP (pressure to be derived) initially to p, using the cavity case in IcoFoam as a test case, the Poisson equation is implemented as fvScalarMatrix pPEqn ( fvm::laplacian(pP) == -fvc::div(fvc::div(phi, U)) ); pPEqn.setReference(pPRefCell,pPRefValue); pPEqn.solve(); and solved with the GAMG solver. The problem is that I'm getting strange results. Is there anything wrong with the implementation? What is the difference with the following implementation, (which does not want to work) fvScalarMatrix pPEqn ( -fvc::div(div(phi, U)) ); solve(pPEqn == fvm::laplacian(pP)); Is there a direct way of setting the boundary conditions for pP to fixed values, something similar to boundaryField().types()? Thanks /NW |
|
April 17, 2009, 17:59 |
|
#2 |
Senior Member
|
Hi Niklas,
did you success to implement your Poisson solver? I'm managing to implement exactly the same solver, to get a pressure field from an incompressible velocity field. Do you obtain good results? Thank you, Ivan |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
looking for a 3D Poisson Solver | phsieh2005 | Main CFD Forum | 2 | March 1, 2007 20:33 |
Different ans of poisson eqn with different solver | Quarkz | Main CFD Forum | 0 | October 6, 2005 12:49 |
Poisson solver | Steve | Main CFD Forum | 6 | July 22, 2004 22:16 |
solver for Poisson eqn | billboard | Main CFD Forum | 3 | May 22, 2002 01:07 |
Solver for poisson equ. | Capi | Main CFD Forum | 1 | May 3, 2001 12:20 |