Example #1
0
        public void SetDefaultValues(double SpanLength, double loadVal, double MomentOfInertia)
        {
            CLoadDetails cld = new CLoadDetails();

            cld.iSpanNo     = 1;
            cld.dLoadWeight = loadVal;
            //cld.dLoadWeight = 306.0;
            cld.dLoadStartDistance = 0.0;
            cld.dLoadCoverDistance = SpanLength;
            cld.iLoadNo            = 1;
            lstLoad.Add(cld);


            //cld = new CLoadDetails();
            //cld.iSpanNo = 2;
            //cld.dLoadWeight = 100.0;
            //cld.dLoadStartDistance = 0.0;
            //cld.dLoadCoverDistance = 4.0;
            //cld.iLoadNo = 1;
            //lstLoad.Add(cld);

            //cld = new CLoadDetails();
            //cld.iSpanNo = 3;
            //cld.dLoadWeight = 306.0;
            //cld.dLoadStartDistance = 0.0;
            //cld.dLoadCoverDistance = 6.0;
            //cld.iLoadNo = 1;
            //lstLoad.Add(cld);

            CSpanDetails csd = new CSpanDetails();

            csd.iSpanNo          = 1;
            csd.dSpanLength      = SpanLength;
            csd.dMomentOfInertia = MomentOfInertia;
            lstSpan.Add(csd);

            //csd = new CSpanDetails();
            //csd.iSpanNo = 2;
            //csd.dSpanLength = 4;
            //csd.dMomentOfInertia = 1200;
            //lstSpan.Add(csd);

            //csd = new CSpanDetails();
            //csd.iSpanNo = 3;
            //csd.dSpanLength = 6;
            //csd.dMomentOfInertia = 1200;
            //lstSpan.Add(csd);

            lstNL.Add(1);
            lstNL.Add(1);
            lstNL.Add(1);

            NS = 1;
        }
Example #2
0
        public void SetDefaultValues()
        {
            CLoadDetails cld = new CLoadDetails();

            cld.iSpanNo            = 1;
            cld.dLoadWeight        = 306.0;
            cld.dLoadStartDistance = 0.0;
            cld.dLoadCoverDistance = 6.0;
            cld.iLoadNo            = 1;
            lstLoad.Add(cld);


            cld                    = new CLoadDetails();
            cld.iSpanNo            = 2;
            cld.dLoadWeight        = 100.0;
            cld.dLoadStartDistance = 0.0;
            cld.dLoadCoverDistance = 4.0;
            cld.iLoadNo            = 1;
            lstLoad.Add(cld);

            cld                    = new CLoadDetails();
            cld.iSpanNo            = 3;
            cld.dLoadWeight        = 306.0;
            cld.dLoadStartDistance = 0.0;
            cld.dLoadCoverDistance = 6.0;
            cld.iLoadNo            = 1;
            lstLoad.Add(cld);

            CSpanDetails csd = new CSpanDetails();

            csd.iSpanNo          = 1;
            csd.dSpanLength      = 6;
            csd.dMomentOfInertia = 1200;
            lstSpan.Add(csd);

            csd                  = new CSpanDetails();
            csd.iSpanNo          = 2;
            csd.dSpanLength      = 4;
            csd.dMomentOfInertia = 1200;
            lstSpan.Add(csd);

            csd                  = new CSpanDetails();
            csd.iSpanNo          = 3;
            csd.dSpanLength      = 6;
            csd.dMomentOfInertia = 1200;
            lstSpan.Add(csd);
            lstNL.Add(1);
            lstNL.Add(1);
            lstNL.Add(1);

            NS = 3;
        }