IES ConcreteBending User's Guide
Example: Two-Way Slab Generator
Two-Way Slab Generator
Copy Code
//Generates a two-way floor slab
SetUnits("Kips & Feet");
DeleteAll();

//input
var xBays = 3;
var yBays = 2;
var xSpacing = 18;
var ySpacing = 12;
var thickness = 1.0;
var material = "Concrete (F'c = 5 ksi)";
var supportSize = 1.0;

//define locations
var locations = new List<Location>();
for(var i = 0; i <= yBays; i++)
{
    for(var j = 0; j <= xBays; j++)
    {
        var x = j * xSpacing;
        var y = i * ySpacing;
        locations.Add(new Location(x, y));
        
    }
}

//define the slab
SetMaterial(material);
var i = 0;
var j = xBays;
var k = (xBays + 1) * (yBays + 1) - 1;
var l = k - xBays;
var slab = AddBoundary(locations[i], locations[j], locations[k], locations[l]);
Thickness(slab, thickness);

//add supports
foreach(var location in locations)
{
    var support = AddPointSupport(location);
    SquarePointSupportSize(support, supportSize);
    FixPointSupport(support, "DZ");
    FixPointSupport(support, "RX");
    FixPointSupport(support, "RY");
    RefinePointSupport(support, supportSize, supportSize/10, supportSize/3);
}