CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   neighboring cell in VOF model (http://www.cfd-online.com/Forums/fluent-udf/83201-neighboring-cell-vof-model.html)

stulle December 19, 2010 17:20

neighboring cell in VOF model
 
hello,

iīm modelling a two phase flow with a mixture phase (water_vapor+air) and a water phase.
on the interface between the two phases there is one cell with volume fraction between 0 and 1, letīs say 0.5.
i want to access the cell which is next to the cell with volume fraction 0.5, this cell has volume fraction 0.

CELL A:water(C_VOF=1)|CELL B:C_VOF=0.5|CELL C:mix_phase(C_VOF=0)

how can i solve my problem by using an udf ?
like :
if(C_VOF(c,water)<1)
calculate something in CELL B
and
calculate something in CELL C

i know there are some macros like F_C0 and F_C1, but i donīt know how to use them in a multiphase problem...

thanks for your help or suggestions :)

fluentuser1 January 5, 2011 10:27

I think you could loop all the cells to find the the surface cell. And then you can test the cells around the surface cell.


All times are GMT -4. The time now is 05:26.