Beam Design Bracing |
Copy Code
|
---|---|
//script builds, supports, and loads a steel beam //then finds the lateral bracing required to pass design checks SetUnits("Kips & Inches"); DeleteAll(); //input var w = 25*12; var beamSection = "W14x22"; var beamMat = "ASTM A992 Grade 50"; //define nodes var n1 = AddNode(0, 0); var n2 = AddNode(w, 0); //define member var beam = AddMember("beam", n1, n2, beamSection, beamMat); //pin the supports Support(n1, true, true, true, true, false, false); Pin(n2); //load to the beam LoadMember("D", beam, -0.25/12, "Force Y"); LoadMember("L", beam, -0.5/12, "Force Y"); LoadMember("S", beam, -0.35/12, "Force Y"); //find the beam's design group await DesignGrouping(); var group = FindGroup(beam); var bracing = new string[] { "Midpoint", "Third Points", "Quarter Points", "Continuous" }; foreach(var brace in bracing) { ModifyDesignGroup(group, "Bracing", "Lateral Top (+y)", brace); await Design(); var unity = Unity(beam); if(unity <= 1.0) { return $"{brace} bracing leads to a unity value of {unity}"; } } return "No bracing configurations satisfied the design checks."; |