CFD Online Logo CFD Online URL
Home > Forums > FLUENT

DPM problem

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

LinkBack Thread Tools Display Modes
Old   January 23, 2004, 11:54
Default DPM problem
Posts: n/a
I am using discrete phase modeling to simulate the particle trajectory. I have a question regarding how to save the particle trajectory to a file. Since I use the surface injection, that means around 100 particles will be injected from the inlet surface. In the DPM the Maximum number of steps was set as 50000. Then in the particle tracks, I used step to step to track the particles and write trajectory report to a file. It turns out that the file is so big (300MB), because the files contains almost everything eg. Time, X-position, Y-position, U-Velocity, V-velocity, W-velocity, Temperature, Density and mass for each step. Actually all what I need is just the Y-position (the radial coordinate) of the particles at the outlet. I don¡¯t care about what is going on between the inlet and the outlet. But I really can¡¯t figure out how to report only the radial coordinate of the particles at the outlet to a file. If anybody has a idea, please let me know. Thank you very much!

  Reply With Quote

Old   January 26, 2004, 03:38
Default Re: DPM problem
Posts: n/a
Hi Jane, I would suggest that you write a UDF function which prints your y-coordinate in a file. I would suggest that you use the DEFINE_DPM_SCALAR_UPDATE -macro as interface because this macro will be executed by fluent each dpm iteration.

  Reply With Quote

Old   February 9, 2004, 08:34
Default Re: DPM problem
Posts: n/a

Do you have any case about this DEFINE_DPM_SCALAR_UPDATE -macro ?

Would you like to send me a copy?

Thank you
  Reply With Quote

Old   February 9, 2004, 09:23
Default Re: DPM problem
Posts: n/a
Here's a small example:

DEFINE_DPM_SCALAR_UPDATE(ODE_INT_RK4, c, t, initialize, p) { FILE *fpointer;

if (initialize == 1) {

//Initialisierung der Anfangsrotation

p->user[0]=0.0; // Drehung um x-Achse

p->user[1]=0.0; // Drehung um y-Achse

p->user[2]=0.0; // Drehung um z-Achse

//write a header in file test.txt

fpointer = fopen("test.txt", "a");

fprintf(fpointer, " Partikelzeit, Omega_x, Omega_y, Omega_z \n");

fclose(fpointer); } else { // here are normally other calculations

//write values in test.txt

fpointer = fopen("test.txt", "a");

fprintf(fpointer, "%20.5f, %20.5f, %20.5f, %20.5f \n", P_TIME(p), P_USER_REAL(p,0), P_USER_REAL(p,1), P_USER_REAL(p,2));

fclose(fpointer); } }

yours groni
  Reply With Quote

Old   February 20, 2004, 04:24
Default Re: DPM problem
Posts: n/a
Hello Jane

I am also dealing with some type of same problem. I am also sending say 20 particles of some size. But I want to include particle-particle interaction also. Is it possible to include particle-particle interaction in Fluent. Also how u are tracking each particle. I am trying to track each particle, but I am not getting it..

Regards - Karthick
  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
DPM Parcel Number Problem Shane FLUENT 7 October 25, 2012 08:24
DPM Output Problem (Again...) DLINSA Fluent UDF and Scheme Programming 1 March 16, 2012 01:45
Problem in DPM Harpreet FLUENT 0 July 31, 2011 09:56
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29

All times are GMT -4. The time now is 09:19.