Errors in melting of ice-particles in ice-slurry flow UDF
Kindly check the UDF for ice-particle melting in ice-slurry as given below.
I have listed the errors I am getting just below the UDF. #include "udf.h" #define ds = 0.0001; #define Latent_Heat = 21000; #define alphas = 0.1; #define ds = 0.0001; #define v = 1.25; #define lambdal = 0.5034; #define mus = 1.72 * 10 ^-5; #define mul = 0.70354; #define rhos = 917; #define Cpl = 4260; #define latent_heat = 332400; DEFINE_MASS_TRANSFER(mastra, cell, thread,from_index, from_species_index, to_index, to_species_index) { real hsl, Pr, hv, Res1, Res2, Res, mass; Thread *sol, *liq; liq = THREAD_SUB_THREAD(thread, from_index); sol = THREAD_SUB_THREAD(thread, to_index); Res = ((rhos*C_U(cell, liq)*ds / mus) - (rhos*C_U(cell, sol)*ds / mus)); Pr = mul*Cpl / lambdal; hsl = ((lambdal / ds)*(7 + (10 * alphas) + (5 * alphas ^ 2)))*(1 + (0.7*(Res^0.2)*(Pr^1.3))); hv = (6 * alphas*hsl) / ds; mass = (hv*((C_T(cell, liq) - C_T(cell, sol)) / Latent_Heat)); return mass; } Error: F:\\devshi\\pipe\\pipe_files\\dp0\\FFF\\Fluent\\ma stra.c: line 24: parse error. Error: F:\\devshi\\pipe\\pipe_files\\dp0\\FFF\\Fluent\\ma stra.c: line 24: invalid type for pointer dereference: float. Line 24 is: Res = ((rhos*C_U(cell, liq)*ds / mus) - (rhos*C_U(cell, sol)*ds / mus)); Kindly help to solve these errors. |
I think you should write mus=1.72e-5
|
That still not having any effect on errors.
|
removing the equals in the #define ?
|
All times are GMT -4. The time now is 05:33. |