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

Heat Flux UDF not working

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2023, 09:12
Default Heat Flux UDF not working
  #1
New Member
 
shashank
Join Date: Jun 2022
Posts: 1
Rep Power: 0
shashank123 is on a distinguished road
#include "udf.h"
#include "mem.h"


DEFINE_PROFILE(HeatFlux,t,i)
{

real temp, press, temp_grad, a, b, cz, Psat, denominator, mass_flux, heat_flux;
real vel,tc,tp,dt,den,dtdxw;

cell_t c,c0;
face_t f;
Thread *t0 = t->t0;

if (!Data_Valid_P()) return;

begin_f_loop (f,t)
{

c0 = F_C0(f,t);
t0 = F_C0_THREAD(f,t);



press = C_P(c0,t0);
temp = F_T(f,t);


a=0.1;
b=10.0896-2926.6/temp;
cz=2*3.14*65*temp;
Psat=133.3*pow(2.71,b);

denominator=pow(cz,0.5);

mass_flux=a*(Psat-press)/denominator;
heat_flux=mass_flux*(574000.0);


F_PROFILE(f,t,i) = 574000.0*mass_flux;

}
end_f_loop(f,t)

}


i am trying to use heat flux on the wall but im getting error ''compute process interrupted". (density based solver)

When i am using a lower value(574*mass_flux) then it is working. I have tried replacing 'real' with 'float' but no luck.
shashank123 is offline   Reply With Quote

Old   January 19, 2023, 04:24
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
Thread *t0;
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Reply

Tags
ansys, fluent -udf, udf, udf code


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 heat flux boundary conditions (heat fulx - convective losses - radiation losses) JMM_UC3M Fluent UDF and Scheme Programming 6 January 31, 2021 15:56
Simulating constant heat flux value at solid-solid boundary Y27 STAR-CCM+ 6 September 8, 2020 10:56
UDF for mass and heat source with heat transfer rajendra1 Fluent UDF and Scheme Programming 35 October 13, 2017 05:04
UDF for Heat Flux kishan kumar jaiswal FLUENT 4 April 21, 2014 19:01
UDF to calculate average heat flux dynamics Fluent UDF and Scheme Programming 0 July 21, 2012 19:54


All times are GMT -4. The time now is 14:16.