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

Writing data from DEFINE_DPM_SPRAY_COLLIDE

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 3, 2009, 20:33
Angry Writing data from DEFINE_DPM_SPRAY_COLLIDE
  #1
New Member
 
Join Date: Jun 2009
Posts: 14
Rep Power: 17
Hanz is on a distinguished road
Hi All.

I'm currently creating a UDF using the Macro DEFINE_DPM_SPRAY_COLLIDE. Within this code I generate a random number. It turns out that even if my source file simply contains the fprintf commands, I'm unable to write data. However, when using the exact same fprintf commands in a seperate source file using DEFINE_DPM_SCALAR_UPDATE I was able to write a file showing the displacements, velocities, Particle IDs etc.

Any ideas on how I could export data from DEFINE_DPM_SPRAY_COLLIDE would be really appreciated.

Cheers,

Hanz.
Hanz is offline   Reply With Quote

Old   August 4, 2009, 11:21
Default
  #2
Senior Member
 
Micael
Join Date: Mar 2009
Location: Canada
Posts: 157
Rep Power: 18
Micael is on a distinguished road
Make sure you understand when your function is called. I never use this one, but you can add this line of code to check when your function is executed:

Message("DEFINE_DPM_SPRAY_COLLIDE executed!");

If the function executes, you will see the message on the console.

That helps me some times to track such problems.

Have a good day.

Micaël
Micael is offline   Reply With Quote

Old   August 4, 2009, 17:20
Default
  #3
New Member
 
Join Date: Jun 2009
Posts: 14
Rep Power: 17
Hanz is on a distinguished road
Micael,

Thanks for your reply. The Message has proved really useful.

Best regards,

Hani
Hanz is offline   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
Writing data from monitors L3munoz FLUENT 0 July 24, 2009 06:27
Writing profile data at transient heat transfer analysis Ama FLUENT 0 July 5, 2009 08:35
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 18:27
Writing a transient data fileld ant CFX 0 October 20, 2002 13:19
Writing grid and velocity data to files Mehul Kinariwala FLUENT 2 October 4, 2000 10:26


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