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

VOF Initialization

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 15, 2012, 06:39
Default VOF Initialization
  #1
Member
 
Narendra Gadwal
Join Date: Jul 2010
Location: India
Posts: 35
Rep Power: 7
narendra.gadwal is on a distinguished road
Send a message via Yahoo to narendra.gadwal Send a message via Skype™ to narendra.gadwal
I have a circle. I meshed it as a whole domain.
I need to give some level of water at the bottom.
I know the value of upper Y co-ordinate of the interface and the lower Y co-ordinate at the bottom of the circle.
Can anyone help me out how to patch those elements as water ?

Thanks in advance !!
narendra.gadwal is offline   Reply With Quote

Old   May 15, 2012, 14:22
Default Example
  #2
Member
 
Fer Villa
Join Date: Apr 2012
Posts: 35
Rep Power: 5
fevi84 is on a distinguished road
I understand that do you want do a cylinder of water. Following have you a UDF for initialization of volume fraction in 3D.

#include "udf.h"

#define Xc 0.0
#define Yc 0.0
#define Zmax 0.02
#define Zmin 0.0
#define r 0.01

DEFINE_INIT(cylinder,mixture_domain)
{
int phase_domain_index;
cell_t c;
Thread *ct;
Domain *sd;
real X[ND_ND];

sub_domain_loop(sd,mixture_domain,phase_domain_ind ex)
{
if (DOMAIN_ID(sd) == 3)

thread_loop_c(ct,sd)
{
begin_c_loop_all (c,ct)
{
C_CENTROID(X,c,ct);
if (X[2]<=Zmax && sqrt((pow(X[0]-Xc,2) + pow(X[1]-Yc,2)))<r)
C_VOF(c,ct)=1;
else
C_VOF(c,ct)=0;
}
end_c_loop_all (c,ct)
}
}
}

In this case, ID=3 is the secondary phase. ID=2 is for first phase.
fevi84 is offline   Reply With Quote

Old   May 15, 2012, 23:06
Default
  #3
Member
 
Narendra Gadwal
Join Date: Jul 2010
Location: India
Posts: 35
Rep Power: 7
narendra.gadwal is on a distinguished road
Send a message via Yahoo to narendra.gadwal Send a message via Skype™ to narendra.gadwal
Thank you !!!
narendra.gadwal is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
the initialization of the coupled level set method and vof model in FLUENT 13.0 dutliang FLUENT 3 December 13, 2011 22:28
Initialization - VOF moas FLUENT 4 February 19, 2008 23:35
Domain Initialization in 2 phase flow using VOF moas CFX 3 February 17, 2008 06:19
HELP! adding a mass source to VOF eqn. by UDF??? ROOZBEH FLUENT 4 May 29, 2003 09:54
Initialization of VOF Jennie Main CFD Forum 4 November 18, 1999 17:41


All times are GMT -4. The time now is 12:25.