Exemple #1
0
        public void BoltReturnsNominalTensileStressStringInput()
        {
            BoltFactory   bf       = new BoltFactory("A325");
            IBoltMaterial material = bf.GetBoltMaterial();
            double        F_nt     = material.GetNominalTensileStress("N");

            Assert.AreEqual(90.0, F_nt);
        }
Exemple #2
0
        public void BoltReturnsNominalTensileStress()
        {
            BoltFactory   bf       = new BoltFactory("A325");
            IBoltMaterial material = bf.GetBoltMaterial();
            double        F_nt     = material.GetNominalTensileStress(BoltThreadCase.Included);

            Assert.AreEqual(90.0, F_nt);
        }
Exemple #3
0
 public BoltBearingThreadedGeneral(double Diameter, BoltThreadCase ThreadType, IBoltMaterial material,
                                   ICalcLog log = null)
     : base(Diameter, ThreadType, log)
 {
     this.material        = material;
     nominalTensileStress = material.GetNominalTensileStress(ThreadType);
     nominalShearStress   = material.GetNominalShearStress(ThreadType);
 }
        public BoltBearingThreadedGeneral(double Diameter, BoltThreadCase ThreadType, IBoltMaterial material,
            ICalcLog log=null)
            : base(Diameter, ThreadType, log)
        {
            this.material = material;
            nominalTensileStress = material.GetNominalTensileStress(ThreadType);
            nominalShearStress = material.GetNominalShearStress(ThreadType);

        }
        public static Dictionary <string, object> BoltNominalTensileStress(string BoltMaterialId, string BoltThreadCase, string Code = "AISC360-10")
        {
            //Default values
            double F_nt = 0;


            //Calculation logic:
            BoltFactory   bf       = new BoltFactory(BoltMaterialId);
            IBoltMaterial material = bf.GetBoltMaterial();

            F_nt = material.GetNominalTensileStress(BoltThreadCase);


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