public static Dictionary <string, object> WindVelocityPressure(double K_z, double K_zt, double K_d, double V, string WindVelocityLocation = "Wall", string Code = "ASCE7-10") { //public static double WindVelocityPressure(double K_z, double K_zt, double K_d, double V, string WindVelocityLocation = "Wall") //{ //Default values double q_z = 0; //Calculation logic: WindVelocityLocation Location; bool IsValidStringLocation = Enum.TryParse(WindVelocityLocation, true, out Location); if (IsValidStringLocation == false) { throw new Exception("Wind pressure location is not recognized. Check input string."); } CalcLog Log = new CalcLog(); BuildingDirectionalProcedureElement element = new BuildingDirectionalProcedureElement(Log); q_z = element.GetVelocityPressure(K_z, K_zt, K_d, V, Location); return(new Dictionary <string, object> { { "q_z", q_z } }); //return q_z; }
public static Dictionary <string, object> WindNetPressureMWFRS(double q_z, double q_h, double G, double C_p_l, double C_p_w, string Code = "ASCE7-10") { //public static double WindNetPressureMWFRS(double q_z,double q_h,double G,double C_p_l,double C_p_w) //{ //Default values double p = 0; //Calculation logic: CalcLog Log = new CalcLog(); BuildingDirectionalProcedureElement element = new BuildingDirectionalProcedureElement(Log); p = element.GetWindPressureMWFRSNet(q_z, q_h, G, C_p_l, C_p_w); return(new Dictionary <string, object> { { "p", p } }); //return p; }
public static Dictionary <string, object> WindVelocityPressureExposureCoefficient(double z, string WindExposureCategory, string WindVelocityLocation = "Wall", string Code = "ASCE7-10") { //public static double WindVelocityPressureExposureCoefficient(double z, string WindExposureCategory, string WindVelocityLocation = "Wall") //{ //Default values double K_z = 0; //Calculation logic: WindExposureCategory Exposure; //Calculation logic: bool IsValidStringExposure = Enum.TryParse(WindExposureCategory, true, out Exposure); if (IsValidStringExposure == false) { throw new Exception("Exposure category is not recognized. Check input string."); } WindVelocityLocation Location; bool IsValidStringLocation = Enum.TryParse(WindVelocityLocation, true, out Location); if (IsValidStringLocation == false) { throw new Exception("Wind pressure location is not recognized. Check input string."); } BuildingDirectionalProcedureElement element = new BuildingDirectionalProcedureElement(new CalcLog()); K_z = element.GetVelocityPressureExposureCoefficientKz(z, Exposure, Location); return(new Dictionary <string, object> { { "K_z", K_z } }); //return K_z; }