CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   udf/exponential (

ssixr September 4, 2008 09:52

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

jay September 4, 2008 11:04

Re: udf/exponential
may I know what are these X and Z?

I guess t is the I right?

if it is known, I can help in this..

ssixr September 5, 2008 00:47

Re: udf/exponential
hello jay,

thanks for the 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

jay September 5, 2008 13:37

Re: udf/exponential
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

ssixr September 6, 2008 00:25

Re: udf/exponential
hi jay,

thanks for the reply.'t' is the time and its a i cant just take a constant value like you mentioned.. regards ssixr

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