diffusivity
HI!
I wrote this code to define a different diffusivity for the air in the porous media and not porous media: #include "udf.h" DEFINE_DIFFUSIVITY(diffusion_coefficient,c,t,i) if (C_POR(c,t)==1) Diff=2.31*e5*101325/C_P(c,t)*pow(C_T(c,t)/273.15,1.81) else Diff=2.31*e5*101325/C_P(c,t)*pow(C_T(c,t)/273.15,1.81)*pow(C_POR(c,t),2.24) return Diff when I compile it gives parse error on line 3....is it because of the C_POR macro? I founded this notation in the forums..thanks for any help |
Quote:
|
Thanks, I added the {} but now it tells me :
line 4: structure reference not implemented |
Quote:
|
Yes...I think the problem is that I need to compile the function instead to just interpret it..I'm a little confused by the difference between this proceedings(I read also in the manual but it still isn't clear to me). When I compile it I get the error:
"RPC RCX_SC_SET_ERR_MSG failed: RPC: Can't encode arguments The UDF library you are trying to load is not compiled for 2ddp on the current platform (win64)." I haven't any spaces in the files name..is it an error in the code or in the systems settings? |
All times are GMT -4. The time now is 18:01. |