Пример #1
0
        public static Dictionary<string, object> YAxisProperties(string SteelShapeId)
        {
            //Default values
            double y_e = 0;
double y_p = 0;
double I_y = 0;
double Z_y = 0;
double S_y = 0;
double r_y = 0;


            //Calculation logic:
CalcLog cl = new CalcLog();
AiscCatalogShape shape = new AiscCatalogShape(SteelShapeId, cl);

y_e = shape.y;
y_p = shape.yp;
I_y = shape.Iy;
Z_y = shape.Zy;
S_y = shape.Sy;
r_y = shape.ry;


            return new Dictionary<string, object>
            {
                { "y_e", y_e }
,{ "y_p", y_p }
,{ "I_y", I_y }
,{ "Z_y", Z_y }
,{ "S_y", S_y }
,{ "r_y", r_y }
 
            };
        }
        public static Dictionary <string, object> XAxisProperties(string SteelShapeId)
        {
            //Default values
            double x_e = 0;
            double x_p = 0;
            double I_x = 0;
            double Z_x = 0;
            double S_x = 0;
            double r_x = 0;


            //Calculation logic:

            CalcLog cl = new CalcLog();

            SteelShapeId = SteelShapeId.ToUpper();
            AiscCatalogShape shape = new AiscCatalogShape(SteelShapeId, cl);

            x_e = shape.x;
            x_p = shape.xp;
            I_x = shape.Ix;
            Z_x = shape.Zx;
            S_x = shape.Sx;
            r_x = shape.rx;

            return(new Dictionary <string, object>
            {
                { "x_e", x_e }
                , { "x_p", x_p }
                , { "I_x", I_x }
                , { "Z_x", Z_x }
                , { "S_x", S_x }
                , { "r_x", r_x }
            });
        }
Пример #3
0
        public static Dictionary<string, object> XAxisProperties(string SteelShapeId)
        {
            //Default values
            double x_e = 0;
double x_p = 0;
double I_x = 0;
double Z_x = 0;
double S_x = 0;
double r_x = 0;


            //Calculation logic:

CalcLog cl = new CalcLog();
AiscCatalogShape shape = new AiscCatalogShape(SteelShapeId, cl);

x_e = shape.x;
x_p = shape.xp;
I_x = shape.Ix;
Z_x = shape.Zx;
S_x = shape.Sx;
r_x = shape.rx;

            return new Dictionary<string, object>
            {
                { "x_e", x_e }
,{ "x_p", x_p }
,{ "I_x", I_x }
,{ "Z_x", Z_x }
,{ "S_x", S_x }
,{ "r_x", r_x }
 
            };
        }
        public static Dictionary <string, object> YAxisProperties(string SteelShapeId)
        {
            //Default values
            double y_e = 0;
            double y_p = 0;
            double I_y = 0;
            double Z_y = 0;
            double S_y = 0;
            double r_y = 0;


            //Calculation logic:
            CalcLog cl = new CalcLog();

            SteelShapeId = SteelShapeId.ToUpper();
            AiscCatalogShape shape = new AiscCatalogShape(SteelShapeId, cl);

            y_e = shape.y;
            y_p = shape.yp;
            I_y = shape.Iy;
            Z_y = shape.Zy;
            S_y = shape.Sy;
            r_y = shape.ry;


            return(new Dictionary <string, object>
            {
                { "y_e", y_e }
                , { "y_p", y_p }
                , { "I_y", I_y }
                , { "Z_y", Z_y }
                , { "S_y", S_y }
                , { "r_y", r_y }
            });
        }
Пример #5
0
        public static Dictionary <string, object> ShapeDetailingParameters(string SteelShapeId)
        {
            //Default values
            double WG    = 0;
            double T     = 0;
            double k_det = 0;


            //Calculation logic
            CalcLog cl = new CalcLog();

            SteelShapeId = SteelShapeId.ToUpper();
            AiscCatalogShape shape = new AiscCatalogShape(SteelShapeId, cl);

            WG    = shape.WG;
            T     = shape.T;
            k_det = shape.k_det;

            return(new Dictionary <string, object>
            {
                { "WG", WG }
                , { "T", T }
                , { "k_det", k_det }
            });
        }
Пример #6
0
 public PredefinedSectionCHS(AiscCatalogShape section)
     : base(section)
 {
     this._D = section.OD;
     this._t = section.tnom;
     this._t_des = section.tdes;
     OverrideCentroids();
 }
Пример #7
0
 public PredefinedSectionRHS(AiscCatalogShape section)
     : base(section)
 {
     this._B = section.B;
     this._H = section.H;
     this._t_des = section.tdes;
     this._t_nom = section.tnom;
     OverrideCentroids();
 }
