CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Evaporation source term:C_DPMS_PDF_1(c,t) (http://www.cfd-online.com/Forums/fluent/84282-evaporation-source-term-c_dpms_pdf_1-c-t.html)

longzi83 January 25, 2011 10:03

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!

Nikolopoulos January 26, 2011 02:54

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

longzi83 January 26, 2011 09:34

Thanks Nikolopoulos. I tried with C_STORAGE_R(c,t,SV_DPMS_PDF_1), but it still doesn't work.



Quote:

Originally Posted by Nikolopoulos (Post 292197)
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


Nikolopoulos January 26, 2011 10:49

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?

longzi83 January 26, 2011 11:04

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:

Originally Posted by Nikolopoulos (Post 292276)
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?



All times are GMT -4. The time now is 18:36.