Example #1
0
        private void btnOk_Click(object sender, EventArgs e)
        {
            this.iApp.AppDocument.Analysis.NF = SpFuncs.getInt(txtTotalFrequencies.Text);
            this.iApp.AppDocument.Response.CutOffFrequencies = SpFuncs.getDouble(txtCutOffFrequencies.Text);
            this.iApp.AppDocument.Response.X = SpFuncs.getDouble(txtX.Text);
            this.iApp.AppDocument.Response.Y = SpFuncs.getDouble(txtY.Text);
            this.iApp.AppDocument.Response.Z = SpFuncs.getDouble(txtZ.Text);

            this.iApp.AppDocument.Response.SpectrumPoints = SpectrumPoints;
            this.iApp.AppDocument.Response.ScaleFactor    = ScaleFactor;

            if (rbtnAcceleration.Checked)
            {
                this.iApp.AppDocument.Response.Type             = AstraInterface.DataStructure.CResponse.SpectrumType.Acceleration;
                this.iApp.AppDocument.Response.PeriodsText      = txtAccPeriods.Text;
                this.iApp.AppDocument.Response.AccelerationText = txtAcceleration.Text;
            }
            else if (rbtnDisplacement.Checked)
            {
                this.iApp.AppDocument.Response.Type             = AstraInterface.DataStructure.CResponse.SpectrumType.Displacement;
                this.iApp.AppDocument.Response.PeriodsText      = txtDispPeriods.Text;
                this.iApp.AppDocument.Response.DisplacementText = txtDisplacement.Text;
            }

            this.iApp.AppDocument.Response.IsDefault = false;
            this.Close();
        }
Example #2
0
        public void Save()
        {
            this.iApp.AppDocument.Analysis.NF = TotalFrequencies;
            this.iApp.AppDocument.TimeHistory.THist_1.timeSteps     = TimeSteps;
            this.iApp.AppDocument.TimeHistory.THist_1.printInterval = PrintInterval;
            this.iApp.AppDocument.TimeHistory.THist_1.stepInterval  = StepInterval;
            this.iApp.AppDocument.TimeHistory.THist_1.dampingFactor = DampingFactor;

            this.iApp.AppDocument.TimeHistory.THist_2.groundMotion = cmbGroundMotion.SelectedIndex + 1;
            this.iApp.AppDocument.TimeHistory.THist_3.xDiv         = SpFuncs.getInt(txtXDivision.Text);
            this.iApp.AppDocument.TimeHistory.THist_3.scaleFactor  = SpFuncs.getInt(txtScaleFactor.Text);

            this.iApp.AppDocument.TimeHistory.THist_4.timeValues   = TimeValues;
            this.iApp.AppDocument.TimeHistory.THist_4.timeFunction = TimeFunctions;

            this.iApp.AppDocument.TimeHistory.THist_5.Clear();
            this.iApp.AppDocument.TimeHistory.THist_5.NodalConstraint = chkNodalConstraint.Checked;
            foreach (int ndNo in NodeNumbers)
            {
                CTimeHistory5 th5 = new CTimeHistory5();
                th5.nodeNo = ndNo;
                th5.Tx     = chkTx.Checked;
                th5.Ty     = chkTy.Checked;
                th5.Tz     = chkTz.Checked;
                th5.Rx     = chkRx.Checked;
                th5.Ry     = chkRy.Checked;
                th5.Rz     = chkRz.Checked;
                this.iApp.AppDocument.TimeHistory.THist_5.Add(th5);
            }

            this.iApp.AppDocument.TimeHistory.THist_6.Clear();
            foreach (int mbNo in MemberNumbers)
            {
                CTimeHistory6 th6 = new CTimeHistory6();
                th6.memberNo = mbNo;
                if (rbtnStart.Checked)
                {
                    th6.member = CTimeHistory6.Member.START;
                }
                else
                {
                    th6.member = CTimeHistory6.Member.END;
                }
                this.iApp.AppDocument.TimeHistory.THist_6.Add(th6);
            }

            iApp.AppDocument.TimeHistory.THist_5.NodalConstraint = chkNodalConstraint.Checked;
        }
Example #3
0
 private void btnOK_Click(object sender, EventArgs e)
 {
     iApp.AppDocument.Analysis.NF = SpFuncs.getInt(txtTotalFrequencies.Text);
     this.Close();
 }