|
[Sponsors] |
January 18, 2023, 09:12 |
Heat Flux UDF not working
|
#1 |
New Member
shashank
Join Date: Jun 2022
Posts: 1
Rep Power: 0 |
#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. |
|
January 19, 2023, 04:24 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
Thread *t0;
__________________
best regards ****************************** press LIKE if this message was helpful |
|
Tags |
ansys, fluent -udf, udf, udf code |
|
|
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 |