|
[Sponsors] |
June 28, 2003, 22:59 |
How to modify velocity with UDF
|
#1 |
Guest
Posts: n/a
|
Hi, everybody! I need to modify axial velocity to be reversed immediately in a unsteady system. I used the coupled solver. So before flow velotity vector being reversed, I set the time step as 0.0000001s, and the number of time steps is 1, the max iteration per time step is 1. after this, I complied my udf, it is: #include "udf.h" DEFINE_ADJUST(x_v,d) { Thread *t; cell_t c; thread_loop_c (t,d) { begin_c_loop (c,t) C_U(c,t)=-C_U(c,t); end_c_loop (c,t) } } But after iteration,I found the velocity was not reversed. I changed C_U(c,t)=-C_U(c,t) with C_U(c,t)=-C_U_M1(c,t), but the result is not changed. Anany body?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF paraboloid velocity inlet | rosco | FLUENT | 10 | June 2, 2017 09:01 |
UDF inlet velocity profile mismatch with Fluent | ChristineL | Fluent UDF and Scheme Programming | 15 | November 25, 2016 07:45 |
UDF velocity and temperature | Raj | FLUENT | 3 | February 1, 2009 19:29 |
Multi step transient UDF velocity profile problem | William177 | FLUENT | 1 | February 3, 2008 07:47 |
UDF component in Cyliderical Velocity? | Hongchan Kim | FLUENT | 3 | April 24, 2001 13:20 |