CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   How to Include Exponential in UDF (http://www.cfd-online.com/Forums/fluent/49232-how-include-exponential-udf.html)

RL September 10, 2008 23:25

How to Include Exponential in UDF
 
Hi i am writing an UDF for heat flux which includes an equation, in that equation i have exponential factor, and i have wrote that UDF, while compiling that UDF its showing an error in exponential factor, so can any body tell me how to solve this probelm.

CDE September 11, 2008 00:28

Re: How to Include Exponential in UDF
 
exp(number)

jay September 11, 2008 00:29

Re: How to Include Exponential in UDF
 
I think default fluent compiler will not solve exponential funtion..for that you may have to install visual c+ +...

or instead of going for exponetial function..u can give the 2.718^(some corelation)

wang September 11, 2008 01:51

Re: How to Include Exponential in UDF
 
you can use the function (double) exp(double x) remeber x is defined as a real type in udf


RL September 11, 2008 02:04

Re: How to Include Exponential in UDF
 
Hi CDE, Jay, and Wang thanks for ur attention, i am not getting clear picture, so pls can u tell me in detail.

My equation wil be in the form of e^2x, so how to give this as input to fluent compiler..

Thanks.

CDE September 11, 2008 17:51

Re: How to Include Exponential in UDF
 
exp(2.0*x)


All times are GMT -4. The time now is 15:45.