|
[Sponsors] |
June 18, 2012, 10:08 |
Write data in UDF similar to XY-plot
|
#1 |
New Member
JH
Join Date: Jan 2012
Posts: 4
Rep Power: 14 |
Hello,
I am trying to write an UDF for the following problem: * I have an instationary simulation where I want to save the velocity components across a straight line * When doining it only once, I would define a line and use in the GUI the XY-plot function with th option write. * However I want to save the data of approx. 1000 time steps for later post processing (e.g. in MATLAB). * How does Fluent interpolate the points in the XY-Plot and are there some UDF macros available? Thanks in advance Seppl |
|
June 18, 2012, 10:39 |
journal
|
#2 |
Member
Join Date: Oct 2011
Posts: 34
Rep Power: 15 |
I think, you just need to write a journal.
For e.g the following journal commands writes the temperature data along the center. ; ; Data of Axial Temperature Profile (simDataTempAxial.dat) ; /plot/plot ;node values? [yes] yes ;filename [""] "simDataTempAxial.dat" ;order points? [no] no ;Y Axis direction vector? [no] no ;Y Axis curve length? [no] no ;cell function temperature ;X Axis direction vector? [no] yes ;ix [1] 1 ;iy [0] 0 ;surface id/name(1) [()] 3. 3 represents "Axis" in this case and data file. This will be changed base on our requirement. eg for pressureOutlet 4 here 3 ;surface id/name(2) [()]. below space is required ; ; ; |
|
June 19, 2012, 11:35 |
|
#3 |
New Member
N/A
Join Date: Aug 2011
Posts: 2
Rep Power: 0 |
Hi,
somewhere on this forum I found the following code which identifies the closest cell centroid to a given point: PHP Code:
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Write UDF to add a sink term for PEM fuel cell design | kitrax | Fluent UDF and Scheme Programming | 0 | March 15, 2012 05:56 |
how write data with udf | zzyan | FLUENT | 5 | July 27, 2010 01:50 |
How to save 2-D data in contour plot | mssound | FLUENT | 0 | February 15, 2010 15:01 |
UDF to write a data file | lichun Dong | FLUENT | 2 | August 4, 2005 12:21 |
UDF to write interp files | Karl | FLUENT | 6 | February 7, 2002 13:10 |