Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 1.28 KB

readme.md

File metadata and controls

47 lines (28 loc) · 1.28 KB

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