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

UDF code not working

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 3, 2018, 03:11
Default UDF code not working
  #1
New Member
 
newuser
Join Date: Dec 2017
Posts: 11
Rep Power: 8
new_cfd is on a distinguished road
Hi,
I used the following code to increase the heat flux along a vertical wall from 0-500 linearly. However it doesn't work. I checked the wall heat flux at different locations in the CFD post, but it didn't give the right fluxes.Please let me know the correct solution.

DEFINE_PROFILE(lin_incr,t,i)
{
face_t f;
float x[ND_ND];
begin_f_loop(f,t)
{
F_CENTROID(x,f,t);
F_PROFILE(f,t,i)=0+1250*x[0];
}
end_f_loop(f,t)
}
new_cfd is offline   Reply With Quote

 


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 For Electrical Conductivity Not working rage Fluent UDF and Scheme Programming 2 December 9, 2016 09:03
Difficulty with UDF code for HEAT FLUX etudiant_IITB Fluent UDF and Scheme Programming 1 December 7, 2015 08:07
UDF is not working er.mkumar Fluent UDF and Scheme Programming 0 September 8, 2012 09:33
Request for UDF code for forced vibrations jagadeesh putta Main CFD Forum 0 November 21, 2007 21:46
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 15:56


All times are GMT -4. The time now is 15:26.