Exemplo n.º 1
0
        public static Dictionary<string, object> BeamStabilityFactor(double b,double d,double F_b,double E_min,double l_e,double C_M_Fb,double C_M_E,double C_t_Fb,double C_t_E,double C_F_Fb,double C_i_Fb,double C_i_E,double C_r,double C_T,double lambda,string WoodMemberType,string Code)
        {
            //Default values
            double C_L = 0;


            //Calculation logic:

            if (WoodMemberType.Contains("Sawn") && WoodMemberType.Contains("Lumber"))
            {
                DimensionalLumber m = new DimensionalLumber();
                C_L = m.GetStabilityFactor(b, d, F_b, E_min, l_e, C_M_Fb, C_M_E, C_t_Fb, C_t_Fb, C_F_Fb, C_i_Fb, C_i_E, C_r, C_T, lambda);
            }
            else
            {
                throw new Exception("Wood member type not supported.");
            }


            return new Dictionary<string, object>
            {
                { "C_L", C_L }
 
            };
        }
Exemplo n.º 2
0
        public static Dictionary <string, object> BeamStabilityFactor(double b, double d, double F_b, double E_min, double l_e, double C_M_Fb, double C_M_E, double C_t_Fb, double C_t_E, double C_F_Fb, double C_i_Fb, double C_i_E, double C_r, double C_T, double lambda, string WoodMemberType, string Code)
        {
            //Default values
            double C_L = 0;


            //Calculation logic:

            if (WoodMemberType.Contains("Sawn") && WoodMemberType.Contains("Lumber"))
            {
                DimensionalLumber m = new DimensionalLumber();
                C_L = m.GetStabilityFactor(b, d, F_b, E_min, l_e, C_M_Fb, C_M_E, C_t_Fb, C_t_Fb, C_F_Fb, C_i_Fb, C_i_E, C_r, C_T, lambda);
            }
            else
            {
                throw new Exception("Wood member type not supported.");
            }


            return(new Dictionary <string, object>
            {
                { "C_L", C_L }
            });
        }