How to read a .f06 file in MATLAB ?
古いコメントを表示
Hi there, I am trying to couple NASTRAN and MATLAB to run itiratively. I am using ! bang for running a batch .bat file which inturn runs the specified .bdf file in NASTRAN. Now, my problem is reading the required deflection and forces data from the nastran output .f06 file back into MATLAB. I am able to read the whole file with all that messy huge data. But I am not able to sort out only required numerical data from the huge data of strings n unwanted numbers.
kind help will be much appreciated.
Thanks
採用された回答
その他の回答 (2 件)
Kaveh Gharibi
2017 年 4 月 25 日
編集済み: Kaveh Gharibi
2017 年 4 月 25 日
2 投票
I created a Matlab function that is getting the f06 and reads the data line by line in a while loop and then uses textscan() to read the displacement, stress, and other outputs and it does this automatically. Even though the geometry is changing in every iteration, it can read the f06.
3 件のコメント
Eddie Arevalo
2019 年 1 月 4 日
Is it possible for you to share the code?
Daniele Pecorella
2021 年 12 月 21 日
Daniele Pecorella
2021 年 12 月 21 日
Goodmorning, I would be interested too if you could share the code. Thank you
M. F.
2015 年 10 月 1 日
0 投票
Use the nastran .pch instead of the .f06, the output data is more structured and easier to read. Otherwise, PYnastran could be of help to directly read in the binary .op2 file.
Regards, Matthias
カテゴリ
ヘルプ センター および File Exchange で Low-Level File I/O についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!