Пример #8
0
 public PredefinedSectionI(AiscCatalogShape section)
     : base(section)
 {
     this._d = section.d;
     this._bf = section.bf;
     this._tf = section.tf;
     this._t_w = section.tw;
     this._k = section.kdes;
     s = section;
     OverrideCentroids();
 }
 public PredefinedSectionChannel(AiscCatalogShape section)
     : base(section)
 {
     s = section;
     this._d = section.d;
     this._b_f = section.bf;
     this._t_f = section.tf;
     this._t_w = section.tw;
     this._k = section.kdes;
     OverrideCentroids();
 }
Пример #10
0
        public PredefinedSectionAngle(AiscCatalogShape section, AngleOrientation AngleOrientation, AngleRotation AngleRotation)
            : base(section)
        {
            //this._d = section.d;
            //this._b = section.b;
            Set_b_and_d(section.d, section.b, AngleOrientation);
            this._t = section.t;
            this.AngleOrientation = AngleOrientation;
            this.AngleRotation = AngleRotation;
 
        }
Пример #11
0
        public static Dictionary <string, object> ShapeBasicGeometricProperties(string SteelShapeId)
        {
            //Default values
            double d     = 0;
            double b     = 0;
            double b_f   = 0;
            double t_f   = 0;
            double t_w   = 0;
            double k     = 0;
            double D     = 0;
            double B     = 0;
            double H     = 0;
            double t     = 0;
            double t_nom = 0;
            double t_des = 0;
            double A     = 0;

            //Calculation logic
            CalcLog cl = new CalcLog();

            SteelShapeId = SteelShapeId.ToUpper();
            AiscCatalogShape shape = new AiscCatalogShape(SteelShapeId, cl);

            d     = shape.d;
            b_f   = shape.bf;
            t_f   = shape.tf;
            t_w   = shape.tw;
            k     = shape.kdes;
            D     = shape.OD;
            b     = shape.b;
            B     = shape.B;
            H     = shape.Ht;
            t     = shape.t;
            t_nom = shape.tnom;
            t_des = shape.tdes;
            A     = shape.A;

            return(new Dictionary <string, object>
            {
                { "d", d }
                , { "b_f", b_f }
                , { "t_f", t_f }
                , { "t_w", t_w }
                , { "k", k }
                , { "D", D }
                , { "B", B }
                , { "H", H }
                , { "t", t }
                , { "t_nom", t_nom }
                , { "t_des", t_des }
                , { "b", b }
                , { "A", A }
            });
        }
        public static Dictionary<string, object> ShapeBasicGeometricProperties(string SteelShapeId)
        {
            //Default values
            double d = 0;
            double b= 0;
            double b_f = 0;
            double t_f = 0;
            double t_w = 0;
            double k = 0;
            double D = 0;
            double B = 0;
            double H = 0;
            double t = 0;
            double t_nom = 0;
            double t_des = 0;
            double A = 0;

            //Calculation logic
            CalcLog cl = new CalcLog();
            AiscCatalogShape shape = new AiscCatalogShape(SteelShapeId, cl);
            d = shape.d;
            b_f = shape.bf;
            t_f = shape.tf;
            t_w = shape.tw;
            k = shape.kdes;
            D = shape.OD;
            b = shape.b;
            B = shape.B;
            H = shape.Ht;
            t = shape.t;
            t_nom = shape.tnom;
            t_des = shape.tdes;
            A = shape.A;

            return new Dictionary<string, object>
            {
                { "d", d }
                ,{ "b_f", b_f }
                ,{ "t_f", t_f }
                ,{ "t_w", t_w }
                ,{ "k", k }
                ,{ "D", D }
                ,{ "B", B }
                ,{ "H", H }
                ,{ "t", t }
                ,{ "t_nom", t_nom }
                ,{ "t_des", t_des }
                ,{ "b", b }
                 ,{ "A", A }
            };
        }
        public static Dictionary <string, object> TorsionalProperties(string SteelShapeId)
        {
            //Default values
            double J    = 0;
            double C    = 0;
            double C_w  = 0;
            double W_no = 0;
            double S_w1 = 0;
            double S_w2 = 0;
            double S_w3 = 0;
            double Q_fl = 0;
            double Q_w  = 0;


            //Calculation logic:
            CalcLog cl = new CalcLog();

            SteelShapeId = SteelShapeId.ToUpper();
            AiscCatalogShape shape = new AiscCatalogShape(SteelShapeId, cl);

            J    = shape.J;
            C    = shape.C;
            C_w  = shape.Cw;
            C_w  = shape.Cw;
            W_no = shape.Wno;
            S_w1 = shape.Sw1;
            S_w2 = shape.Sw2;
            S_w3 = shape.Sw3;
            Q_fl = shape.Qf;
            Q_w  = shape.Qw;

            return(new Dictionary <string, object>
            {
                { "J", J }
                , { "C", C }
                , { "C_w", C_w }
                , { "W_no", W_no }
                , { "S_w1", S_w1 }
                , { "S_w2", S_w2 }
                , { "S_w3", S_w3 }
                , { "Q_fl", Q_fl }
                , { "Q_w", Q_w }
            });
        }
