コード例 #1
0
        public void FilletWeldReturnsUnitStrengthWithoutBaseMetal()
        {
            FilletWeld weld            = new FilletWeld(0, 0, 70, 1 / 16.0, 0, 1);
            double     phiF_nw         = weld.GetStrength(WeldLoadType.WeldShear, 0, true);
            double     refValue        = 1.392;
            double     actualTolerance = EvaluateActualTolerance(phiF_nw, refValue);

            Assert.LessOrEqual(actualTolerance, tolerance);
        }
コード例 #2
0
        public void WeldConcentricLoadAtAngleReturnsValue()
        {
            FilletWeld weld            = new FilletWeld(50, 65, 70, 5.0 / 16.0, 2.0, 2.0); //L = 2 because Example uses 2 sided welds
            double     phiF_nw         = weld.GetStrength(WeldLoadType.WeldShear, 60.0, false);
            double     refValue        = 19.5;
            double     actualTolerance = EvaluateActualTolerance(phiF_nw, refValue);

            Assert.LessOrEqual(actualTolerance, tolerance);
        }
コード例 #3
0
        public void FilletWeldReturnsUnitStrength()
        {
            FilletWeld weld            = new FilletWeld(50, 65, 70, 1 / 16.0, 100, 1);
            double     phiF_nw         = weld.GetStrength(WeldLoadType.WeldShear, 0, false);
            double     refValue        = 1.392;
            double     actualTolerance = EvaluateActualTolerance(phiF_nw, refValue);

            Assert.True(actualTolerance <= tolerance);
        }
コード例 #4
0
        public virtual double GetStrength(bool IgnoreDirectionalityEffects = false)
        {
            FilletWeld weld   = new FilletWeld(0, 0, this.ElectrodeStrength, this.Leg, 0, Length);
            double     phiR_n = 0;

            if (IgnoreDirectionalityEffects == true)
            {
                phiR_n = weld.GetStrength(WeldLoadType.WeldShear, 0, true);
            }
            else
            {
                phiR_n = weld.GetStrength(WeldLoadType.WeldShear, theta, true);
            }

            return(phiR_n);
        }