|
[Sponsors] |
January 10, 2016, 03:44 |
HELP:Some confusion about the macro F_VOF
|
#1 |
New Member
Qiong-yao Wang
Join Date: Apr 2014
Posts: 18
Rep Power: 12 |
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) } } |
|
January 10, 2016, 21:10 |
|
#2 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
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. |
|
Tags |
fluent, f_vof, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to use the thread_storage macro? | lxlxlxt | FLUENT | 0 | February 10, 2014 22:53 |
StarCCM+ Command line options and Macro execution | isidp | STAR-CCM+ | 8 | January 29, 2013 06:00 |
Macro Trouble -Winows Explorer Crashes with Macro | Martin Castillo | FLUENT | 1 | July 25, 2007 05:18 |
Macro problem | cfddummy | Siemens | 1 | April 9, 2007 13:37 |
Call a macro from a macro | Flav | Siemens | 2 | July 1, 2004 06:42 |