CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

How to modify velocity with UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 28, 2003, 21:59
Default How to modify velocity with UDF
  #1
jddmsh
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?
  Reply With Quote

Reply

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 inlet velocity profile mismatch with Fluent ChristineL Fluent UDF and Scheme Programming 10 June 24, 2013 06:10
UDF paraboloid velocity inlet rosco FLUENT 5 September 1, 2011 02:29
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


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