undeclared variable
hi.
I want to interpret a udf in fluent, but i encounter this error: "line 12: P_CELL: undeclared variable" here is part of my file: #include "udf.h" DEFINE_DPM_LAW(condenshumidlaw,p,coupled) { #define R 8314.34; #define Mo2 31.999; #define Mn2 28.013; #define Mh2o 18.015; #define Dim 3e-5; #define noo_wv 0.64; cell_t c; c=P_CELL(p); Thread *t; t=P_CELL_THREAD(p); real m_cel=C_R(c,t)*C_VOLUME(c,t); real t_cel=C_T(c,t); is there any one who can help me. so thanks! |
Quote:
#include "udf.h" #define R 8314.34; #define Mo2 31.999; #define Mn2 28.013; #define Mh2o 18.015; #define Dim 3e-5; #define noo_wv 0.64; DEFINE_DPM_LAW(condenshumidlaw,p,coupled) { cell_t c; Thread *t; real m_cel,t_cel; c=P_CELL(p); t=P_CELL_THREAD(p); m_cel=C_R(c,t)*C_VOLUME(c,t); t_cel=C_T(c,t); |
Hi dear gear boy.
I changed my udf according to your suggestion. but again i encountered this error: "P_CELL: undeclared variable" |
Quote:
|
hi dear
did you find a solution? I have a same problem. |
This macro can be accessed only by complied UDF.
|
All times are GMT -4. The time now is 19:59. |