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

HELP:Some confusion about the macro F_VOF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 10, 2016, 02:44
Default HELP:Some confusion about the macro F_VOF
  #1
New Member
 
Qiong-yao Wang
Join Date: Apr 2014
Posts: 18
Rep Power: 12
hellowqy is on a distinguished road
Hi, everyone, we know the macro C_VOF can be used to return real variables associated with the VOF multiphase model in SI units. But could you tell me the meaning of F_VOF, I’m now confusing about it. Please help me. Thanks very much.

PS: The following code are taken from the FLUENT HELP FILE, which contains the macro F_VOF.

# include "udf.h"
# define domain_ID 2
DEFINE_ADJUST(adjust_gradient, domain)
{
Thread *t;
cell_t c;
face_t f;
domain = Get_Domain(domain_ID);
/* Fill UDS with the variable. */
thread_loop_c (t,domain)
{
begin_c_loop (c,t)
{
C_UDSI(c,t,0) = C_VOF(c,t);
}
end_c_loop (c,t)
}
thread_loop_f (t,domain)
{
if (THREAD_STORAGE(t,SV_UDS_I(0))!=NULL)
begin_f_loop (f,t)
{
F_UDSI(f,t,0) = F_VOF(f,t);
}
end_f_loop (f,t)
}
}
DEFINE_ON_DEMAND(store_gradient)
{ Domain *domain;
cell_t c;
Thread *t;
domain=Get_Domain(1);
/* Fill the UDM with magnitude of gradient. */
thread_loop_c (t,domain)
{
begin_c_loop (c,t)
{
C_UDMI(c,t,0) = NV_MAG(C_UDSI_G(c,t,0));
}
end_c_loop (c,t)
}
}
hellowqy is offline   Reply With Quote

Old   January 10, 2016, 20:10
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
Fluent is a finite volume based solver and uses cell-centred values. These values are accessible with the C_* family of macros. However, face values are also required for a number of operations and can be accessed with F_*.

The macros C_VOF and F_VOF correspond to the volume fraction of a cell and of a face, respectively.
`e` is offline   Reply With Quote

Reply

Tags
fluent, f_vof, udf


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
How to use the thread_storage macro? lxlxlxt FLUENT 0 February 10, 2014 21:53
StarCCM+ Command line options and Macro execution isidp STAR-CCM+ 8 January 29, 2013 05:00
Macro Trouble -Winows Explorer Crashes with Macro Martin Castillo FLUENT 1 July 25, 2007 04:18
Macro problem cfddummy Siemens 1 April 9, 2007 12:37
Call a macro from a macro Flav Siemens 2 July 1, 2004 05:42


All times are GMT -4. The time now is 11:55.