Evaporation source term:C_DPMS_PDF_1(c,t)
In flamelet model, I need the term C_DPMS_PDF_1(c,t) (the evaporation source of the droplets) for UDF. But it cannot be called in 12.1. Does anyone know about this? Thanks!
|
I will not solve your problem but maybe this will give you a hint.
I used to work with Lagrangian combusting particles. For some reasons i wrote in UDFs the whole DPM laws (including evaporation). In former versions of Fluent they had defined commands like C_DPMS_PDF_1(c,t) but now i think they don't work. For sure there is another way! For exapmple: #define C_DPMS_ENERGY(c,t) C_STORAGE_R(c,t,SV_DPMS_ENERGY) So C_DPMS_ENERGY(c,t) doesn't work? Use C_STORAGE_R(c,t,SV_DPMS_ENERGY) I don't know the formula for C_DPMS_PDF_1(c,t). You should check the source codes (header files) of fluent (e.g. udf.h, dpm.h) Good luck |
Thanks Nikolopoulos. I tried with C_STORAGE_R(c,t,SV_DPMS_PDF_1), but it still doesn't work.
Quote:
|
Do you use a syntax like this:
C_STORAGE_R(c,t,SV_DPMS_ENERGY)+=....; Your code doesn't compile or fluent crashes? In previous versions did it work? |
Here is my code for debugging:
#include "udf.h" #include "dpm.h" DEFINE_SOURCE(Var1_source,c,t,dS,eqn) { real source; if (c == 1000) { Message("dpm=%d",C_DPMS_PDF_1(c,t)); } source = 0.0; dS[eqn] = 0.0; return source; } It can be compiled correctly, but once the term, C_DPMS_PDF_1(c,t), is called, fluent got fatal error. If I change it to C_FVAR(c,t) or something else, everything is OK. The definition of (this term/cell volume) is: SUM(nm)。n --droplet number density; m--mass evaporation rate. Quote:
|
All times are GMT -4. The time now is 18:39. |