|
[Sponsors] |
September 11, 2008, 00:25 |
How to Include Exponential in UDF
|
#1 |
Guest
Posts: n/a
|
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.
|
|
September 11, 2008, 01:28 |
Re: How to Include Exponential in UDF
|
#2 |
Guest
Posts: n/a
|
exp(number)
|
|
September 11, 2008, 01:29 |
Re: How to Include Exponential in UDF
|
#3 |
Guest
Posts: n/a
|
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) |
|
September 11, 2008, 02:51 |
Re: How to Include Exponential in UDF
|
#4 |
Guest
Posts: n/a
|
you can use the function (double) exp(double x) remeber x is defined as a real type in udf
|
|
September 11, 2008, 03:04 |
Re: How to Include Exponential in UDF
|
#5 |
Guest
Posts: n/a
|
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. |
|
September 11, 2008, 18:51 |
Re: How to Include Exponential in UDF
|
#6 |
Guest
Posts: n/a
|
exp(2.0*x)
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Maximum Pre-Exponential Factor? | Carl | FLUENT | 0 | February 2, 2009 00:01 |
udf/exponential | ssixr | FLUENT | 4 | September 6, 2008 01:25 |
exponential source term | pour | FLUENT | 0 | July 4, 2008 12:11 |
how to convert the pre-exponential coefficient? | lily | FLUENT | 1 | March 14, 2006 03:19 |
How to get Exponential Curve in Transient? | Julie | FLUENT | 0 | August 20, 2002 03:54 |