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

Extract field data in fluent over time

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By MKuhn
  • 1 Post By saeed jamshidi
  • 2 Post By North Star

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 14, 2024, 01:17
Default Extract field data in fluent over time
  #1
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 7
saeed jamshidi is on a distinguished road
Hello there,

I would like to extract data such as pressure and velocity field from fluent. I have simulated my case and I want to extract data in ASCII format.

As you know fluent output data files are in binary format and it isn't possible to read them directly.

Besides, I know it is possible to write field data with write solutions in fluent, but it gives me just for one .data file! While I need to store all flow time data.

However, if I could read all .data files in fluent, it would solve my problem.

I would appreciate it if you give me some help.
saeed jamshidi is offline   Reply With Quote

Old   January 14, 2024, 12:45
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,675
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
You can save .dat files in ascii format. Just stop being lazy
LuckyTran is offline   Reply With Quote

Old   January 14, 2024, 12:46
Default
  #3
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 7
saeed jamshidi is on a distinguished road
Thank you, but How?!!
saeed jamshidi is offline   Reply With Quote

Old   January 14, 2024, 12:48
Default
  #4
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,675
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Uncheck the write binary file box....
LuckyTran is offline   Reply With Quote

Old   January 14, 2024, 12:51
Default
  #5
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 7
saeed jamshidi is on a distinguished road
Could you provide me with more details, where's the binary box!
saeed jamshidi is offline   Reply With Quote

Old   January 15, 2024, 02:59
Default
  #6
Senior Member
 
Moritz Kuhn
Join Date: Apr 2010
Location: Germany, Dresden
Posts: 207
Rep Power: 17
MKuhn is on a distinguished road
Unfortunately the binary box is no longer available in the newer versions of fluent. But of course you can store the date file each time step, but this will result in a huge amount of data. If you only interested in some specific data, it is better to use "Report definitions". Here you can easily write data in text files for each time step.
MKuhn is offline   Reply With Quote

Old   January 15, 2024, 03:02
Default
  #7
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 7
saeed jamshidi is on a distinguished road
Thank you MKuhn for the reply,
Yeah it isn't.

I'm going to use this data for machine learning and it would be large amount of data over time.

Besides, it is frustrating to load all data files one by one in fluent and make output results.
saeed jamshidi is offline   Reply With Quote

Old   January 15, 2024, 06:58
Default
  #8
Senior Member
 
Moritz Kuhn
Join Date: Apr 2010
Location: Germany, Dresden
Posts: 207
Rep Power: 17
MKuhn is on a distinguished road
Write a journal for that. So that fluent will do the work automatically in the background.

  • Start journal
  • Open the first data file
  • Make your output results
  • Stop journal
  • Modify the file by copying the section for each data file
  • Start the modified journal file
saeed jamshidi likes this.
MKuhn is offline   Reply With Quote

Old   January 15, 2024, 07:05
Default
  #9
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 7
saeed jamshidi is on a distinguished road
Thank you MKuhn for your help.

I will try it.

Actually, couple of minutes ago I found that it is possible to read all data files via CFD post.
CFD post exports field data as csv format which is excellent.
MKuhn likes this.
saeed jamshidi is offline   Reply With Quote

Old   January 22, 2024, 02:50
Default
  #10
New Member
 
Join Date: Sep 2021
Posts: 7
Rep Power: 4
North Star is on a distinguished road
I think there is a trick to "uncheck the binary box" in newer versions (2022 R2 and above). You go to TUI file> binary legacy options?> no and file> cff-files?>no as cff files are always in binary format. After this you should be able to save .cas and .dat files in ASCII format. After that you can use file> export> during calculation> solution data in the GUI to periodically export domain data. Hope this helps.
MKuhn and saeed jamshidi like this.
North Star 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
Extract field data in tecplot over time saeed jamshidi Tecplot 1 January 14, 2024 06:09
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 02:36
CFD by anderson, chp 10.... supersonic flow over flat plate varunjain89 Main CFD Forum 18 May 11, 2018 07:31
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 02:50
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58


All times are GMT -4. The time now is 14:37.