Пример #14
0
        public static Dictionary<string, object> TorsionalProperties(string SteelShapeId)
        {
            //Default values
                double J = 0;
                double C = 0;
                double C_w = 0;
                double W_no = 0;
                double S_w1 = 0;
                double S_w2 = 0;
                double S_w3 = 0;
                double Q_fl = 0;
                double Q_w = 0;


            //Calculation logic:
                CalcLog cl = new CalcLog();
                AiscCatalogShape shape = new AiscCatalogShape(SteelShapeId, cl);
                
                J = shape.J;
                C = shape.C;
                C_w = shape.Cw;
                C_w  =shape.Cw; 
                W_no =shape.Wno;
                S_w1 =shape.Sw1;
                S_w2 =shape.Sw2;
                S_w3 =shape.Sw3;
                Q_fl =shape.Qf;
                Q_w = shape.Qw; 

            return new Dictionary<string, object>
            {
                { "J", J }
                ,{ "C", C }
                ,{ "C_w", C_w }
                ,{ "W_no", W_no }
                ,{ "S_w1", S_w1 }
                ,{ "S_w2", S_w2 }
                ,{ "S_w3", S_w3 }
                ,{ "Q_fl", Q_fl }
                ,{ "Q_w", Q_w }
 
            };
        }
        public static Dictionary <string, object> StandardShapeWeightPerFoot(string SteelShapeId)
        {
            //Default values
            double W = 0;


            //Calculation logic:

            CalcLog cl = new CalcLog();

            SteelShapeId = SteelShapeId.ToUpper();
            AiscCatalogShape shape = new AiscCatalogShape(SteelShapeId, cl);

            W = shape.W;


            return(new Dictionary <string, object>
            {
                { "W", W }
            });
        }
Пример #16
0
        public ISection GetShape(string ShapeId, ShapeTypeSteel shapeType, AngleOrientation AngleOrientation = AngleOrientation.LongLegVertical, AngleRotation AngleRotation = AngleRotation.FlatLegBottom)
        { 

            string DEFAULT_EXCEPTION_STRING = "Selected shape is not supported. Specify a different shape.";
            AiscCatalogShape cs = new AiscCatalogShape(ShapeId,null);
            CalcLog log = new CalcLog();
            ISection sec = null;

            switch (shapeType)
            {
                case ShapeTypeSteel.IShapeRolled:
                    sec = new PredefinedSectionI(cs);
                    break;
                case ShapeTypeSteel.IShapeBuiltUp:
                    throw new Exception(DEFAULT_EXCEPTION_STRING);
                    break;
                case ShapeTypeSteel.Channel:
                    sec = new PredefinedSectionChannel(cs);
                    break;
                case ShapeTypeSteel.Angle:
                    sec = new PredefinedSectionAngle(cs, AngleOrientation,AngleRotation);
                    break;
                case ShapeTypeSteel.TeeRolled:
                    throw new Exception(DEFAULT_EXCEPTION_STRING);
                    break;
                case ShapeTypeSteel.TeeBuiltUp:
                    throw new Exception(DEFAULT_EXCEPTION_STRING);
                    break;
                case ShapeTypeSteel.DoubleAngle:
                    throw new Exception(DEFAULT_EXCEPTION_STRING);
                    break;
                case ShapeTypeSteel.CircularHSS:
                    sec = new PredefinedSectionCHS(cs);
                    break;
                case ShapeTypeSteel.RectangularHSS:
                    sec = new PredefinedSectionRHS(cs);
                    break;
                case ShapeTypeSteel.Box:
                    throw new Exception(DEFAULT_EXCEPTION_STRING);
                    break;
                case ShapeTypeSteel.Rectangular:
                    throw new Exception(DEFAULT_EXCEPTION_STRING);
                    break;
                case ShapeTypeSteel.Circular:
                    throw new Exception(DEFAULT_EXCEPTION_STRING);
                    break;
                case ShapeTypeSteel.IShapeAsym:
                    throw new Exception(DEFAULT_EXCEPTION_STRING);
                    break;
                default:
                    break;
            }

            return sec;
        }