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

tutorial on VOF in FLUENT 12

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 10, 2009, 22:26
Default tutorial on VOF in FLUENT 12
  #1
New Member
 
Join Date: Nov 2009
Posts: 14
Rep Power: 6
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, 06:10
Default
  #2
Member
 
Join Date: Dec 2009
Posts: 40
Rep Power: 6
Zeppo is on a distinguished road
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, 10:21
Default
  #3
New Member
 
zhouquan
Join Date: Dec 2009
Posts: 6
Rep Power: 6
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

Thread Tools
Display Modes

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 On
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 11:28.