|
[Sponsors] | |||||
|
|
|
#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 |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| compressible flow in turbocharger | riesotto | OpenFOAM | 48 | April 20, 2013 10:52 |
| UDF parse error at profile function line | Wiggy | Fluent UDF and Scheme Programming | 1 | July 27, 2009 15:59 |
| Droplet Evaporation | Christian | Main CFD Forum | 2 | February 27, 2007 06:27 |
| REAL GAS UDF | brian | FLUENT | 6 | September 11, 2006 08:23 |
| C_NNODES UDF 'function' problem | Matthew Brannock | FLUENT | 2 | June 21, 2000 22:46 |