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

udf fluent

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 28, 2019, 05:23
Angry udf fluent
  #1
New Member
 
feride
Join Date: Dec 2018
Posts: 3
Rep Power: 8
feride is on a distinguished road
Hello everyone,
I want to ask about udf profile doesnt work in fluent. my model has one heated cylinder that has cylindiric domain of water. I want to apply heat flux at heated wall boundary with udf. heat flux profile is cosine shape. I can interpret but after the solution it doesn't give to cosine shape. my udf c code is here;

include "udf.h"

DEFINE_PROFILE(heatflux_profile,thread,position)
{
real x[ND_ND];
real z;
face_t f;

begin_f_loop(f,thread)
{
F_CENTROID(x,f,thread);
z=x[2];
F_PROFILE(f,thread,position)=2.427e7*(-0.0245*(z)*(z)+0.0738*(z)+0.0127);
}
end_f_loop(f,thread)
}

the shape of heat flux profile at the hw after the simulation seemed like in the photo.
Can you help me? thank you in advence
Attached Images
File Type: jpg hflux.jpg (97.0 KB, 16 views)
feride is offline   Reply With Quote

Old   March 28, 2019, 20:09
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
UDF is correct
fix your equation
Code:
2.427e7*(-0.0245*(z)*(z)+0.0738*(z)+0.0127)
and check units, is it coorect that your model is in cm?

best regards
AlexanderZ is offline   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
Problem running fluent with udf on batch tobi b. Fluent UDF and Scheme Programming 3 April 14, 2016 14:54
implementing UDF for fluent in workbench for running multiple simulations faizan_habib7 Fluent UDF and Scheme Programming 0 March 18, 2016 23:29
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 14:41
fluent UDF external library lapack problem Rick FLUENT 0 May 7, 2008 11:16
UDF problem caused by various version of Fluent Yurong FLUENT 3 January 15, 2006 11:57


All times are GMT -4. The time now is 18:45.