protected override void SolveInstance(IGH_DataAccess DA)
        {
            bool ghost = false;

            if (!DA.GetData(0, ref ghost))
            {
                // pass
            }

            //
            FemDesign.Calculate.Stage obj = FemDesign.Calculate.Stage.Define(ghost);

            // return
            DA.SetData(0, obj);
        }
Exemplo n.º 2
0
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            FemDesign.Calculate.Stage stage = FemDesign.Calculate.Stage.Default();
            if (!DA.GetData(0, ref stage))
            {
                // pass
            }


            FemDesign.Calculate.Comb comb = FemDesign.Calculate.Comb.GetDefault();
            if (!DA.GetData(1, ref comb))
            {
                // pass
            }

            FemDesign.Calculate.Freq freq = FemDesign.Calculate.Freq.Default();
            if (!DA.GetData(2, ref freq))
            {
                // pass
            }

            FemDesign.Calculate.Footfall footfall = FemDesign.Calculate.Footfall.Default();
            if (!DA.GetData(3, ref footfall))
            {
                // pass
            }

            bool calcCase = false;

            if (!DA.GetData(4, ref calcCase))
            {
                // pass
            }


            bool calcCstage = false;

            if (!DA.GetData(5, ref calcCstage))
            {
                // pass
            }

            bool calcImpf = false;

            if (!DA.GetData(6, ref calcImpf))
            {
                // pass
            }

            bool calcComb = false;

            if (!DA.GetData(7, ref calcComb))
            {
                // pass
            }

            bool calcGMax = false;

            if (!DA.GetData(8, ref calcGMax))
            {
                // pass
            }

            bool calcStab = false;

            if (!DA.GetData(9, ref calcStab))
            {
                // pass
            }

            bool calcFreq = false;

            if (!DA.GetData(10, ref calcFreq))
            {
                // pass
            }

            bool calcSeis = false;

            if (!DA.GetData(11, ref calcSeis))
            {
                // pass
            }

            bool calcDesign = false;

            if (!DA.GetData(12, ref calcDesign))
            {
                // pass
            }

            bool calcFootfall = false;

            if (!DA.GetData(13, ref calcFootfall))
            {
                // pass
            }

            bool elemFine = false;

            if (!DA.GetData(14, ref elemFine))
            {
                // pass
            }

            bool diaphragm = false;

            if (!DA.GetData(15, ref diaphragm))
            {
                // pass
            }

            bool peakSmoothing = false;

            if (!DA.GetData(16, ref peakSmoothing))
            {
                // pass
            }

            if (stage == null || comb == null || freq == null)
            {
                // pass
            }

            //
            FemDesign.Calculate.Analysis obj = new FemDesign.Calculate.Analysis(stage, comb, freq, footfall, calcCase, calcCstage, calcImpf, calcComb, calcGMax, calcStab, calcFreq, calcSeis, calcDesign, calcFootfall, elemFine, diaphragm, peakSmoothing);

            // return
            DA.SetData(0, obj);
        }