|
[Sponsors] |
October 1, 2008, 06:45 |
Data logging in UDF
|
#1 |
Guest
Posts: n/a
|
Hi,
I am calculating many parameters in UDF used in transient analysis and I want to plot their graph with respect to time. I am not able to log the parameters in file directly from UDF. I have solved the problem temporarily by 'messaging' it out (printing on screen) and writing transcript file and opening that file in excel. It is very cumbersome and additionally excel has limitation of ~65000 rows. I am sure this is not very difficult problem and might be faced by many. Can anybody send me the UDF script for data logging? Thanks in advance for help. |
|
October 3, 2008, 14:27 |
Re: Data logging in UDF
|
#2 |
Guest
Posts: n/a
|
FILE *filepointer; /*First you need to define your filepointer*/
filepointer=fopen(filename,"a"); /*next open the file with filename for _a_ppending*/ fprintf(filename,"your-text, %5d\n", your-var); /*output a variable with leading text + newline*/ .... /*output whatever you want*/ fclose(filepointer); /*finally close the file*/ At least for my udf this is doing the job |
|
October 6, 2008, 02:43 |
Re: Data logging in UDF
|
#3 |
Guest
Posts: n/a
|
Great.. I will check this.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting Time Series data from saved unsteady data | Atul | FLUENT | 4 | November 26, 2008 06:12 |
TUI commands logging??? | carno | FLUENT | 6 | August 23, 2007 02:21 |
how to save case data and data during iteration? | JOHN | FLUENT | 3 | October 10, 2006 20:40 |
Residual logging | HS | FLUENT | 1 | March 14, 2006 10:04 |
Where can find airfoil data with pressure distribution or aerodynamic data | Ahlo | Main CFD Forum | 5 | January 12, 1999 23:45 |