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

particle number concentration in a volume

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 2, 2007, 15:56
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


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] SnappyHexMesh for internal Flow vishwa OpenFOAM Meshing & Mesh Conversion 24 June 27, 2016 09: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 11:46
Unaligned accesses on IA64 andre OpenFOAM 5 June 23, 2008 11:37


All times are GMT -4. The time now is 23:08.