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

UDF about transient case

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 12, 2004, 04:12
Default UDF about transient case
  #1
Jason
Guest
 
Posts: n/a
Hi! This is my first time to use UDF. I want to define the inlet velocity as v=v0*sin(2*pi*f*t)in 3d tube. I read the fluent documentation (4.3.12 DEFINE_PROFILE). But the example is steady state. I confused how to add the time variable in my DEFINE_PROFILE macros.

Thanks in advance!!
  Reply With Quote

Old   May 12, 2004, 05:05
Default Re: UDF about transient case
  #2
mateus
Guest
 
Posts: n/a
How about something like that?

#include "udf.h"

DEFINE_PROFILE(unsteady_velocity, thread, position) { face_t f;

begin_f_loop(f, thread)

{

real t = RP_Get_Real("flow-time");

F_PROFILE(f, thread, position) = v0*sin(2*pi*f*t);

} end_f_loop(f, thread) }

Have fun MATEUS
  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
UDF for transient pressure inlet, mass flow check at nozzle exit and volumetric heat kokoory FLUENT 0 August 17, 2011 02:07
Transient axial turbine case issues sherifkadry CFX 1 January 7, 2011 00:51
fluent udf problem for 3d case srsahu Fluent UDF and Scheme Programming 0 July 28, 2009 07:25
case files UDF volumetric reaction rate Marie-Anne Main CFD Forum 2 February 24, 2006 10:43
UDF for transient inlet velocity sharath FLUENT 2 September 13, 2004 23:37


All times are GMT -4. The time now is 23:35.