IES VisualAnalysis User's Guide
Example: Simple Frame

Requires: Advanced Level

Simple Frame
Copy Code
//script builds, supports, and loads a steel frame

SetUnits("Kips & Inches");
DeleteAll();

//input
var w = 96.0;
var h = 14*12.0;
var beamSection = "W16x31";
var beamMat = "ASTM A992 Grade 50";
var colSection = "HSS6X6X.500";
var colMat = "ASTM A500 Grade B (Fy = 46ksi)";

//define nodes
var n1 = AddNode(0, 0);
var n2 = AddNode(0, h);
var n3 = AddNode(w, 0);
var n4 = AddNode(w, h);

//define members
AddMember("c1", n1, n2, colSection, colMat);
AddMember("c2", n3, n4, colSection, colMat);
var beam = AddMember("beam", n2, n4, beamSection, beamMat);

//pin the base
Pin(n1);
Pin(n3);

//support DZ at the top
Support(n2, false, false, true, false, false, false);
Support(n4, false, false, true, false, false, false);

//load to the beam
LoadMember("D", beam, -0.25/12, "Force Y");

//apply a shear load to the top nodes
NodeForce("E+X", n2, 2.0, 0, 0);
NodeForce("E+X", n4, 2.0, 0, 0);