|
[Sponsors] |
August 11, 2017, 05:20 |
UDF for absorption coefficient
|
#1 |
New Member
Paolo
Join Date: Jan 2017
Posts: 19
Rep Power: 9 |
Hi guys,
I'm not able to find what's wrong with this code: Code:
#include "udf.h" #include "materials.h" #define sootDens 1000; #define C_1_coef 4; #define C_2_coef 0.014388; #define C_3_coef 3.72; DEFINE_PROPERTY(udf_abs_coeff,c,t) { real cellTemp; real cellRho; real cellM1; real sootvf; real absCoeff; cellTemp = C_T(c,t); cellRho = C_R(c,t); cellM1 = C_UDSI(c,t,0); sootvf = cellM1*cellRho/sootDens; absCoeff = C_3_coef*C_1_coef*sootvf*cellTemp/C_2_coef; return absCoeff; } The problem rises when i try to build the library, the software returns: ..\..\src\udf_absorption_coef.c(22) : error C2100: riferimento indiretto non valido ..\..\src\udf_absorption_coef.c(22) : warning C4552: '/': l'operatore non ha effetto. Previsto operatore con effetto collaterale. P.S. I need to make the udf suitable for parallel processing Thank you in advance Paolo |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calculation of lift/drag coefficient by FLUENT UDF | rsarma | Fluent UDF and Scheme Programming | 0 | August 5, 2015 06:16 |
Lift Coefficient UDF for phase interaction | emrahdeniz | Fluent UDF and Scheme Programming | 2 | January 15, 2011 12:34 |
udf of heat transfer coefficient | me | FLUENT | 1 | June 24, 2005 15:05 |
UDF macro for surface tension coefficient | Frederik | FLUENT | 2 | May 30, 2005 11:54 |
heat transfer coefficient udf | nam su | FLUENT | 0 | March 25, 2005 03:28 |