CFD Online Logo CFD Online URL
Home > Forums > FLUENT

How to modify velocity with UDF

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

LinkBack Thread Tools Display Modes
Old   June 28, 2003, 21:59
Default How to modify velocity with UDF
Posts: n/a
Sponsored Links
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?
  Reply With Quote
Sponsored Links


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF paraboloid velocity inlet rosco FLUENT 10 June 2, 2017 08: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 12:20

Sponsored Links

All times are GMT -4. The time now is 08:21.