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

DEFINE_DPM_OUTPUT problems

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 7, 2003, 04:59
Default DEFINE_DPM_OUTPUT problems
  #1
Matthew Brannock
Guest
 
Posts: n/a
Hi,

I'm having problems with using the DEFINE_DPM_OUTPUT. In the end I want to use it so that for each 50 or so iterations I can put it to file. Otherwise if I don't use this I'll get a file that is way to large for what I want. I need the length scale really small to get good results.

It seems when I attach the udf to the defaultinterior report>discrete phase>sample traj that I'm only getting the require information for the last few iterations. Also, inside the DPM OUTPUT udf I've found it not possible to assign values from macros (ie P_TIME(p)) to variable I want to use. Weird. My low knowledge of C language is probably the problem.

Below is the complete output I get and also the stripped down udf I'm using; instead of 50000 entries I'm getting 20 or so in the middle. Also there's a number eight just before the output for some reason. I used a counter to see what iteration it gets them from. I'm back using Fluent 5.5 as the setup file for 6.1 I downloaded from the fluentusers site seems to be corrupted.

Cheers,

Matt.

8(0.87109375 0.999864221 36402.3203 32503 ) ( 0.875 0.999860823 36402.3359 32504 ) (0.87890625 0.999857366 36402.3516 32505 ) ( 0.8828125 0.999853909 36402.3672 32506 ) (0.88671875 0.999850392 36402.3828 32507 ) ( 0.890625 0.999846756 36402.3984 32508 ) (0.89453125 0.999843061 36402.4141 32509 ) ( 0.8984375 0.999839246 36402.4297 32510 ) (0.90234375 0.999835372 36402.4453 32511 ) ( 0.90625 0.999831438 36402.4609 32512 ) (0.91015625 0.999827504 36402.4766 32513 ) ( 0.9140625 0.99982357 36402.4922 32514 ) (0.91796875 0.999819696 36402.5078 32515 ) ( 0.921875 0.999815881 36402.5234 32516 ) (0.92578125 0.999812245 36402.5391 32517 ) ( 0.9296875 0.999808908 36402.5547 32518 ) (0.93359375 0.999805927 36402.5703 32519 ) ( 0.9375 0.999803483 36402.5859 32520 ) (0.94140625 0.999801695 36402.6016 32521 ) ( 0.9453125 0.999800742 36402.6172 32522 ) (0.94921875 0.999800742 36402.6328 32523 ) ( 0.953125 0.999801755 36402.6484 32524 ) (0.95703125 0.999803722 36402.6641 32525 ) ( 0.9609375 0.999806464 36402.6797 32526 ) (0.96484375 0.999809384 36402.6953 32527 ) ( 0.96875 0.999811172 36402.7109 32528 ) (0.97265625 0.999809861 36402.7305 32529 ) ( 0.9765625 0.999801755 36402.75 32530 ) (0.98046875 0.999780416 36402.7695 32531 ) ( 0.984375 0.999735177 36402.7891 32532 ) (0.98828125 0.999633372 36402.8125 32533 ) ( 0.9921875 0.999420047 36402.8477 32534 ) (0.99998045 0.996136367 36402.875 32535 )

---------

#include "udf.h" #include "dpm.h"

extern real counter = 1;

DEFINE_DPM_OUTPUT(output_fix, header, fp, p, thread, plane) {

if (header)

{

}

else

{

fprintf(fp, "(%10.9g %10.9g %10.9g %10.9g )\n", p->state.pos[0], p->state.pos[1], p->state.time, counter);

counter=counter+1;

} }
  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
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 0 August 5, 2011 16:02
Needed Benchmark Problems for FSI Mechstud Main CFD Forum 4 July 26, 2011 12:13
Some problems with Star CD Micha CD-adapco 0 August 6, 2003 13:55
Airpak: Problems with heat flow contour conditions Ivan de Miguel Urain FLUENT 1 November 16, 2001 10:36
Inverse problems Aleksey Alekseev Main CFD Forum 0 May 12, 1999 15:38


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