ONE BAY, TWO STORY FRAME MODEL

Contents

Create Model

% all units in kip and inches

Node coordinates (in feet!)

XYZ(1,:) = [ 0     0];  % first node
XYZ(2,:) = [ 0    12];  % second node, etc
XYZ(3,:) = [ 0    24];  %
XYZ(4,:) = [25     0];  %
XYZ(5,:) = [25    12];  %
XYZ(6,:) = [25    24];  %
XYZ(7,:) = [12.5  12];  %
XYZ(8,:) = [12.5  24];  %
% convert coordinates to inches
XYZ = XYZ.*12;

Connectivity array

CON {1} = [  1   2];   % first story columns
CON {2} = [  4   5];
CON {3} = [  2   3];   % second story columns
CON {4} = [  5   6];
CON {5} = [  2   7];   % first floor girders
CON {6} = [  7   5];
CON {7} = [  3   8];   % second floor girders
CON {8} = [  8   6];

Boundary conditions

% (specify only restrained dof's)
BOUN(1,1:3) = [1 1 1];  % (1 = restrained,  0 = free)
BOUN(4,1:3) = [1 1 1];

Element type

% Note:  any 2 node 3dof/node element can be used at this point!
[ElemName{1:8}] = deal('Lin2dFrm_NLG');    % 2d linear elastic frame element

Create model data structure

Model = Create_Model(XYZ,CON,BOUN,ElemName);

Display model and show node/element numbering (optional)

Create_Window (0.70,0.70);         % open figure window
Plot_Model  (Model);               % plot model (optional)
Label_Model (Model);               % label model (optional)

Resize_Plot;