INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Searching for and returning output from a Nastran .f06 file

Searching for and returning output from a Nastran .f06 file

(OP)
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
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close