|June 18, 2012, 09:08||
Write data in UDF similar to XY-plot
Join Date: Jan 2012
Posts: 4Rep Power: 6
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
|June 18, 2012, 09:39||
Join Date: Oct 2011
Posts: 31Rep Power: 7
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)
;node values? [yes]
;order points? [no]
;Y Axis direction vector? [no]
;Y Axis curve length? [no]
;X Axis direction vector? [no]
;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
;surface id/name(2) [()]. below space is required
|June 19, 2012, 10:35||
Join Date: Aug 2011
Posts: 2Rep Power: 0
somewhere on this forum I found the following code which identifies the closest cell centroid to a given point:
|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 00: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 11:21|
|UDF to write interp files||Karl||FLUENT||6||February 7, 2002 13:10|