예제 #1
0
        public virtual LoadBeam GetConcentratedCase(string subCase)
        {
            LoadBeam Load = null;

            switch (subCase)
            {
            case "1":
                Load = new LoadConcentratedSpecial(d.P);
                break;

            case "2":
                Load = new LoadConcentratedGeneral(d.P, d.a_load);
                break;

            case "3":
                Load = new LoadConcentratedDoubleSymmetrical(d.P, d.a_load);
                break;

            case "4":
                Load = new LoadConcentratedDoubleUnsymmetrical(d.P1, d.P2, d.a_load, d.b_load);
                break;

            case "5":
                Load = new LoadConcentratedCenterWithEndMoments(d.P, d.M1, d.M2);
                break;

            default:
                Load = null;
                break;
            }
            return(Load);
        }
예제 #2
0
        public virtual LoadBeam GetConcentratedCase(string subCase)
        {
            LoadBeam Load = null;

            switch (subCase)
            {
                case "1":
                    Load = new LoadConcentratedSpecial(d.P);
                    break;
                case "2":
                    Load = new LoadConcentratedGeneral(d.P, d.a_load);
                    break;
                case "3":
                    Load = new LoadConcentratedDoubleSymmetrical(d.P, d.a_load);
                    break;
                case "4":
                    Load = new LoadConcentratedDoubleUnsymmetrical(d.P1, d.P2, d.a_load, d.b_load);
                    break;
                case "5":
                    Load = new LoadConcentratedCenterWithEndMoments(d.P, d.M1, d.M2);
                    break;
                default:
                    Load = null;
                    break;
            }
            return Load;
        }