CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

PISO in sonicFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 20, 2008, 04:21
Default Hello I have a doubt in the
  #1
Member
 
srinath
Join Date: Mar 2009
Location: Champaign, USA
Posts: 91
Rep Power: 17
srinath is on a distinguished road
Hello

I have a doubt in the PISO loop.

In sonicFoam.C, "phid" is defined by

surfaceScalarField phid =
(
(fvc::interpolate(rho*U) & mesh.Sf())
+ fvc::ddtPhiCorr(rUA, rho, U, phi)
)/fvc::interpolate(p);

later in solving for pressure, the code says

fvScalarMatrix pEqn
(
fvm::ddt(psi, p)
+ fvm::div(phid, p, "div(phid,p)")
- fvm::laplacian(rho*rUA, p)
);

pEqn.solve();

Why are we dividing by p, when defining phid and later multiplying by p, when doing fvm::div(phid, p). The corresponding term in icoFoam is treated expicitly as fvc::div(phi).

So my second question is why is this term being treated implicitly in sonicFoam, but explicitly in icoFoam?

Regards
Srinath
srinath is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SonicFoam stvtiegh OpenFOAM Running, Solving & CFD 1 June 26, 2008 10:30
New solver from sonicFoam dimi OpenFOAM Running, Solving & CFD 2 December 5, 2007 19:08
SonicFoam divphiU dimi OpenFOAM Running, Solving & CFD 3 June 25, 2007 06:47
SonicFoam question shuo OpenFOAM Running, Solving & CFD 0 October 15, 2006 23:53
Help me with sonicFoam marcelo OpenFOAM Running, Solving & CFD 6 December 10, 2005 03:57


All times are GMT -4. The time now is 23:42.