Tutorial Mastan2
Tutorial Mastan2
version 3.0
Developed by:
Ronald D. Ziemian
Professor of Civil Engineering
Bucknell University
William McGuire
Professor of Civil Engineering, Emeritus
Cornell University
MATLAB is a registered trademark of The MathWorks, Inc., 3 Apple Hill Drive, Natick, MA 01760-2098.
Getting Started
Two versions of MASTAN2 have been developed and may be installed. One requires you to have access
to MATLAB (recommended) and the other does not. Please note that Installation Method 1 is required if
you plan to develop and implement additional or alternative analysis routines that will directly interact
with the MASTAN2.
Method 1 (Users who have access to MATLAB): Double click on the msav3p.zip file and extract all files
into a MASTAN2 folder on your computer. Start the MATLAB program and set the Current Directory
to the location of this MASTAN2 folder. To avoid having to do this each time you startup MATLAB, you
can permanently add this folder to the MATLAB search path by selecting File and then Set Path After
using either of these procedures, type mastan2 (only lower case letters with no spaces) at the MATLAB
command line prompt (>>) and the MASTAN2 graphical user interface (GUI) should start. If the GUI
does not start, and you get an error message that reads ??? Undefined function or variable 'mastan2,
you have not properly set the current directory or path to point to your MASTAN2 folder.
Method 2 (PC-Users who do not have access to MATLAB): A stand-alone version of MASTAN2 is also
available. Double click on the msav3exe.zip file and then double click on the install.exe file. This will
start an installer with simple step-by-step instructions. When the installation is complete, two icons will
appear on your computers desktop. Double click on the MASTAN2v3 icon to start MASTAN2. Note
that it may take up to a minute for the program to initially start. The second icon provides access to an
interactive tutorial. Note that this stand-alone version provides all the same functionality except that you
cannot prepare user defined code that will interact with MASTAN2.
Window Layout
Pull-down menus
Overview:
In order to minimize the learning
time for MASTAN2, its graphical
user interface (GUI) has been
designed using a simple and
consistent two menu approach.
Using a pull-down menu at the top
of the GUI, a command is selected.
Parameters are then defined in the Main model window
bottom menu bar and the command
is executed by using the Apply
button.
Geometry definition
Columns: W10x45
24-0
A = 13.3 in2
I = 248 in4
Z = 54.9 in3
Girders: W27x84
A = 24.8 in2
I = 2850 in4
Z = 244 in3 20-0 40-0
All members: A36 Steel
E = 29,000 ksi
y = 36 ksi
Geometry Definition
Notes:
a. Edit boxes will accept math expressions. For example, typing 24*12 is the
same as typing 240. In all cases, only one value may be executed in any edit
box.
b. A three dimensional structure is defined by providing the number of frames (a
value greater than 1) and the appropriate spacing.
c. Any consistent set of units may be used to define a model.
Geometry Definition (cont.)
Note:
To remove a node or element number from a list, click on it again.
To remove all numbers from the node or element list, click on the
Clr box to the right of Node(s): or Element(s):.
Section and Material Properties
Part I: Section Properties
1. From the Properties menu select Define Section.
2. At the bottom menu bar, click in the edit box just to the right of Area = and
change the 0 to 13.3. Similarly, define Izz = 248 and Zzz = 54.9. Click on the
Apply button (Section 1 is now defined with the properties of a W1045).
3. Repeat step 2 using Area = 24.8, Izz = 2850 and Zzz = 244. After clicking the
Apply button, Section 2 will be defined with the properties of a W2784.
4. From the Properties menu select Attach Section.
5. Create the list of elements to be assigned Section 1 by clicking on each
vertical element. Click on the Apply button (note that elements with assigned
section properties turn from dash-dot to dashed).
6. Advance the Section # by clicking on the > box. Select the Clr button located
to the right of Element(s): to clear the list of element numbers.
7. Assign Section 2 properties to all horizontal elements by repeating step 5.
Notes: 1. Section properties refer to the elements local coordinate system with x being along MASTAN2
its length axis, the y-axis oriented as shown by the elements web direction (see View-
Labels-Element Web) and the z-axis defined by the right hand cross product of these x- and y-
axes. 2. Although selecting a section from the Database will automatically type in all relevant
properties, you must still click on the Apply button to define the section.
Section and Material Prop. (cont.)
Notes:
1. Red arrows indicate the degrees of freedom at a node that are restrained.
2. MASTAN2 provides the opportunity to analyze structures as two or three dimensional. For
two dimensional analyses, only degrees of freedom in the x-y plane need to be restrained. On
a related topic, additional section properties would be needed to analyze this system as three-
dimensional.
Loads and Support Cond. (cont.)
Part II: Loads
1. From the Conditions menu select Define Forces.
2. At the bottom menu bar, click in the edit box just to the right of PX = and
change the 0 to 32.
3. Create the list of nodes to be assigned this force by clicking on the upper left
node of the model. Click on the Apply button.
4. Click in the edit box just to the right of PX = and change the 32 to 0 and
then click in the edit box just to the right of PY = and change the 0 to -320.
5. Create the list of nodes to be assigned this force by first clearing the node
list by clicking on the Clr button and then clicking on the node at the top of
the center column. Click on the Apply button.
6. Repeat steps 4 and 5 using PY = -160 and applying this force to the upper
right node of the model. From the View menu select Fit. MASTAN2
Notes:
1. To remove a support or load condition from a node or group of nodes, first create the node list
and then with all conditions blank (for support) or zero (for load), click on Apply.
2. Green arrows represent applied forces.
3. The conditions at a node may be checked with
Geometry-Information-Node.
First-Order Elastic Analysis
1. From the Analysis menu select 1st-Order Elastic.
2. At the bottom menu bar, click on the pop-up menu just to the right of
Analysis Type: and select Planar Frame (x-y).
3. Click on the Apply button to perform the analysis.
Although the following steps are not required for us to proceed, this is a good
time to perform them.
a. From the File menu select Define Title. At the bottom menu bar, click in
the edit box to the right of Title: and type in a brief description of this
effort. This text might include the model title, your name, and/or the
assignment number. Click on the Apply button.
b. From the File menu select Save As.... After selecting your destination
folder, type in the filename example and click Save. Note that the top of
the window has now changed to include the file name and directory as
well as the time the file was last saved. MASTAN2
Note:
Only alpha-numeric file names may be used.
Results
Notes:
1. Moment diagram values may be turned on and off with View-Labels-Diagram Values.
2. As an alternative to step 2 in Part II, element forces can be obtained by typing the
element number in the edit box to the right of El # and then clicking on the Apply
button.
Photos and Text Reports
I. Printing Photos
1. To print a photo of the main model window, select Print Photo from
the File menu. Note that the title is also printed at the base of the photo.
II. Creating Text Reports
1. From the File menu select Create Report....
2. At the bottom menu bar, click on the check boxes just to the left of the
desired information.
3. Click on the Apply button and this information is printed to the main
text window. Use the scroll button to move up or down in the report. MASTAN2
4. To save the text report to a file that can be read and, in turn, printed by
any word processor or text editor, click on the Save Text button and
provide a destination folder and file name.
5. Click on the Cancel button to return to the main model window.
Note:
Information printed to the main text window will remain, even after the Cancel button
is clicked, until the Clear button is clicked. In this way, additional information such as
the results from a different analysis can be added later.
Plotting with MSAPLOT
1. To use the plotting module that is provided with MASTAN2, select
MSAPlot from the Results menu.
Part I. Axes Definition
1. From the MSAPlot Curves menu select Define X-Data.
2. At the center of the bottom menu bar, click on the pop-up menu and
select Displacement.
3. Click in the edit box to the right of Node # and type 4.
4. Click on the Apply button (x-axis is now defined but nothing plotted).
5. Repeat steps 1 to 4, using Define Y-Data to monitor the Applied
Force or Moment above the center column. Set Node # to 5, d.o.f. to
y (vertical force), and the scale to -1 (to plot in upper right quadrant).
Notes:
1. In MSAPlot, all node and element numbers must be typed; clicking on a node or
element in the MASTAN2 window will not automatically enter its number in a
MSAPlot menu.
2. If an error is made while using Define, redefine the parameters and select Apply.
3. By also using Define Z-Data, MSAPlot can create three-dimensional plots.
Plotting with MSAPLOT (cont.)
Part II. Generate a Curve
1. From the MSAPlot Curves menu select Generate Curve(s).
2. Click in the edit box to the right of Label and type 1st-Order Elastic (or
some other description to appear in the plots legend).
3. Click on the Apply button and the response curve is drawn. MASTAN2
Part III. Plot Attributes
1. From the Axes menu select Plot Title.
2. At the bottom menu bar, click on edit box and enter a title.
3. Click on the Apply button.
4. From the Axes menu select X-Attributes.
5. Click on the edit box to the right of Label and change X to Lateral
Displacement (in.). Click on the edit box to the right of Max: and type 5.
6. Click on the Apply button.
7. Repeat steps 4 to 6, using Y-Attributes to define the y-label as P (kips) and
increasing the number of Divisions to 8.
MASTAN2
Note:
The legend can be dragged to anywhere on the screen by clicking on
it and holding the mouse button down to move it.
Other Methods of Analysis
MASTAN2 provides seven different methods of analysis. These will be
illustrated by using the current example problem and plotted results.
Part I. Second-order Elastic
1. From the MASTAN2 Analysis menu select 2nd-Order Elastic.
2. At the bottom menu bar, click on the pop-up menu just to the right of
Analysis Type: and select Planar Frame (x-y).
3. Click on the Apply button to perform the analysis.
4. From the Results menu select MSAPlot.
5. From the MSAPlot Curves menu select Generate Curve(s).
6. At the bottom menu bar, click in the edit box to the right of Label and type
2nd-Order Elastic.
7. Click on the pop-up menu just to the right of Color and select red.
8. Click on the Apply button and the response curve is added to the plot.
MASTAN2
Notes:
1. Steps 4 to 8 assume that the x- and y-data plot parameters were defined as
previously described.
2. Diagrams, specific node and element results, and reports can be
generated for all methods of analysis in the same manner as
they were for the first-order elastic analysis.
Other Methods of Analysis (cont.)
Part II. First-order Inelastic
1. From the MASTAN2 Analysis menu select 1st-Order Inelastic.
2. At the bottom menu bar, click on the pop-up menu just to the right of
Analysis Type: and select Planar Frame (x-y).
3. Click on the edit box to the right of Max # of Incrs: and change the 10
to 20. The analysis will stop when either excessive deflections are
detected or 20 load increments are applied or a maximum applied load
ratio (Max. Appl. Ratio) of 1.0 is reached.
4. Click on the Apply button to perform the analysis. Note the analysis
stops as a result of Excessive Deflections (most likely indicating the
formation of a mechanism). Click on No to discontinue the analysis.
5. Note that the analysis stopped after 14 load increments. Click on the
pop-up menu just to the left of Apply and select Continue Prev.
6. Click on the edit box to the right of Max # of Incrs: and change 20 to
15. This will let the analysis run for one additional increment.
Note:
When diagrams are drawn for the limit load, the descriptive label at
the top of the MASTAN2 model window is encased in *** s.
Other Methods of Analysis (cont.)
Part IV. Elastic and Inelastic Critical Loads
1. From the MASTAN2 Analysis menu select Elastic Critical Load.
2. At the bottom menu bar, click on the pop-up menu just to the right of
Analysis Type: and select Planar Frame (x-y).
3. Click on the > at the lower right of the bottom menu until the Max. # of
Modes: number reads 3.
4. Click on the Apply button to perform the analysis.
5. From the Results menu select Diagrams and submenu Deflected Shape.
6. At the bottom menu bar, click on the edit box to right of Scale: and
replace 10 with 30 or -30, depending on the displaced direction.
7. Click on the Apply button and the first mode is shown. MASTAN2
8. To view higher modes, advance the mode number by using > at the lower
right of the bottom menu and then click on Apply. MASTAN2
9. From the Analysis menu select Inelastic Critical Load and repeat steps
2, 4, 5, and 7. Note that only one inelastic mode can be calculated.
MASTAN2
Note:
The analysis type, mode number, and critical load ratio are shown in the
descriptive label located at the top of the main model window.
Other Methods of Analysis (cont.)
Part V. Elastic and Inelastic Natural Periods
1. From the MASTAN2 Analysis menu select Natural Period.
2. At the bottom menu bar, click on the pop-up menu just to the right of
Analysis Type: and select Planar Frame (x-y).
3. Click on the edit box to the right of Mass Matrix Gravitational
Acceleration (GrAcc) and change the 0 to 386.4.
4. To request three modes, click on the > at the lower right of the bottom
menu until the Max. # of Modes: number reads 3.
5. Click on the Apply button to perform the analysis.
6. From the Results menu select Diagrams and submenu Deflected Shape.
7. At the bottom menu bar, click on the edit box to right of Scale: and
replace 30 with 50.
8. Click on the Apply button and the first mode is shown. MASTAN2
9. To view animations and/or higher modes, check the Animate box, and as
desired, advance the mode number by using > at the lower right of the
bottom menu, and then click on Apply.
Note:
The analysis type, mode number, and natural period are shown in the
descriptive label located at the top of the main model window.
Other Methods of Analysis (cont.)
Part V. Elastic and Inelastic Natural Periods (cont.)
10. To obtain Inelastic Natural Periods, first go to the MASTAN2 Analysis
menu, select 2nd-Order Inelastic, and then click on Apply.
11. From the MASTAN2 Analysis menu select Natural Period.
12. At the bottom menu bar, click on the edit box to the right of Stiffness
Matrix and select Prev. Incr. Analysis Results.
13. Click on the > at the right of [K] from Incr #(ALR) to request natural
periods and mode shapes for all steps of the nonlinear analysis.
14. Click on the Apply button to perform the analysis.
15. From the Results menu select Diagrams and submenu Deflected Shape.
16. Click on the Apply button and the first mode displayed is
for load step 12. From the View menu select Fit. MASTAN2
17. To view animations and/or different load steps, check the Animate box,
and as desired advance the step number by using < or > at the lower right
of the bottom menu, and then click on Apply.
Note:
Results of the inelastic natural period analysis my be plotted using MSAPlot. For example,
a plot of the natural period versus applied load ratio may be generated.
Samples of MASTAN2 Models
MASTAN2 Menus:
MSAPlot Menus:
Exit MASTAN2
MASTAN2: View
View
Rotate view of plot about an axis
Rotate
Select a pre-defined view
Defined Views
Labels
Turn on and off visual plot entities such as
Display Settings grids, axes, and legend
Axes
Provide a title that is located at the top of the plot
Plot Title
X-Attributes
Define X-, Y-, or Z- axes attributes such as label,
Y-Attributes number of tick marks, and minimum/maximum
Z-Attributes limits
Fit Axes Limits
Scale all three axes to fit extremes of current curve data
MSAPlot: Curves
Curves
Define the response data that should be plotted on
Define X-Data the X-, Y-, or Z- axis
Define Y-Data
Define Z-Data Using the data-to-axis relationships defined in the
above and the curve graphical attributes prescribed
Generate Curve(s) in this option, generate a two- or three-dimensional
Modify Curve(s) response curve
Good Luck !
Additional Information
Additional information and updates for MASTAN2
may be provided at the following URL:
http://www.mastan2.com