|
[Sponsors] |
How to define unsteady term in scaler function? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 19, 2001, 12:04 |
How to define unsteady term in scaler function?
|
#1 |
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; } |
|
|
|
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 |