CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

particle number concentration in a volume

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 2, 2007, 16:00
Default particle number concentration in a volume
  #1
DH
Guest
 
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);

bin_particles_in_cells(d);

begin_c_loop(c, c_thread) {

begin_particle_cell_loop(p,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

Reply

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 23 August 6, 2014 03:50
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 02:28.