|
[Sponsors] |
April 18, 2008, 14:31 |
Moving Reference frame - UDF - Moving mesh
|
#1 |
Guest
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 |
|
|
|
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 |