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

Difference between phi and phiv

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By kettnera
  • 1 Post By mturcios777

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 24, 2014, 11:56
Question Difference between phi and phiv
  #1
Member
 
yehanyu
Join Date: Mar 2012
Location: Beijing, China
Posts: 48
Rep Power: 14
yhy20081016 is on a distinguished road
Hi, everybody.
Usually, for many solvers, in "createFields.H", the face-flux is created by including the header file "createPhi.H". For compressible flows, the header "compressibleCreatePhi.H" is used instead. However, I observed that in the solver "cavitatingFoam", a third header named "createPhiv.H" is used. I cannot understand the difference between "phi" and "phiv". Does anyone has an idea? Thank you very much.
yhy20081016 is offline   Reply With Quote

Old   August 21, 2014, 10:20
Default
  #2
New Member
 
Andrew Kettner
Join Date: May 2012
Posts: 4
Rep Power: 14
kettnera is on a distinguished road
Quote:
Originally Posted by yhy20081016 View Post
Hi, everybody.
Usually, for many solvers, in "createFields.H", the face-flux is created by including the header file "createPhi.H". For compressible flows, the header "compressibleCreatePhi.H" is used instead. However, I observed that in the solver "cavitatingFoam", a third header named "createPhiv.H" is used. I cannot understand the difference between "phi" and "phiv". Does anyone has an idea? Thank you very much.
Reviewing both createPhi.H and createPhiv.H the files appear to be identical other than using phiv rather than phi.
lpz456 likes this.
kettnera is offline   Reply With Quote

Old   August 21, 2014, 13:46
Default
  #3
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
Not knowing much about cavitatingFoam but quickly reviewing the solver, it appears phiv is the flux for the vapour fractin. This makes sense as you have a two phase flow you are solving for and each phase will have a different flux.
lpz456 likes this.
mturcios777 is offline   Reply With Quote

Old   August 21, 2014, 13:52
Default
  #4
New Member
 
Andrew Kettner
Join Date: May 2012
Posts: 4
Rep Power: 14
kettnera is on a distinguished road
So the phiv and phi are identical but intended for different phases. I have not done multiphase work and the answer may be obvious if I had, but how does the code distinquish between the phases. Like I said earlier the code is identical. I will take a look at cavitatingFoam to see I can figure it out.
kettnera is offline   Reply With Quote

Reply

Tags
flux, phi, phiv


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
MSHArequest for surfaceScalarField phi from objectRegistry msha OpenFOAM Running, Solving & CFD 11 March 21, 2014 04:35


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