|
[Sponsors] |
October 30, 2007, 13:34 |
Why can't I obtain the temperature gradient?
|
#1 |
Guest
Posts: n/a
|
I wrote a macro with DEFINE_EXECUTE_AT_END for my 2-phase eulerian model.
DEFINE_EXECUTE_AT_END(name) { cell_t c; Thread *t_mix,*t_p1; thread_loop_c(t_mix, d) { if(FLUID_THREAD_P(t_mix)) { t_p1=THREAD_SUB_THREAD(t_mix, 0); begin_c_loop(c, t_mix) { C_UDMI(c,t_mix,0)=C_T_G(c, t_p1)[0]*0.01; } end_c_loop(c,t_mix) }}} I have hook the enthalpy source term for the phase-1 and phase-2, and I need to use C_UDMI(c,t_mix,0) to express the mass transfer rate in the mass source terms. Compilation is OK, but there is "segmentation violation" signal afther I click "iteration". I patched an initial value to UDMI-0, because i have to use the value in a DEFINE_ADJUST macro. Need help!!! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Temperature gradient in CFX | Chander | CFX | 5 | January 7, 2015 03:00 |
specified shear at wall - temperature gradient - UDF - access violation error | senD | Fluent UDF and Scheme Programming | 9 | September 18, 2014 07:29 |
Wall correction for the temperature gradient | Hagen | OpenFOAM | 0 | March 7, 2011 20:04 |
Temperature Gradient at Wall | sven | OpenFOAM | 7 | November 1, 2010 17:25 |
temperature normal gradient on a boundary | Sandrine | Main CFD Forum | 2 | June 10, 2009 16:34 |