Exemplo n.º 1
0
        public void SetPostProcessForMovingLoad()
        {
            string memberForceFile = Path.GetDirectoryName(astDoc.FileName);

            memberForceFile = Path.Combine(memberForceFile, "Memberforce.FIL");

            if (!File.Exists(memberForceFile))
            {
                return;
            }

            List <string> lstStr = new List <string>(File.ReadAllLines(memberForceFile));


            // MemberForce.FIL
            // 0    1       2       3       4       5       6       7       8
            //MNO  LDCS     Node    R1      R2      R3      M1      M2      M3
            //  1   1        1       0.000   0.000   1.016   -0.157  -0.025  0.000
            //               2       0.000   0.000  -1.016    0.157  -1.029  0.000

            MyStrings       mList = null;
            BeamForceMoment bfm   = null;

            for (int i = 0; i < lstStr.Count; i++)
            {
                mList = new MyStrings(MyStrings.RemoveAllSpaces(lstStr[i]), ' ');
                if (mList.Count == 9)
                {
                    bfm = new BeamForceMoment();
                    bfm.Member.MemberNo     = mList.GetInt(0);
                    bfm.LoadCase            = mList.GetInt(1);
                    bfm.StartForceMoment.R1 = mList.GetDouble(3);
                    bfm.StartForceMoment.R2 = mList.GetDouble(4);
                    bfm.StartForceMoment.R3 = mList.GetDouble(5);
                    bfm.StartForceMoment.M1 = mList.GetDouble(6);
                    bfm.StartForceMoment.M2 = mList.GetDouble(7);
                    bfm.StartForceMoment.M3 = mList.GetDouble(8);
                }
                else if (mList.Count == 7)
                {
                    //bfm = new BeamForceMoment();
                    //bfm.Member.MemberNo = mList.GetInt(0);
                    //bfm.LoadCase = mList.GetInt(1);
                    bfm.EndForceMoment.R1 = mList.GetDouble(1);
                    bfm.EndForceMoment.R2 = mList.GetDouble(2);
                    bfm.EndForceMoment.R3 = mList.GetDouble(3);
                    bfm.EndForceMoment.M1 = mList.GetDouble(4);
                    bfm.EndForceMoment.M2 = mList.GetDouble(5);
                    bfm.EndForceMoment.M3 = mList.GetDouble(6);
                    beamMomentCol.Add(bfm);
                }
            }
        }
Exemplo n.º 2
0
        public void SetProcessBeam(string op, string text)
        {
            // ANALYSIS_REP.TXT
            // 1   1  1.598E+02   1.178E+01  -6.206E-01  -4.740E-02  -4.551E+00   1.693E+01
            //       -1.598E+02  -1.178E+01   6.206E-01   4.740E-02   7.033E+00   3.017E+01


            string temp = text.ToUpper().Trim().TrimEnd().TrimStart().Replace('\t', ' ');

            while (temp.IndexOf("  ") != -1)
            {
                temp = temp.Replace("  ", " ");
            }
            MyStrings mList = new MyStrings(temp, ' ');


            try
            {
                if (mList.StringList.Count == 8)
                {
                    // 1   1  1.598E+02   1.178E+01  -6.206E-01  -4.740E-02  -4.551E+00   1.693E+01

                    beamMoment = new BeamForceMoment();

                    beamMoment.Member.MemberNo     = mList.GetInt(0);
                    beamMoment.LoadCase            = mList.GetInt(1);
                    beamMoment.StartForceMoment.R1 = mList.GetDouble(2);
                    beamMoment.StartForceMoment.R2 = mList.GetDouble(3);
                    beamMoment.StartForceMoment.R3 = mList.GetDouble(4);
                    beamMoment.StartForceMoment.M1 = mList.GetDouble(5);
                    beamMoment.StartForceMoment.M2 = mList.GetDouble(6);
                    beamMoment.StartForceMoment.M3 = mList.GetDouble(7);
                }
                if (mList.StringList.Count == 6)
                {
                    //       -1.598E+02  -1.178E+01   6.206E-01   4.740E-02   7.033E+00   3.017E+01

                    beamMoment.EndForceMoment.R1 = mList.GetDouble(0);
                    beamMoment.EndForceMoment.R2 = mList.GetDouble(1);
                    beamMoment.EndForceMoment.R3 = mList.GetDouble(2);
                    beamMoment.EndForceMoment.M1 = mList.GetDouble(3);
                    beamMoment.EndForceMoment.M2 = mList.GetDouble(4);
                    beamMoment.EndForceMoment.M3 = mList.GetDouble(5);

                    beamMomentCol.Add(beamMoment);
                }
            }
            catch (Exception exx) { }
        }
Exemplo n.º 3
0
        public frmPostProcess(ASTRADoc AstDoc, vdDocument document)
        {
            InitializeComponent();
            astDoc    = new ASTRADoc();
            astDoc    = AstDoc;
            orgASTDoc = new ASTRADoc();
            orgASTDoc = AstDoc;

            doc = document;

            beamMomentCol = new BeamForceMomentCollection();
            beamMoment    = new BeamForceMoment();
            repFileName   = Path.Combine(Path.GetDirectoryName(astDoc.FileName), "ANALYSIS_REP.TXT");

            nDispCol = new NodeDisplacementCollection();
            ndisp    = new NodeDisplacement();
        }
Exemplo n.º 4
0
        public frmPostProcess(ASTRADoc AstDoc, vdDocument mainDoc, vdDocument postProcess1, vdDocument postProcess2, vdDocument postProcess3)
        {
            //InitializeComponent();
            //astDoc = new ASTRADoc();
            //astDoc = AstDoc;
            //orgASTDoc = AstDoc;
            //doc = mainDoc;

            ASTDoc_Load1 = new ASTRADoc(AstDoc.FileName);
            ASTDoc_Load2 = new ASTRADoc(AstDoc.FileName);
            ASTDoc_Load3 = new ASTRADoc(AstDoc.FileName);

            //ASTDoc_Load1 = AstDoc;
            //ASTDoc_Load2 = AstDoc;
            //ASTDoc_Load3 = AstDoc;

            InitializeComponent();
            astDoc    = new ASTRADoc();
            astDoc    = AstDoc;
            orgASTDoc = new ASTRADoc();
            orgASTDoc = AstDoc;

            doc = mainDoc;


            this.mainDoc      = mainDoc;
            this.postProcess1 = postProcess1;
            this.postProcess2 = postProcess2;
            this.postProcess3 = postProcess3;

            beamMomentCol = new BeamForceMomentCollection();
            beamMoment    = new BeamForceMoment();
            repFileName   = Path.Combine(Path.GetDirectoryName(astDoc.FileName), "ANALYSIS_REP.TXT");

            nDispCol = new NodeDisplacementCollection();
            ndisp    = new NodeDisplacement();
        }