|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Wolfgang Betz
Join Date: Mar 2009
Posts: 6
Rep Power: 18 ![]() |
Where do I have to look (in the source code), if I want to know how phi is calculated in interFoam?
|
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 24 ![]() |
In createFields.H, you'll see the line include "createPhi.H". You can find this in OpenFOAM-1.X/src/finiteVolume/cfdTools/incompressible
It is defined as: phi = linearInterpolate(U) & mesh.Sf() I think the best thing to do is to set up your IDE's code assistance, so that you can easily navigate through the source code.
__________________
Laurence R. McGlashan :: Website |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Wolfgang Betz
Join Date: Mar 2009
Posts: 6
Rep Power: 18 ![]() |
If phi is calculated from U, what is the advantage of using boundary conditions like fluxCorrectedVelocity, pressureInletVelocity, pressureInletOutletVelocity - which calculate U form the flux(phi)?
|
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 24 ![]() |
I've had a quick look at fluxCorrectedVelocity.
It would be used when you know the pressure at a boundary and the flux through that boundary. The BC is correcting the velocity component normal to the boundary, based on your knowledge of the flux through that boundary. I can't think of when I would use it, maybe someone else has? You could replace all instances of phi with linearInterpolate(U) & mesh.Sf(), but that would make the code messy.
__________________
Laurence R. McGlashan :: Website |
|
![]() |
![]() |
![]() |
![]() |
#5 | |
New Member
ghuang
Join Date: Oct 2014
Posts: 3
Rep Power: 12 ![]() |
Quote:
Can anyone provide a better answer to clear things up ? |
||
![]() |
![]() |
![]() |
![]() |
#6 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,713
Blog Entries: 6
Rep Power: 52 ![]() ![]() ![]() |
Hi all,
this is an ancient thread, but I want to give some hints:
Lets consider the solver pimpleFoam
Now it should be clear, that the flux-corrected boundary conditions are useful because the fluxes are changing during the pressure equation and we recalculate the velocity from the new fluxes.
__________________
Keep foaming, Tobias Holzmann |
|
![]() |
![]() |
![]() |
![]() |
#7 |
New Member
ghuang
Join Date: Oct 2014
Posts: 3
Rep Power: 12 ![]() |
Thanks Tobi, it's more clear for me now. Have a nice day.
|
|
![]() |
![]() |
![]() |
![]() |
#8 |
Senior Member
Brett
Join Date: May 2013
Posts: 217
Rep Power: 14 ![]() |
Hey guys.
I know it's meant to be poor form, but this is directly relevant. Any thoughts?? Flow rate and phi not matching?? |
|
![]() |
![]() |
![]() |
![]() |
#9 |
Member
Andrea Di Ronco
Join Date: Nov 2016
Location: Milano, Italy
Posts: 57
Rep Power: 10 ![]() |
Hello guys,
thanks for the brilliant material. I have a related question: Suppose that I have to solve an additional transport equation for a velocity field V (which is not the standard velocity field U, but may depend on it). I understand that I have to define a new flux field (no problem to create it), but how should I ensure a correct treatment of flux and velocity provided that they don't need to satisfy a coupled pressure equation? Things should be necessarily easier than in the standard U-p coupling, but I don't understand clearly what bits should I retain from a standard (S,P)IMPLE solver. For reference, the transport equation for ![]() ![]() where repeated index summation notation is assumed and ![]() ![]() The two equations can be implemented rather straightforwardly provided that a new correct flux ![]() ![]() Thanks in advance to everyone who has some advice ![]() |
|
![]() |
![]() |
![]() |
Tags |
interfoam, phi |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
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 |
Calculation of phi if velocity field is known | ankgupta8um | OpenFOAM Running, Solving & CFD | 5 | October 15, 2006 03:46 |
Warning 097- | AB | Siemens | 6 | November 15, 2004 04:41 |
Heat Flux Calculation under REPORTS | Alberto Schroth | FLUENT | 0 | May 16, 2000 08:19 |