CFD Online Logo CFD Online URL
Home > Forums > FLUENT

particle number concentration in a volume

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   March 2, 2007, 16:01
Default particle number concentration in a volume
Posts: n/a
Hi, I am trying to get the particle number concentration in a fluid volume which I specified in my 3D chamber model. Now I finished the DPM simulation (interaction with continous phase), and would like to figure out how to post-process to get the number concentration in the small region. can you please advise me?

Here is my coding and error message.

#include "udf.h"

#include "dpm.h"

#include "surf.h"

DEFINE_ON_DEMAND(p_number) {

Domain *d=Get_Domain(1);

cell_t c;

int id;

int n=0;

Particle *p;

Thread *c_thread=Lookup_Thread(d,4); /*In my case 4 was the id of the sampling volume */

Alloc_Storage_Vars(d, SV_DPM_PARTICLE_BIN, SV_NULL);


begin_c_loop(c, c_thread) {



if (p->part_id < 10000) /*10000 particles were injected injected in the chamber */ {

n =+ 1; }

Message(" particle_number=%i",n); }

end_particle_cell_loop(p,c,c_thread) }

end_c_loop(c, c_thread)

Free_Storage_Vars(d, SV_DPM_PARTICLE_BIN, SV_NULL);


Error: FLUENT received fatal signal (ACCESS_VIOLATION)

1. Note exact events leading to error.

2. Save case/data under new name.

3. Exit program and restart to continue.

4. Report error to your distributor.

Error Object: ()
  Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SnappyHexMesh for internal Flow vishwa OpenFOAM Native Meshers: snappyHexMesh and Others 24 June 27, 2016 08:54
Two way particle coupling in OF 2.0 and the particle reynolds number preichl OpenFOAM 7 February 9, 2012 16:38
How to get the real particle number? Spurny FLUENT 1 March 7, 2011 10:41
interDyMFoam - change in volume fraction gopala OpenFOAM Running, Solving & CFD 0 April 27, 2009 10:46
Unaligned accesses on IA64 andre OpenFOAM 5 June 23, 2008 10:37

All times are GMT -4. The time now is 22:50.