|
[Sponsors] |
February 24, 2012, 09:34 |
UDF DPM_BC with F_UDMI not storing data
|
#1 |
New Member
Balakrishnan
Join Date: Feb 2012
Posts: 5
Rep Power: 14 |
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"))) fprintf(fp,"%lf\n",cyl_ht); fclose(fp); 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 Krishnan Extra info: Solving DPM, Random walk model, viscous and energy, 2d flow, FLUENT 6.3. Injection with Rosin Ramler distribution. |
|
April 25, 2012, 10:23 |
|
#2 |
New Member
Paul
Join Date: Apr 2012
Posts: 1
Rep Power: 0 |
Hi,
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 |
|
May 27, 2012, 02:24 |
|
#3 |
New Member
Balakrishnan
Join Date: Feb 2012
Posts: 5
Rep Power: 14 |
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. krishnan |
|
June 6, 2016, 23:10 |
|
#4 |
New Member
Daban M. salih
Join Date: May 2016
Posts: 5
Rep Power: 10 |
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? |
|
Tags |
udf f_udmi sorage problem |
|
|
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 30, 2012 00:52 |
UDF for data of specified node | trantoan2008 | FLUENT | 3 | June 9, 2011 05:38 |
UDF to read data from a file for VOF model | Pablo | FLUENT | 0 | October 23, 2008 08:02 |
Data logging in UDF | carno | FLUENT | 2 | October 6, 2008 02:43 |
data storing with c++ | yfyap | Main CFD Forum | 7 | April 27, 2001 11:43 |