# udf/exponential

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

 September 4, 2008, 09:52 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

 September 4, 2008, 11:04 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..

 September 5, 2008, 00:47 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

 September 5, 2008, 13:37 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

 September 6, 2008, 00:25 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

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Erik OpenFOAM Running, Solving & CFD 4 July 2, 2010 15:13 Carl FLUENT 0 February 2, 2009 00:01 RL FLUENT 5 September 11, 2008 17:51 pour FLUENT 0 July 4, 2008 11:11 pandelis chatzis CD-adapco 1 July 25, 2002 14:42

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