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

Moving Reference frame - UDF - Moving mesh

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

LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2008, 14:31
Default Moving Reference frame - UDF - Moving mesh
Posts: n/a
Hello everybody,

Does any one know what does the following UDF exactly do?

DEFINE_ADJUST(vel, domain) {

Thread *t;

cell_t c;

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

thread_loop_c (t, domain)

{if (THREAD_ID(t) == 2)

{ THREAD_VAR(t).fluid.velocity[0] = sin(time); THREAD_VAR(t).fluid.velocity[2] = cos(time);


} }

I would like to update my grid location at each time step. Thank you, modisa
  Reply With Quote


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
Moving reference frame sadanand FLUENT 0 February 6, 2009 00:18
Moving Reference Frame UDF Mark FLUENT 1 March 17, 2008 18:57
Moving Reference Frame lila FLUENT 4 June 8, 2007 10:05
Moving reference frame CFD_boy FLUENT 6 April 20, 2006 12:39
moving reference frame Satyamu FLUENT 1 January 5, 2006 13:18

All times are GMT -4. The time now is 17:37.