I would like to calculate number of all particles in one cell in during dpm simulation in fluent. Macro P_N(p) gives only number in single stream. Have anyone any idea?
c and ct will be the pointers correspond to the cell of the current particle (i.e. the cell which contains the current particle), then you can use these pointers to call the flow variables at that specific cell.
Thanx for the link, however I have already seen it. I thought that maybe someone knows macro or command to get number of particles in each cell. In calculation performed in unsteady state we can see in fluent number of particles in cells it means that Fluent already count this. In steady state simulation this option disappear.In manual I found only DPM_CONCENTRATION which gives value kg/m3.
But maybe it is necessary to create own loop for all stream...
I never used the DPM macros, but if you get the particle concentration with the C_DPMS_CONCENTRATION macro (found it in the latest UDF manual from Fluent, too) and you know the density and size of your particles, it should be straight-forward to calculate the particle number: just divide the concentration from the DPM macro by the (average) mass of your particles and you get the number of particles per liquid volume. If you need the number of particles per cell it should be possible to use the C_Volume(c,t) macro.
This is just an educated guess, since I don't have a running solution for this, but it may help...
Hi Stephen, I solved problem in the same method that you write. I'm simulating spray dryers so inside the domain there are particles with different size and mass. However I determined number of particle based on average properties of particles. Number is not precisely but allows me to estimate number of particles in cell. Additionally I'm trying to write other macro witch allows to sum up all particles by loop.
c and ct will be the pointers correspond to the cell of the current particle (i.e. the cell which contains the current particle), then you can use these pointers to call the flow variables at that specific cell.