|
[Sponsors] |
September 4, 2008, 10:52 |
udf/exponential
|
#1 |
Guest
Posts: n/a
|
hello to everyone,
i am trying to solve a temperature variation in a face based on a heat flux formula q=exp^(-3/2{X^2+[Z-t]}) using a udf based on DEFINE PROFILE macro.the error i am getting is "invalid type conversion: function returning double -> double" can anyone help me in this problem? thanks in advance regards ssixr |
|
September 4, 2008, 12:04 |
Re: udf/exponential
|
#2 |
Guest
Posts: n/a
|
may I know what are these X and Z?
I guess t is the time..am I right? if it is known, I can help in this.. |
|
September 5, 2008, 01:47 |
Re: udf/exponential
|
#3 |
Guest
Posts: n/a
|
hello jay,
thanks for the reply..my x=0.006, 0.005, 0.004, 0.003, 0.004, 0.005, 0.006, 0.007, 0.008, 0.009, 0.008, 0.007, 0.006... z=-0.004, -0.003, -0.002, -0.001, 0, 0.001, 0.002, 0.003, 0.004 actually the values are not a problem..fluent is not accepting my udf code for exponential terms.. can u help me? regards ssixr |
|
September 5, 2008, 14:37 |
Re: udf/exponential
|
#4 |
Guest
Posts: n/a
|
hi ssixr,
Instead of exp function..why cant you use the approximate numerical value 2.718281828.... may be syntax error with exp function syntax for fluent... may I know what is t" is it temperature or time or any constant? Regards, Jay |
|
September 6, 2008, 01:25 |
Re: udf/exponential
|
#5 |
Guest
Posts: n/a
|
hi jay,
thanks for the reply.'t' is the time and its a variable.so i cant just take a constant value like you mentioned.. regards ssixr |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Implement Exponential Integral | Erik | OpenFOAM Running, Solving & CFD | 4 | July 2, 2010 16:13 |
Maximum Pre-Exponential Factor? | Carl | FLUENT | 0 | February 2, 2009 00:01 |
How to Include Exponential in UDF | RL | FLUENT | 5 | September 11, 2008 18:51 |
exponential source term | pour | FLUENT | 0 | July 4, 2008 12:11 |
Exponential Cell Spacing | pandelis chatzis | Siemens | 1 | July 25, 2002 15:42 |