CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   DPM concentration (https://www.cfd-online.com/Forums/fluent/33592-dpm-concentration.html)

Szabolcs Varga April 27, 2004 08:45

DPM concentration
 
Dear all, I would like to get the concentration (kg/m3)of injected (inert) particles for each cell. In the user manual, there are only a few notes on particle concentration in the field variable list, but nothing on how to get it. In the UDF manual, there is nothing. I got a UDF example from somebody where this line appears:

qm3=charge_mass*C_STORAGE_R(c,t,SV_DPMS_CONCENTRAT ION);

Could please somebody explain me the meaning and the usage of the C_STORAGE_R and SV_DPMS_CONCENTRATION functions? C_STORAGE_R appears once in the manual but without expalanation. Thank you, Szabolcs

thomas April 27, 2004 10:28

Re: DPM concentration
 
this is to allocate the memory in order to be able to use the DPM_CONCENTRATION macro.

Hope this help

massoudepsilon November 17, 2011 00:28

Hi Szaboles Varga,

I am wondering if you could solve the problem of calculating dpm concentration. I have to calculate it amd I do not know how I should use C_DPM_CONCENTRATION(c,t) macro exactly,

I will be grateful if you can help me

Bests,
Massoud

abdulsamad February 9, 2016 08:50

DPM concentration
 
real concentration1(int id)
{
Domain *d=Get_Domain(1);
Particle *p;
cell_t c;
Thread *c_thread=Lookup_Thread(d,id);
real mass=0.0,concentration=0.0;
thread_loop_c(c_thread,d)
{
begin_c_loop(c,c_thread)
{
mass+=C_DPMS_CONCENTRATION(c,c_thread);
}
end_c_loop(c,c_thread)
}
concentration=mass*0.0003925;
return concentration;
}

abdulsamad February 9, 2016 08:52

real concentration1(int id)
{
Domain *d=Get_Domain(1);
Particle *p;
cell_t c;
Thread *c_thread=Lookup_Thread(d,id);
real mass=0.0,concentration=0.0;
thread_loop_c(c_thread,d)
{
begin_c_loop(c,c_thread)
{
mass+=C_DPMS_CONCENTRATION(c,c_thread);
}
end_c_loop(c,c_thread)
}
concentration=mass*0.0003925;
return concentration;
}


All times are GMT -4. The time now is 19:09.