How to read the .out file

52 views (last 30 days)
Heqian Zhao
Heqian Zhao on 8 Nov 2021
Commented: Dyuman Joshi on 19 Jul 2023
I get the .out file from the Fluent. How to read and extract the data using matlab?
Example:
"inlet-velocity-rfile"
"Time Step" "inlet-velocity etc.."
("Time Step" "inlet-velocity" "flow-time")
0 19.99999993833623 0
1 20.07999993808957 0.001
2 20.15999993784293 0.002
3 20.23999993759627 0.003
4 20.31999993734961 0.004
5 20.39999993710296 0.005
6 20.47999993685632 0.006
7 20.55999993660965 0.007
8 20.63999993636299 0.008
9 20.71999993611634 0.009000000000000001
10 20.79999993586968 0.01
11 20.87999993562302 0.011
12 20.95999993537637 0.012
13 21.03999993512973 0.013
14 21.11999993488307 0.014
15 21.19999993463641 0.015
16 21.27999993438976 0.016
17 21.35999993414309 0.017
18 21.43999993389645 0.018
19 21.51999993364979 0.019
20 21.59999993340314 0.02
21 21.67999993315647 0.021
22 21.75999993290982 0.022
23 21.83999993266317 0.023

Answers (1)

Yongjian Feng
Yongjian Feng on 8 Nov 2021
Edited: Yongjian Feng on 8 Nov 2021
readmatrix can handle it.
m = readmatrix('your_file')
  2 Comments
Federico Pelizza
Federico Pelizza on 19 Jul 2023
I tried this methodology, readmatrix does not seem to be able to read .out files.
I am writing just a simple code such as readmatrix('Filename'), so it could be read through some options that i do not know.
Dyuman Joshi
Dyuman Joshi on 19 Jul 2023
Try readtable or use the Import Data functionality available on the Home Tab of the toolstrip

Sign in to comment.

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!