CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   Writing data from DEFINE_DPM_SPRAY_COLLIDE (http://www.cfd-online.com/Forums/fluent-udf/67096-writing-data-define_dpm_spray_collide.html)

Hanz August 3, 2009 19:33

Writing data from DEFINE_DPM_SPRAY_COLLIDE
 
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.

Micael August 4, 2009 10:21

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

Hanz August 4, 2009 16:20

Micael,

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

Best regards,

Hani


All times are GMT -4. The time now is 11:37.