|
[Sponsors] |
UDF value error when i calculate a log function |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 9, 2013, 23:39 |
UDF value error when i calculate a log function
|
#1 |
New Member
KSW
Join Date: Apr 2013
Posts: 1
Rep Power: 0 |
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! |
|
Tags |
c_strain_rate_mag, log |
|
|
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 |