|
[Sponsors] |
May 12, 2004, 05:12 |
UDF about transient case
|
#1 |
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!! |
|
May 12, 2004, 06:05 |
Re: UDF about transient case
|
#2 |
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 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 03: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 08: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 14, 2004 00:37 |