|
[Sponsors] |
December 10, 2009, 23:26 |
tutorial on VOF in FLUENT 12
|
#1 |
New Member
Join Date: Nov 2009
Posts: 14
Rep Power: 17 |
This is an udf file used in the VOF tutorial..
Code:
#include "udf.h" #include "sg.h" #include "sg_mphase.h" #include "flow.h" #define PI 3.141592654 DEFINE_PROFILE(membrane_speed, /* function name */ th , /* thread */ nv) /* variable number */ { face_t f; real x[ND_ND]; real f_time = RP_Get_Real("flow-time"); begin_f_loop (f,th) { F_CENTROID(x,f,th); if (f_time<=10e-6) {F_PROFILE(f,th,nv) = 3.58*cos(PI*f_time/30e-6); } else F_PROFILE(f,th,nv) = 0; } end_f_loop (f,th) } #include "sg_mphase.h" and #include "flow.h" Isnt "udf.h" enought for the above code. Also do we need to evaluate F_CENTROID(x,f,th) in this case? |
|
December 20, 2009, 07:10 |
|
#2 |
Senior Member
Sergei
Join Date: Dec 2009
Posts: 261
Rep Power: 22 |
I think "udf.h" coinains all needed to successfully compile your source file. You can find "udf.h" in the source folder within Fluent installed. F_CENTROID(x,f,th) needn't to be evaluated in your example.
I see you have tutorials files. Could you send me a copy of them (.msh, .c etc.) to my email. Thanks. |
|
December 23, 2009, 11:21 |
|
#3 |
New Member
zhouquan
Join Date: Dec 2009
Posts: 6
Rep Power: 17 |
F_CENTROID(x,f,th) needn't to be evaluated in your example.
Could you send me a copy of them (.msh, .c etc.) to my email. Thanks |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FLUENT VOF for ship's hull | simone b. | Main CFD Forum | 5 | December 6, 2008 08:45 |
Request for pipe bifurcation fluent tutorial case | Giorgos Momferratos | FLUENT | 0 | October 20, 2008 16:10 |
tutorial 6 in Fluent 6.2 tutorial and Mesh | pilli4u | FLUENT | 2 | April 2, 2007 06:09 |
airplane Fluent tutorial | alexandre | FLUENT | 1 | February 18, 2006 03:38 |