CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

free surface modelling using VOF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 27, 2012, 03:43
Default free surface modelling using VOF
  #1
sci
New Member
 
Join Date: Aug 2012
Posts: 9
Rep Power: 14
sci is on a distinguished road
I'm trying to write a code in Frotran to simulate free water surface in 2DV using Volume Of Fluid method. My code isn't giving the right answer.
I assume that cells with free surface have known pressures. For the rest of the cells using the momentum equations and free surface continuity equation, I find the new pressure terms. Is it right to use free surface equation for cells that aren't free surface? if not what should I do?
Thanks for helping.
sci is offline   Reply With Quote

Old   August 28, 2012, 07:21
Default
  #2
Senior Member
 
Join Date: Aug 2011
Posts: 272
Rep Power: 16
leflix is on a distinguished road
Quote:
Originally Posted by sci View Post
Is it right to use free surface equation for cells that aren't free surface? if not what should I do?
Thanks for helping.
What is what you call free surface equation?
leflix is offline   Reply With Quote

Old   August 28, 2012, 09:17
Default
  #3
sci
New Member
 
Join Date: Aug 2012
Posts: 9
Rep Power: 14
sci is on a distinguished road
I mean the continuity equation that is used for the free surface:


Attached Images
File Type: gif Untitled.gif (2.4 KB, 15 views)
sci is offline   Reply With Quote

Old   August 28, 2012, 11:24
Default
  #4
Senior Member
 
Join Date: Aug 2011
Posts: 272
Rep Power: 16
leflix is on a distinguished road
Quote:
Originally Posted by sci View Post
I mean the continuity equation that is used for the free surface:


Sorry I don't know what you are talking about and what your equation corresponds to.
leflix is offline   Reply With Quote

Old   August 28, 2012, 13:10
Default
  #5
New Member
 
Join Date: Aug 2012
Posts: 22
Rep Power: 14
AeroMike is on a distinguished road
If I remember correctly you will always get some spurious currents when using the VoF equation in 2D. I'm not sure if that is what you are experiencing or not, if it is checkout the openFOAM tutorials, I think there is one there which demonstrates what I mean.
Mike
AeroMike is offline   Reply With Quote

Old   August 28, 2012, 16:44
Default
  #6
Senior Member
 
Join Date: Aug 2011
Posts: 272
Rep Power: 16
leflix is on a distinguished road
VOF method is based on the solving of this equation:
dF/dt +udF/dx+vdF/dy=0
here d is the partial derivative, F is the volume fraction.
When F(i,j)=0 cell (i,j) is fully occupied bythe first fluid, when F(i,j)=1 cell (i,j) is fully occupied by the second fluid. when 0<F(i,j)<1then cell (i,j) is occupied by the two fluids and then the interface cross the cell.
Now I don't know what you are talking about with your "free surface continuity equation"
leflix is offline   Reply With Quote

Old   August 29, 2012, 02:50
Default
  #7
sci
New Member
 
Join Date: Aug 2012
Posts: 9
Rep Power: 14
sci is on a distinguished road
I've written a code solving this equation you mentioned using young method which works accurately.
what I'm trying to do now is to solve the continuity and momentum equations in order to find the new pressures and velocities in the new time step and then solve the VOF equation with the new velocities.
sci is offline   Reply With Quote

Old   August 29, 2012, 02:55
Default
  #8
sci
New Member
 
Join Date: Aug 2012
Posts: 9
Rep Power: 14
sci is on a distinguished road
Mike I checked it out, but it wasn't related to my problem, thanks anyway.
sci is offline   Reply With Quote

Old   August 29, 2012, 02:58
Default
  #9
New Member
 
Join Date: Aug 2012
Posts: 22
Rep Power: 14
AeroMike is on a distinguished road
Okay, no worries, sorry for sending you down a blind alley!
Mike
AeroMike is offline   Reply With Quote

Old   August 29, 2012, 03:56
Default
  #10
Member
 
Ren/Xingyue
Join Date: Jan 2010
Location: Nagoya , Japan
Posts: 44
Rep Power: 16
hilllike is on a distinguished road
nik,
The surface tension is not very important in single phase model.
You don't consider the air phase in your model. Pressure and velocity were calculated by boundary condition at the free surface, so the sharp change across the free surface won't affect your calculation. See SOLA-VOF and NASA-VOF as a reference.

If you want to use free surface tension, the surface force should be changed into body force and only exist in the smooth area based on CSF model, using a delta function.

Ren
hilllike is offline   Reply With Quote

Old   August 29, 2012, 08:43
Default
  #11
Senior Member
 
Join Date: Aug 2011
Posts: 272
Rep Power: 16
leflix is on a distinguished road
Quote:
Originally Posted by sci View Post
I've written a code solving this equation you mentioned using young method which works accurately.
ok fine ! It's the first step

Quote:
what I'm trying to do now is to solve the continuity and momentum equations in order to find the new pressures and velocities in the new time step and then solve the VOF equation with the new velocities.
yes ! so you can use either projection method for variable density flows
so you should solve a poisson equation for pressure which looks like DIV(1/rho GRAD P)= DIV(U*)
Many papers exist on this topic.

or you can use SIMPLE algorithm alos for variable density flow.
leflix 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
UDF Defining VOF Free Surface at Outlet Alex Fluent UDF and Scheme Programming 13 August 8, 2012 17:50
Free surface boundary condition in the VOF metod ves Main CFD Forum 2 March 8, 2011 16:23
Free Surface Modelling and Reversed Flow Error Javier González FLUENT 4 August 16, 2004 12:37
Free surface modelling under CFX 4 Dahong CFX 2 June 23, 2002 00:07
CFX 4.4 New free surface option Viatcheslav Anissimov CFX 0 April 3, 2002 07:27


All times are GMT -4. The time now is 14:07.