CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

UDF DPM_BC with F_UDMI not storing data

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

LinkBack Thread Tools Display Modes
Old   February 24, 2012, 09:34
Default UDF DPM_BC with F_UDMI not storing data
New Member
Join Date: Feb 2012
Posts: 5
Rep Power: 7
balki is on a distinguished road
Hi, I'm trying to simulate 2d droplet deposition from a high temperature (2000 K) gas stream on to a cooled (500 K) heat transfer surface. I wrote an UDF (to find the fate of the droplet on the surface ie., stick/rebound), used DEFINE_DPM_BC macro to do the calculation. I applied that UDF at the tube boundaries.

When the droplet deposits, it solidifies and it adds resistence to heat transfer. So the outputs of my UDF are deposition thickness and the deposit surface temperature. Both varies along the length of the tube. I used F_UDMI & C_UDMI macro to store both outputs.

I complied the UDF without error and hooked into fluent. I created 2 user defined memories, '0' for thickness and '1' for temperature. After simulation When I went to XY plot and plotted "User defined memory 0" as Y-axis and tubes length as x-axis, it is always zero. But I'm sure both the outputs are non-zero because I could see the calculated values on the FLUENT console window.

I tried to export the data, through file->export->ascii format, same zero for UDM 0 & 1 column.

Then I tried to write my output to another file (.txt), by using the following command,

fp = fopen("thickness.txt","a")))

no file was generated to my surprise. so no data.

I really really need someone's help to solve this problem. I feel my understanding on storing data is unclear. If someone could throw some light on this it is very much appreciated....

or is there any other way to extract the data calculated in UDF?

I eagerly waiting for your valuable suggestions


Extra info: Solving DPM, Random walk model, viscous and energy, 2d flow, FLUENT 6.3. Injection with Rosin Ramler distribution.
balki is offline   Reply With Quote

Old   April 25, 2012, 09:23
New Member
Join Date: Apr 2012
Posts: 1
Rep Power: 0
gorodan is on a distinguished road

I had the same problem storring F_UMDI.

Fluent apparently don't store F_UDMI into the dat file. (only C_UDMI)
That's why you find "0" value when you try to export / write / plot your F_UDMI datas.

In my case I used this macro:
C_UDMI (F_C0(face, face_thread),THREAD_T0(face_thread),i)
instead of:
F_UDMI(face, face_thread, i)
to store my face datas into the cell adjacent to the considered face

Hope it will help you
gorodan is offline   Reply With Quote

Old   May 27, 2012, 01:24
New Member
Join Date: Feb 2012
Posts: 5
Rep Power: 7
balki is on a distinguished road
Hi Gorodan, Thank you so much for your suggestion.
Apparently it worked. I dont know why f_udmi didnt store data.
Ultimately my problem is solved.

once again thank you so much.

balki is offline   Reply With Quote

Old   June 6, 2016, 22:10
New Member
Daban M. salih
Join Date: May 2016
Posts: 5
Rep Power: 3
Daban is on a distinguished road
hey guys, i know this is out of context, but could you please help me with my problem!?
i need to export a specific data say(displacement vs flow) into a text file but i dont know how to write that in UDF fil. any suggestion?
Daban is offline   Reply With Quote


udf f_udmi sorage problem

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
How to exchange the data in DEM/Fluent using UDF Xiaoyong Lu Fluent UDF and Scheme Programming 1 May 29, 2012 23:52
UDF for data of specified node trantoan2008 FLUENT 3 June 9, 2011 04:38
UDF to read data from a file for VOF model Pablo FLUENT 0 October 23, 2008 07:02
Data logging in UDF carno FLUENT 2 October 6, 2008 01:43
data storing with c++ yfyap Main CFD Forum 7 April 27, 2001 10:43

All times are GMT -4. The time now is 18:14.