CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

How to Include Exponential in UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 10, 2008, 23:25
Default How to Include Exponential in UDF
  #1
RL
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.
  Reply With Quote

Old   September 11, 2008, 00:28
Default Re: How to Include Exponential in UDF
  #2
CDE
Guest
 
Posts: n/a
exp(number)
  Reply With Quote

Old   September 11, 2008, 00:29
Default Re: How to Include Exponential in UDF
  #3
jay
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)
  Reply With Quote

Old   September 11, 2008, 01:51
Default Re: How to Include Exponential in UDF
  #4
wang
Guest
 
Posts: n/a
you can use the function (double) exp(double x) remeber x is defined as a real type in udf

  Reply With Quote

Old   September 11, 2008, 02:04
Default Re: How to Include Exponential in UDF
  #5
RL
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.
  Reply With Quote

Old   September 11, 2008, 17:51
Default Re: How to Include Exponential in UDF
  #6
CDE
Guest
 
Posts: n/a
exp(2.0*x)
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maximum Pre-Exponential Factor? Carl FLUENT 0 February 1, 2009 23:01
udf/exponential ssixr FLUENT 4 September 6, 2008 00:25
exponential source term pour FLUENT 0 July 4, 2008 11:11
how to convert the pre-exponential coefficient? lily FLUENT 1 March 14, 2006 02:19
How to get Exponential Curve in Transient? Julie FLUENT 0 August 20, 2002 02:54


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