CFD Online Logo CFD Online URL
Home > Forums > FLUENT

problem in UDF for Accesing previous Time

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

LinkBack Thread Tools Display Modes
Old   April 16, 2008, 02:00
Default problem in UDF for Accesing previous Time
Posts: n/a
Hi Dear All I want to define the source term in Energy Equation. After compiling it in Fluent and starting to iteration, this error appears and solver goes out from running mode.This error is for """"C_T_M1(c,t)"""" for taking the temperature value in previous time step.I write this Text Command """""">Solve/set/expert""""" and then answering ""Yes"" to this question""keep temporary solver memory from being freed?"" but my problem has not been solved yet. Please Help me. Best Regards.

#include "udf.h"

#define C2 100.0

DEFINE_SOURCE(amir_source4,c,t,dtime,dS,eqn) { real x[ND_ND]; real con, source,delti,al,rol;

C_CENTROID(x,c,t); con = C2*0.5*C_R(c,t)*x[1]; al = RP_Get_Real("physical-time-step"); rol=C_T_M1(c,t);

source = -.000000001*C_T_G(c,t)[0]*C_T(c,t)*rol;

return source; }
  Reply With Quote


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
UDF and previous time step macros Aleex FLUENT 2 January 23, 2011 10:39
Restarting from the previous time step Parsa Zamankhan FLUENT 2 November 28, 2008 13:21
Previous time macro in UDF Paolo Lampitella FLUENT 0 March 4, 2008 13:35
previous time step macros Bryan FLUENT 0 January 12, 2006 16:02
concentraion, previous time step yhpcgame FLUENT 0 May 22, 2005 03:38

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