|
[Sponsors] |
November 16, 2004, 00:31 |
temperature source term
|
#1 |
Guest
Posts: n/a
|
hi can anyone help me how to write a udf for a solid whose temperature is varying with time.i got a 3-D model.
i tried this one but it didnt work. may be i have to use cell thread, i tried that one too but i got errors when i compiled. ********************************************** #include "udf.h" DEFINE_PROFILE (out_temp,thread,i) { face_t f; begin_f_loop( f, thread ) { real t = RP_Get_Real ( "flow-time"); F_PROFILE( f,t,i) =273 + (1 - exp( - (t/22)))*27; } end_f_loop(f,thread) } ************************************************** thank you bikash |
|
November 16, 2004, 19:42 |
Re: temperature source term
|
#2 |
Guest
Posts: n/a
|
hi
i fixed my problem. thank you |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem of SOURCE term gradient in UDS | wind | Fluent UDF and Scheme Programming | 6 | December 1, 2022 14:21 |
momentum source term | zwdi | FLUENT | 14 | June 27, 2017 15:40 |
[Gmsh] Compiling gmshFoam with OpenFOAM-1.5 | BlGene | OpenFOAM Meshing & Mesh Conversion | 10 | August 6, 2009 04:26 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 01:24 |
Adding a momentum source term | segersson | OpenFOAM Running, Solving & CFD | 5 | March 2, 2006 23:06 |