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 |
Re: DPM concentration
this is to allocate the memory in order to be able to use the DPM_CONCENTRATION macro.
Hope this help |
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 |
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; } |
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 00:00. |