10 October 2018 2 1K Report

Hi everyone

I'm modelling a process of a furnace. The heating process in this furnace occurs gradually, i.e. the thermal profile is changing with time. I have managed to write a UDF for this transient temperature for the furnace wall. Now I want to monitor the temperature profile of the product inside the furnace, which will be also changing with time as the heating process is running.

Now I want to capture the product's transient temperature at every time step and use it in post processing to make a temp. vs time graph?

What MACRO or SCHEME MACRO can I use to get this temp. variable from the UDF in such a way that I can use it in post processing. Also Can I save the output parameters in a file that can be opened in excel or MatLab?

Please see below code which is I believe not so correct as I built it using different tutorials. Please have a look and advice me how to modify it. I also want the values of the temperature and to be saved in a file that can be opened in excel, if possible.

/* Compute face average temperature and store in user-defined memory */

#include "udf.h" #define ID 8 DEFINE_ADJUST(wall_temp,domain) { face_t f; Thread *t = Lookup_Thread(domain, ID); begin_f_loop(f,t) { temp = F_T(f,t);

F_UDMI(f,t,0) = (temp - tmin) / (tmax-tmin);

} end_f_loop(f,t) }

Any help is much appreciated Oula

More Oula Fatla's questions See All
Similar questions and discussions