-
-
April 20, 2022 at 1:18 pm
ryma29
SubscriberI have the results of multiple simulations that I didn't do myself. I have .dat, .cas and .out files. I suppose I need to use to .dat files but I am not sure what is really the difference between them. I need to get some field-variables from the files with a python script. I wasn't able so far to do that. Any help would be appreciated.
April 20, 2022 at 1:41 pmRob
Forum ModeratorIn theory, yes. In practice you'll need to figure out what each part of the dat file means. You'll also need to figure out where each data point is. What data are you after?
April 20, 2022 at 1:57 pmryma29
SubscriberIs there a documentation how the variables are stored or how the dat file is constructed in fluent? I need to access the velocity in all directions and the pressure.
April 20, 2022 at 4:53 pmRob
Forum ModeratorI don't think so, https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v221/en/flu_ug/flu_ug_chp_files.html may be of some help. Not helped that some of the file is in binary. There's a TUI option under /file to set the format of .dat (not .dat.h5) to write in non-binary. How readable that is will depend on the size of the model: try it with something small.
However, for the above you may find it's quicker to open case & data and export an ASCII format file of just position, velocity components and pressure. Far less data to try and figure out!
File-Export-Solution Data
Viewing 3 reply threads- The topic ‘Is it possible to extract data from .dat or .out files with python into a csv file?’ is closed to new replies.
Ansys Innovation SpaceTrending discussionsTop Contributors-
3402
-
1052
-
1051
-
896
-
877
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-

Ansys Assistant

Welcome to Ansys Assistant!
An AI-based virtual assistant for active Ansys Academic Customers. Please login using your university issued email address.

Hey there, you are quite inquisitive! You have hit your hourly question limit. Please retry after '10' minutes. For questions, please reach out to ansyslearn@ansys.com.
RETRY