CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Extract field data in fluent over time (https://www.cfd-online.com/Forums/fluent/253997-extract-field-data-fluent-over-time.html)

saeed jamshidi January 14, 2024 01:17

Extract field data in fluent over time
 
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.

LuckyTran January 14, 2024 12:45

You can save .dat files in ascii format. Just stop being lazy

saeed jamshidi January 14, 2024 12:46

Thank you, but How?!!

LuckyTran January 14, 2024 12:48

Uncheck the write binary file box....

saeed jamshidi January 14, 2024 12:51

Could you provide me with more details, where's the binary box!

MKuhn January 15, 2024 02:59

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.

saeed jamshidi January 15, 2024 03:02

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.

MKuhn January 15, 2024 06:58

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 January 15, 2024 07:05

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.

North Star January 22, 2024 02:50

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.


All times are GMT -4. The time now is 15:05.