CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

DEFINE_PROPERTY for particle data

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

LinkBack Thread Tools Search this Thread Display Modes
Old   June 9, 2015, 22:37
Unhappy DEFINE_PROPERTY for particle data
New Member
New South Wales
Join Date: May 2015
Location: UNSW, NSW, Sydney
Posts: 11
Rep Power: 7
mac_09 is on a distinguished road
Hello all,

I want to calculate the material properties using the particle data. Is it possible?

For checking, I am trying to calculate the no.of particles in each cell using the DEFINE_PROPERTY MACRO.

#include "udf.h"
#include "pdf_transport.h"
#include "dpm.h"
#include "cl_dpm.h"
FILE *fp;

DEFINE_PROPERTY(cell_abs_coeff, c, t)
Particle *p;
Domain *d=Get_Domain(1);
int iter = 0;
Alloc_Storage_Vars(d, SV_DPM_PARTICLE_BIN, SV_NULL);
FLUENT_EXPORT void bin_particles_in_cells(Domain *d, cxboolean true);


Free_Storage_Vars(d, SV_DPM_PARTICLE_BIN, SV_NULL);

fp = fopen("results.dat", "a");

return 0;

But it seems like, it does not enter into the particles loop. I am just keep getting zero for each cell.

Can anyone please tell me what I am missing?

Thanks in advanced.

mac_09 is offline   Reply With Quote


define_property, particles

Thread Tools Search this Thread
Search this Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
CFD by anderson, chp 10.... supersonic flow over flat plate varunjain89 Main CFD Forum 18 May 11, 2018 07:31
[OpenFOAM] Paraview doesn't seem to be picking up data generated by icofoam MikeHersee ParaView 2 January 6, 2015 08:27
Data Produced From Fine Marine Cant Match with The Experimental Data PeiSan NUMECA 4 August 23, 2014 05:33
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Meshing & Mesh Conversion 12 May 2, 2013 10:52
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 17:27

All times are GMT -4. The time now is 15:16.