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

fvc::ddtPhiCorr(rUA, U, phi)

Register Blogs Community New Posts Updated Threads Search

Like Tree19Likes
  • 1 Post By santiagomarquezd
  • 14 Post By timaji
  • 2 Post By alberto
  • 1 Post By timaji
  • 1 Post By hawkeye321

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 23, 2011, 08:42
Default fvc::ddtPhiCorr(rUA, U, phi)
  #1
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17
ata is on a distinguished road
Hi FOAMers
can any one tell me fvc::ddtPhiCorr(rUA, U, phi) in icoFoam code is for what?
best regards
ata is offline   Reply With Quote

Old   January 24, 2011, 12:05
Default
  #2
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 23
santiagomarquezd will become famous soon enough
Hi, take a look of:

http://www.cfd-online.com/Forums/ope...questions.html

and

http://www.cfd-online.com/Forums/ope...dtphicorr.html

Best.
songwukong likes this.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   January 24, 2011, 22:02
Default fvc::ddtPhiCorr(rUA, U, phi)
  #3
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17
ata is on a distinguished road
Thank you very much
ata is offline   Reply With Quote

Old   August 19, 2011, 22:29
Post http://www.openfoam.com/mantisbt/print_bug_page.php?bug_id=169
  #4
New Member
 
M. Timaji
Join Date: Sep 2010
Posts: 6
Rep Power: 15
timaji is on a distinguished road
Send a message via Skype™ to timaji
the term Phi in UEqn and PEqn is not exactly the same:
In the UEqn: corrected flux from the previous iteration or timestep,
In the PEqn: mass flux without the pressure contribution.

The term ddtPhiCorr checks for the dimensional units of U and phi to decide what operation has to be performed, and if phi is defined in terms of mass, a division of phi by rho is performed.

This represents a problem in the case of zero density. Such a case cannot happen in single-phase flows, however it might happen in multiphase flows. For example, let's consider a momentum equation in the form

ddt(alpha*rho*U) + div(alpha*rho*U*U) = ...

where alpha is the phase fraction. The equation is then represented in the code as

fvm::ddt(alphaRho, U) + fvm::div(alphaf*phi, U) == ...

being phi = rho_f * (U_f \cdot S). In such a case, if my understanding is correct, one should compute

surfaceScalarField phi =
fvc::interpolate(rho)*(fvc::interpolate(U) & mesh.Sf())
+ fvc::ddtPhiCorr(rUA, rhoAlpha, U, phi)

At this point, since alpha can be zero, ddtPhiCorr will cause a division by zero.

This does not represent a problem in the incompressible case, since the equation can be divided by rho, which leads phi to be a volumetric flux, and ddtPhiCorr would be ddtPhiCorr(rUA, alpha, U, phi). However, if one wants to deal with the compressible case, keeping equations in conservative form, the problem appears.
timaji is offline   Reply With Quote

Old   August 21, 2011, 03:54
Default
  #5
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
The problem is known and was reported (I guess you read it since you pasted it :P):

http://www.openfoam.com/mantisbt/view.php?id=169
songwukong and Ramzy1990 like this.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   September 10, 2011, 12:47
Lightbulb
  #6
New Member
 
M. Timaji
Join Date: Sep 2010
Posts: 6
Rep Power: 15
timaji is on a distinguished road
Send a message via Skype™ to timaji
Quote:
Originally Posted by alberto View Post
The problem is known and was reported (I guess you read it since you pasted it :P):

http://www.openfoam.com/mantisbt/view.php?id=169

Yes alberto
I referenced to the link you've mentiond in the title of my post!!!
Ramzy1990 likes this.
timaji is offline   Reply With Quote

Old   February 7, 2013, 22:10
Default Simple
  #7
Member
 
,...
Join Date: Apr 2011
Posts: 92
Rep Power: 14
hawkeye321 is an unknown quantity at this point
Hi FOAMERS
I have modified SIMPLEFOAM for unsteady flows bu adding ddt(U) to the U matrix. Do I also have to add fvc::ddtPhiCorr in PEqu.H to calculate fluxes? How ignoring this term will affect my results?
pmdelgado2 likes this.
hawkeye321 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
phi -= pEqn.flux() vs. linearInterpolate(U) & mesh.Sf() santiagomarquezd OpenFOAM Programming & Development 33 October 15, 2019 10:24
Turbulence Model phi vs phi_ doug OpenFOAM Running, Solving & CFD 4 November 10, 2009 04:33
Another phi question ehsan_vaghefi OpenFOAM Running, Solving & CFD 0 October 24, 2008 19:56
What does the fvcddtPhiCorrrUA U phi and fvcddtPhiCorrrUA rho U phi mean Any references dbxmcf OpenFOAM Running, Solving & CFD 0 October 1, 2008 21:43
About phi in icoFoam kar OpenFOAM Running, Solving & CFD 3 February 20, 2008 05:20


All times are GMT -4. The time now is 16:24.