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

udf/exponential

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 4, 2008, 09: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, 11: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, 00: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, 13: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, 00: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
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 On
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 15: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 17:51
exponential source term pour FLUENT 0 July 4, 2008 11:11
Exponential Cell Spacing pandelis chatzis CD-adapco 1 July 25, 2002 14:42


All times are GMT -4. The time now is 16:11.