CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

Transient sinusoidal velocity inlet

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

LinkBack Thread Tools Search this Thread Display Modes
Old   September 27, 2010, 11:07
Default Transient sinusoidal velocity inlet
Join Date: Jun 2009
Posts: 31
Rep Power: 17
mrestrepo30 is on a distinguished road
I'm trying to impose a sinusoidal velocity boundary condition in a cylinder, but instead of having the velocity magnitude changing in time (according to the sinusoidal eq), I only get my inlet profile to change into a sine wave.

I tried using different equations for defining my transient boundary condition, but the result is always the same: a sine profile at the entrance.

The UDF I'm using is below.

Is this the correct way to impose a transient boundary condition? does anyone have any suggestions?


#include "udf.h"

DEFINE_PROFILE(unsteady_velocity, thread, position)
face_t f;
real t = CURRENT_TIME;
real vel;

vel= 0.2+0.1*sin(t);

begin_f_loop(f, thread)

F_PROFILE(f, thread, position) = vel;
} end_f_loop(f, thread)

mrestrepo30 is offline   Reply With Quote

Old   September 27, 2010, 11:17
Join Date: Jun 2009
Location: The Moon
Posts: 42
Rep Power: 17
Trev is on a distinguished road
An easy way around this would be to get hold of the de laval nozzle 2D tutorial which has a UDF that imposes a transient sinusoidal velocity profile at the inlet. Then modify it for your problem or see how the code is structured then modify your UDF.

Trev is offline   Reply With Quote

Old   September 27, 2010, 12:03
Join Date: Jun 2009
Posts: 31
Rep Power: 17
mrestrepo30 is on a distinguished road
Hi Trev,

I actually have the same structure, but the only thing that I changed is that instead of using pressure I'm imposing velocity. To do this I'm just reading the UDF into the velocity inlet BC... but it doesn't work.
mrestrepo30 is offline   Reply With Quote


porfile, transient bc, udf, velocity

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Steady pipe flow mean velocity higher than inlet velocity anita OpenFOAM Running, Solving & CFD 7 September 25, 2012 05:35
commit velocity outlet to velocity inlet chelvistero OpenFOAM 0 March 27, 2010 03:46
Pressure Inlet Velocity prapanj OpenFOAM 11 June 23, 2009 11:15
Transient Velocity Inlet kapel OpenFOAM Running, Solving & CFD 3 June 6, 2006 10:03
UDF paraboloid velocity inlet Ronak Shah FLUENT 0 June 4, 2003 09:44

All times are GMT -4. The time now is 06:20.