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

How to modify velocity with UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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


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
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 06:45
UDF velocity and temperature Raj FLUENT 3 February 1, 2009 18:29
Multi step transient UDF velocity profile problem William177 FLUENT 1 February 3, 2008 06:47
UDF component in Cyliderical Velocity? Hongchan Kim FLUENT 3 April 24, 2001 12:20


All times are GMT -4. The time now is 23:06.