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

Unsteady udf

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2008, 06:17
Default Unsteady udf
  #1
Mary
Guest
 
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

Old   April 22, 2008, 04:20
Default Re: Unsteady udf
  #2
bohis
Guest
 
Posts: n/a
instead of RP_Get.... , I would use al=CURRENT_TIMESTEP;

further, I am not sure, but You may need to define a derivation of your source (dS[eqn])

bye
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unsteady Particle With unsteady Fluid Ali FLUENT 0 August 4, 2006 12:29
UDS UNSTEADY Arvind Phate FLUENT 0 August 27, 2005 14:17
about unsteady yanghua Fidelity CFD 0 June 10, 2003 21:23
Unsteady DPM Alex Munoz FLUENT 0 May 12, 2003 21:36
about unsteady dahuilang Phoenics 0 November 23, 2001 03:45


All times are GMT -4. The time now is 10:51.