CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Save data to excel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2022, 15:26
Default Save data to excel
  #1
New Member
 
Join Date: Feb 2022
Posts: 2
Rep Power: 0
John zink is on a distinguished road
Hi friends
do you know how i can write a udf that save velocitie and reynoldz number values in determined points in porous media in a geometry on 2 columns in excel file?
Thanks
John zink is offline   Reply With Quote

Old   February 21, 2022, 05:22
Default
  #2
New Member
 
Jeroen de Graaff
Join Date: Feb 2022
Posts: 9
Rep Power: 4
jps115 is on a distinguished road
Hey John,

You can use the typical i/o functions of C to write data to file, such as fprintf (for a text file, easily opened in excel/matlab/...) or fwrite (for a binary file, which is more storage friendly but takes more effort to read, use this if storage is critical)

I would suggest to use txt commands.

/surface/point-surface to specify your sampling point.
/solve/monitors/surface/set-monitor to start writing your sampled quantity to file this will generate an .out file wish you can convert to txt file and read into excel.

Good luck!

******************************
press LIKE if this message was helpful
jps115 is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[General] Save unsteady data from a plane in Paraview rabz ParaView 1 September 27, 2020 04:16
How do I import tabular data from excel to ANSYS related to the geometry of a mesh? SteFanI Main CFD Forum 0 September 8, 2019 11:31
X Y PLOT - Save the data sidam STAR-CCM+ 3 July 9, 2013 09:35
Smallest binary file format to save large data Zonexo Main CFD Forum 2 June 2, 2008 21:25
Save User Data Ale Siemens 5 March 16, 2007 06:05


All times are GMT -4. The time now is 19:55.