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

Issues with volume of fluid in three phase simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 17, 2017, 08:30
Question Issues with volume of fluid in three phase simulation
  #1
New Member
 
Hooman
Join Date: Jan 2016
Posts: 19
Rep Power: 10
hooman.esl is on a distinguished road
Hi dear all,
I am trying to write a UDF for mass source term in continuity equation in porous media condition. my problem has 3 phases (water(liquid), methane and hydrate(solid)).
i want to add this source term for methane phase:
Quote:
mg = c* Sh * (Pe - P);
mg: mass generation of gas
Sh: saturation of hydrate
p: pressure
pe: equilibrium pressure
my problem is that how can i access to hydrate saturation or volume fraction when i am writing UDF for methane phase???

for two phase flow i used this code:

Quote:
b=C_VOF(c,t); /* vol fraction of methane */
a=porosity-b; /* vol fraction of water */
sat_w=a/porosity; //saturation for water

but in three phase i need the volume of fluid of water to calculate hydrate saturation:
Saturation of hydrate+Saturation of methane+Saturation of water=1
can any one help me?
hooman.esl 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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
[snappyHexMesh] sHM layer process keeps getting killed MBttR OpenFOAM Meshing & Mesh Conversion 4 August 15, 2016 04:21
[swak4Foam] mass conservation of solid phase violated when using groovyBC with twoPhaseEulerFoam xpqiu OpenFOAM Community Contributions 8 June 17, 2015 03:08
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 10:11


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