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

UDF value error when i calculate a log function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 9, 2013, 23:39
Default UDF value error when i calculate a log function
  #1
New Member
 
KSW
Join Date: Apr 2013
Posts: 1
Rep Power: 0
neangiee is on a distinguished road
HI,

I want to calculate a log function.

Here is my UDF file.

(simply example.)

DEFINE_PROPERTY(cell_viscosity, cell, thread)
{
real mu_lam;
real AA;
real defRateMag = C_STRAIN_RATE_MAG(cell, thread);

AA = log(defRateMag);
mu_lam = AA;

return mu_lam;
}

In solution initialization step, i initialize standard and hybrid.

And then, i check the properties -> Molecular Viscosity

That value is 1.#Je+00

I think AA = log(defRateMag) is not calculate.

Someone help me!

Thanks a lot!
neangiee is offline   Reply With Quote

Reply

Tags
c_strain_rate_mag, log


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
compressible flow in turbocharger riesotto OpenFOAM 50 May 26, 2014 02:47
UDF parse error at profile function line Wiggy Fluent UDF and Scheme Programming 1 July 27, 2009 16:59
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 07:27
REAL GAS UDF brian FLUENT 6 September 11, 2006 09:23
C_NNODES UDF 'function' problem Matthew Brannock FLUENT 2 June 21, 2000 23:46


All times are GMT -4. The time now is 02:57.