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. |
You can save .dat files in ascii format. Just stop being lazy
|
Thank you, but How?!!
|
Uncheck the write binary file box....
|
Could you provide me with more details, where's the binary box!
|
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.
|
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. |
Write a journal for that. So that fluent will do the work automatically in the background.
|
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. |
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. |