CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

Why can't I obtain the temperature gradient?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 30, 2007, 14:34
Default Why can't I obtain the temperature gradient?
  #1
Eddy
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!!!
  Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Temperature gradient in CFX Chander CFX 5 January 7, 2015 04: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 21:04
Temperature Gradient at Wall sven OpenFOAM 7 November 1, 2010 18:25
temperature normal gradient on a boundary Sandrine Main CFD Forum 2 June 10, 2009 16:34


All times are GMT -4. The time now is 12:02.