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

udf/exponential

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2008, 10:52
Default udf/exponential
  #1
ssixr
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
  Reply With Quote

Old   September 4, 2008, 12:04
Default Re: udf/exponential
  #2
jay
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..
  Reply With Quote

Old   September 5, 2008, 01:47
Default Re: udf/exponential
  #3
ssixr
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
  Reply With Quote

Old   September 5, 2008, 14:37
Default Re: udf/exponential
  #4
jay
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
  Reply With Quote

Old   September 6, 2008, 01:25
Default Re: udf/exponential
  #5
ssixr
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
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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


All times are GMT -4. The time now is 19:31.