#include <codecogs/engineering/soil/slope_safety_factor.h>
using namespace Engineering::Soil;
| double | slope_safety_factor (double radius, double a, double b, double H, double slope, double soil_density, double soil_c) The stability (safety factor) of a undrained cut or built slope. | |
| Real | cc_slope_safety_factor (Real radius, Real a, Real b, Real H, Real slope, Real soil_density, Real soil_c) This function is available as a Microsoft Excel add-in. |
| doubleslope_safety_factor( | double | radius | |
| double | a | ||
| double | b | ||
| double | H | ||
| double | slope | ||
| double | soil_density | ||
| double | soil_c | ) |

Further information available when you purchase a licence.
#include <stdio.h> #include <codecogs/engineering/soil/slope_safety_factor.h> int main() { double soil_c=45; double soil_density=1900; double H=9; // height of bank double slope=90; double a=6; // horizontal distance to toe of slope // Find the vertical position of the circle that gives the lowest factor of safety for (double b=10; b < 40; b += 1) { double R=sqrt(b*b+a*a); // assume minimum radius to toe of slope double F=Engineering::Soil::slope_safety_factor(R, a, b, H, slope, soil_density, soil_c); printf("\n b=%lf Radius=%lf F=%lf",b,R,F); } return 0; }Output:
TODO: Need to compute
| radius | The radius r of the slip circle. Note the radius must be sufficient to reach below the toe of the slope and beyond the top of the slope. [m] |
| a | The horizontal offset from the toe of the slope to the center of the slip cicle. [m] |
| b | The vertical offset from the toe of the slope to the cetner of the slip circle. [m] |
| H | The height of the slope. [m] |
| slope | The angle of the slope. [degrees] |
| soil_density | The average density |
| soil_c | The natural cohesion (base shear strength) of the soil, |