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

UDF: How to use Macro C_VOF()

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By mohsen zendehbad

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 15, 2008, 04:08
Default UDF: How to use Macro C_VOF()
  #1
Sam
Guest
 
Posts: n/a
Hi, every one:

I have defined a 2D immiscible liquid-liquid flow flied in a square box. I used the VOF model. I wanna identify the interface between the two liquids, so I used the following code to identify the interface:

cell_t c; Thread *t;

begin_c_loop(c,t) {

real vof;

vof=C_VOF(c,t);

if (vof>0.&& vof<1.)

{

}

However, when the UDF load to the fluent and iterating, there were errors

ACESS_VIOLATION

So I doubt that the using of the C_VOF has limitation. Could anyone who konws about this? Thank you very much!!
  Reply With Quote

Old   March 3, 2010, 07:30
Default
  #2
Member
 
MOHSEN Zendehbad
Join Date: Aug 2009
Posts: 35
Rep Power: 16
mohsen zendehbad is on a distinguished road
you should first access the sub thread related to that phase, you should put that thread as an input of your C_VOF(), find the function THREAD_SUB_THREADS() in fluent documentation.
utkunun and Santiago2015 like this.
mohsen zendehbad is offline   Reply With Quote

Old   March 3, 2010, 08:49
Default
  #3
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
Why don't create an iso-surface of your vof variable with value 0.5, then there is no need for using an UDF.
Bernhard 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
load sheme macro (Solv Execute Command macro) manu FLUENT 2 March 13, 2008 01:00
Macro Trouble -Winows Explorer Crashes with Macro Martin Castillo FLUENT 1 July 25, 2007 04:18
error in udf, C_VOF paulina FLUENT 0 April 16, 2004 09:29
error in udf, C_VOF paulina FLUENT 0 April 16, 2004 09:27
UDF{ C_VOF(c,pt[n]) } two phase flow ROOZBEH FLUENT 2 April 21, 2003 04:09


All times are GMT -4. The time now is 10:57.