Skip to content

Parses and plots time and frequency response from a Nastran .f06 file.

Notifications You must be signed in to change notification settings

andyandreolli/nastranMagic-for-MATLAB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

nastranMagic for MATLAB

First off, run NASTRAN to obtain an .f06 file; then, in MATLAB, open a folder containing both the .f06 and nastranMagic.m. Now create a nastranMagic object with:

my_file = nastranMagic('file_name.f06');

Time response

To parse time response and plot it, just call parseTimeResponse() function:

tr = my_file.parseTimeResponse(point);

where point is an integer and tr is a matrix whose first coulumn contains values of time, while second column contains values of the selected component of the selected point at the corresponding time. Notice that the function will automatically plot time story.

V-g diagram

To plot the V-g diagram of a selection of modes, use:

modes = [1 2 5];
my_file.plotVg(modes);

where modes is a vector containing the numbers of the modes to be plotted (eg., this snippets prints the first, the second and the fifth mode).

To get the numerical values of the points of the V-g diagram:

vg = my_file.vgSingleMode();

where the first column of vg contains velocities, the second values of g.

To do and to be fixed

  • properly comment the code
  • allow user to select points/components (TO BE IMPROVED)
  • frequency response
  • bisection method to find zeroes on V-g plot (?)

About

Parses and plots time and frequency response from a Nastran .f06 file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages