/// <summary> /// Calclate <see cref="SnowLoadOnRoofValue"/>. /// </summary> private void CalculateSnowLoadOnRoof() { if (!snowLoad.ExcepctionalSituation) { SnowLoadOnRoofValue = SnowLoadCalc.CalculateSnowLoad( SecondShapeCoefficient, buildingSite.ExposureCoefficient, Building.ThermalCoefficient, snowLoad.SnowLoadForSpecificReturnPeriod); SnowLoadOnRoofValueAtTheEnd = SnowLoadCalc.CalculateSnowLoad( FirstShapeCoefficient, buildingSite.ExposureCoefficient, Building.ThermalCoefficient, snowLoad.SnowLoadForSpecificReturnPeriod); } else { SnowLoadOnRoofValue = SnowLoadCalc.CalculateSnowLoad( SecondShapeCoefficient, buildingSite.ExposureCoefficient, Building.ThermalCoefficient, snowLoad.DesignExceptionalSnowLoadForSpecificReturnPeriod); SnowLoadOnRoofValueAtTheEnd = SnowLoadCalc.CalculateSnowLoad( FirstShapeCoefficient, buildingSite.ExposureCoefficient, Building.ThermalCoefficient, snowLoad.DesignExceptionalSnowLoadForSpecificReturnPeriod); } }
private void CalculateSnowLoad2() { if (ConditionChecker.ForDesignSituation(snowLoad.ExcepctionalSituation, snowLoad.CurrentDesignSituation, true)) { RightSnowLoad = SnowLoadCalc.CalculateSnowLoadForAnnexB(RightShapeCoefficient, snowLoad.SnowLoadForSpecificReturnPeriod); } }
private void CalculateSnowLoad1() { if (ConditionChecker.ForDesignSituation(snowLoad.ExcepctionalSituation, snowLoad.CurrentDesignSituation, true)) { SnowLoadNearTheTop = SnowLoadCalc.CalculateSnowLoadForAnnexB(ShapeCoefficient1, snowLoad.SnowLoadForSpecificReturnPeriod); } }
private void SetSnowLoadsNearTallerBuilding() { SnowLoadsNearTallerBuilding = new Dictionary <int, double>(); double snowLoadInFirstCase; if (!snowLoad.ExcepctionalSituation) { snowLoadInFirstCase = SnowLoadCalc.CalculateSnowLoad( 0.8, buildingSite.ExposureCoefficient, Building.ThermalCoefficient, snowLoad.SnowLoadForSpecificReturnPeriod); } else { snowLoadInFirstCase = SnowLoadCalc.CalculateSnowLoad( 0.8, buildingSite.ExposureCoefficient, Building.ThermalCoefficient, snowLoad.DesignExceptionalSnowLoadForSpecificReturnPeriod); } SnowLoadsNearTallerBuilding.Add(1, snowLoadInFirstCase); SnowLoadsNearTallerBuilding.Add(2, SnowLoadOnRoofValue); }
public void CalculateSnowLoadTest_Success() { double shapeCoefficient = 1.5; double exposureCoefficient = 1.2; double thermalCoefficient = 0.8; double snowLoad = 0.9; double result = SnowLoadCalc.CalculateSnowLoad(shapeCoefficient, exposureCoefficient, thermalCoefficient, snowLoad); Assert.AreEqual(1.296, result, "Something go wrong with calculation for snow load."); }
/// <summary> /// Calculate snow load on roof. /// </summary> /// <param name="shapeCoefficient">Shape coefficient for roof.</param> /// <returns>Snow load on rooof.</returns> /// <seealso cref="SnowLoadCalc.CalculateSnowLoad(double, double, double, double)"/> private double CalculateSnowLoadOnRoof(double shapeCoefficient) { if (!snowLoad.ExcepctionalSituation) { return(SnowLoadCalc.CalculateSnowLoad( shapeCoefficient, buildingSite.ExposureCoefficient, Building.ThermalCoefficient, snowLoad.SnowLoadForSpecificReturnPeriod)); } else { return(SnowLoadCalc.CalculateSnowLoad( shapeCoefficient, buildingSite.ExposureCoefficient, Building.ThermalCoefficient, snowLoad.DesignExceptionalSnowLoadForSpecificReturnPeriod)); } }
/// <summary> /// Calculate snow load on roof. /// </summary> /// <seealso cref="SnowLoadCalc.CalculateSnowLoad(double, double, double, double)"/> private void CalculateSnowLoadOnRoof() { if (!snowLoad.ExcepctionalSituation) { SnowLoadOnMiddleRoof = SnowLoadCalc.CalculateSnowLoad( ShapeCoefficient, buildingSite.ExposureCoefficient, Building.ThermalCoefficient, snowLoad.SnowLoadForSpecificReturnPeriod); } else { SnowLoadOnMiddleRoof = SnowLoadCalc.CalculateSnowLoad( ShapeCoefficient, buildingSite.ExposureCoefficient, Building.ThermalCoefficient, snowLoad.DesignExceptionalSnowLoadForSpecificReturnPeriod); } }