IES VisualFoundation User's Guide
Example: Combined Footing
Combined Footing
Copy Code
//Builds a Combined Footing 
SetUnits("Kips & Feet");
DeleteAll();

//Add Slabs
AddRectangleSlab(0, 0, 4, 12);
var w = 12;
var h = 8;
var l1 = new Location(0, -0.5*h);
var l2 = new Location(0, 0.5*h);
var l3 = new Location(w, 0.25*h);
var l4 = new Location(w, -0.25*h);
AddSlab(l1, l2, l3, l4);
MoveCenterTo("F001", -2, 0);
    
//Add Piers
AddPier(2, 0);
AddPier(l4);
MovePierBy("C002", -2, 2);    
CirclePierSize("C001", 0.5);
CirclePierSize("C002", 0.5);
SetPierMaterial("C001", "Concrete (F'c = 4 ksi)");
SetPierMaterial("C002", PickConcrete());
    
//Add Wall 
AddWall("W1", -2, -6, -2, 6, 4, 8/12.0, true);

//Add Semicircular Slab
double x(double y) => -Math.Sqrt(Math.Pow(6, 2) - Math.Pow(y, 2)) - 4;
var xCoordinates = new List<double>();
var yCoordinates = new List<double>();
for(double y = -6; y <= 6; y = y + 0.25) {xCoordinates.Add(x(y)); yCoordinates.Add(y);}
AddSlab(xCoordinates, yCoordinates); 

//Add Loads
LoadLine("D", "W1", 0, 0, -50, 0, 0);
LoadPier("D", "C001", 0, 0, -20, 0, 0);
LoadPier("D", "C002", 0, 0, -20, 0, 0);
LoadPier("W+X", "C001", 0, 0, 25, 0, 0);
LoadPier("W+X", "C002", 0, 0, -25, 0, 0);

//Obtain Results
await Analysis();
$"Max Bearing = {Bearing(true)}; Max Bearing Dead Load = {Bearing("1. D", true)}; Bearing Dead Load at (0, -6) = {Bearing("1. D", 0, -6)}"