|
[Sponsors] |
phi -= pEqn.flux() vs. linearInterpolate(U) & mesh.Sf() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 5, 2011, 21:57 |
phi -= pEqn.flux() vs. linearInterpolate(U) & mesh.Sf()
|
#1 |
Senior Member
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 23 |
Hi all FOAMers, I'm wondering why final phi at the end of each timestep in icoFoam is calculated as:
a) Code:
phi -= pEqn.flux(); b) Code:
phi=linearInterpolate(U) & mesh.Sf(); I've checked the values of both methods and they are slightly different, maybe with a difference of 10-30%. It's interesting that, if you are running continued, phi for the next timestep is calculated like a), but if you stop running and then restart phi for the next timestep then phi is calculated following b). It should be equal? If not, What is correct and why? Why one is used for continued runnings and the other one for restarting? Thx in advance.
__________________
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
read scalar field phi, get flux through faces | peterwy | OpenFOAM Programming & Development | 5 | April 28, 2017 19:40 |
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 |
About phi in icoFoam | kar | OpenFOAM Running, Solving & CFD | 3 | February 20, 2008 05:20 |
PHI file structure | Eugene | Phoenics | 9 | November 2, 2001 22:00 |