/// <summary>
        /// This is the method that actually does the work.
        /// </summary>
        /// <param name="DA">The DA object is used to retrieve from inputs and store in outputs.</param>
        protected override void SolveInstance(IGH_DataAccess DA)
        {
            StructureType s     = new StructureType();
            double        t     = 0;
            double        lim0  = 0;
            double        lim1  = 1;
            int           sType = 0;

            if (!DA.GetData(0, ref s))
            {
                return;
            }
            DA.GetData(1, ref t);
            DA.GetData(2, ref lim0);
            DA.GetData(3, ref lim1);
            DA.GetData(4, ref sType);

            Mesh def = s.GenereateDeformedMesh(t);
            Mesh vonM;

            if (sType == 1)
            {
                vonM = s.GenerateStressMeshv2(lim0, lim1);
            }
            else
            {
                vonM = s.GenerateStressMeshv1(lim0, lim1);
            }

            DA.SetData(0, def);
            DA.SetData(1, vonM);
        }