|
[Sponsors] |
May 15, 2012, 07:39 |
VOF Initialization
|
#1 |
Member
|
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 !! |
|
May 15, 2012, 15:22 |
Example
|
#2 |
Member
Fer Villa
Join Date: Apr 2012
Posts: 35
Rep Power: 13 |
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. |
|
May 16, 2012, 00:06 |
|
#3 |
Member
|
Thank you !!!
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HELP! adding a mass source to VOF eqn. by UDF??? | ROOZBEH | FLUENT | 5 | December 3, 2016 18:53 |
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 |
Initialization of VOF | Jennie | Main CFD Forum | 4 | November 18, 1999 17:41 |