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

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   December 10, 2009, 22: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

 


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 07:45
Request for pipe bifurcation fluent tutorial case Giorgos Momferratos FLUENT 0 October 20, 2008 15:10
tutorial 6 in Fluent 6.2 tutorial and Mesh pilli4u FLUENT 2 April 2, 2007 05:09
airplane Fluent tutorial alexandre FLUENT 1 February 18, 2006 02:38


All times are GMT -4. The time now is 14:27.