Exemplo n.º 1
0
        public static Dictionary <string, object> MinimumWeldSize(string WeldType = "Fillet", double t = 0.25)
        {
            //Default values
            double w_weld = 0;


            //Calculation logic:
            if (WeldType == "Fillet")
            {
                w_weld = FilletWeldLimits.GetMinimumWeldSize(t);
            }

            else if (WeldType == "PJP")
            {
                PJPGrooveWeld pjp = new PJPGrooveWeld(36, 58, 70, 0, 0, 0);
                w_weld = pjp.GetMinimumEffectiveThroat(t);
            }
            else if (WeldType == "CJP")
            {
                w_weld = -1;
            }
            else
            {
                throw new Exception("Weld type not recognized");
            }

            return(new Dictionary <string, object>
            {
                { "w_weld", w_weld }
            });
        }
Exemplo n.º 2
0
        public static Dictionary <string, object> FilletWeldEffectiveLength(double w_weld, double l, bool IsEndLoaded)
        {
            //Default values
            double l_eff = 0;


            //Calculation logic:
            l_eff = FilletWeldLimits.GetEffectiveLegth(w_weld, l, IsEndLoaded);


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