|
[Sponsors] |
March 28, 2019, 05:23 |
udf fluent
|
#1 |
New Member
feride
Join Date: Dec 2018
Posts: 3
Rep Power: 8 |
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 |
|
March 28, 2019, 20:09 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
UDF is correct
fix your equation Code:
2.427e7*(-0.0245*(z)*(z)+0.0738*(z)+0.0127) best regards |
|
|
|
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 |