Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching for and returning output from a Nastran .f06 file

Status
Not open for further replies.

Chris31

New member
Jul 20, 2007
19
Hi all,

Relatively new to matlab - I have a question for everyone and would like to hear other opinions on how to get what I am trying to do if you have better ideas. I would like to write a short script that would search a series of nastran output (f06) files, find a given subcase and element, and return the output force.

More specifically, I'd like to do the following:

Read input file into matlab that contains paths to the f06 files to be searched:

1. c:/outputfiles/outputf06_01
2. c:/outputfiles/outputf06_02
3. c:/outputfiles/outputf06_03

tell matlab the following:

In outputf06_01 (file 1. on the input list), search until you find the text "SUBCASE33", then search until you find the text "F O R C E S I N Q U A D", and finally read and return the value in column 4 immediately to the right of the element "790100" - even better make a new txt file with the element numbers in the first column and the forces in the second column. Ultimately, I'd like to give matlab a number of element numbers, output file numbers and subcase numbers, and have the script return all the output forces.


I appreciate any and all responses
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor