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

tutorial on VOF in FLUENT 12

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 10, 2009, 23:26
Default tutorial on VOF in FLUENT 12
  #1
New Member
 
Join Date: Nov 2009
Posts: 14
Rep Power: 16
thinktank is on a distinguished road
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)
}
I was just wondering if we actually need all the definitions used i.e. #include "sg.h"
#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?
thinktank is offline   Reply With Quote

Old   December 20, 2009, 07:10
Default
  #2
Senior Member
 
Zeppo's Avatar
 
Sergei
Join Date: Dec 2009
Posts: 261
Rep Power: 21
Zeppo will become famous soon enough
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.
Zeppo is offline   Reply With Quote

Old   December 23, 2009, 11:21
Default
  #3
New Member
 
zhouquan
Join Date: Dec 2009
Posts: 6
Rep Power: 16
jayiba322 is on a distinguished road
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
jayiba322 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
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


All times are GMT -4. The time now is 21:40.