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

How to define unsteady term in scaler function?

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 19, 2001, 12:04
Default How to define unsteady term in scaler function?
  #1
olivia
Guest
 
Posts: n/a
Hi: I want to define unsteady term in scaler function . But it have some error message in line 6 message is UDS:undeclared variable.

Can anyone know how to solve this problem? Thanks!!

#include "udf.h"

DEFINE_SOURCE(usr_ensource, cell, thread, ds, eqn) {

real lg,l,unst;UDS

unst = DEFINE_UDS_UNSTEADY(c, t, i);

l = 2440.0;

lg = l * ( 1.0 + 8.31 * exp(-1.0 * 0.436 * C_UDSI(c,t,i) ) );

source = 1.0 / 0.5 * unst * lg;

return source; }

  Reply With Quote

 


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
HELP----Surface Reaction UDF Ashi Fluent UDF and Scheme Programming 1 May 19, 2020 21:13
How to define a transient species source term? aleisia FLUENT 3 March 7, 2011 22:58
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 06:59
unsteady Bernoulli equation and wagner function. Afungchui Main CFD Forum 0 March 14, 2005 11:50


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