예제 #1
0
        /// <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)
        {
            //Input
            DataTypes.PointLoadData loadData = new DataTypes.PointLoadData();
            DA.GetData(0, ref loadData);

            //Extract properties
            Point3d  pt    = loadData.Location;
            Vector3d force = loadData.Load;

            //Output
            DA.SetData(0, pt);
            DA.SetData(1, force);
        }
예제 #2
0
 //Output updated position of node where the load acts. Load in [kN]
 public override object Output(List <KangarooSolver.Particle> p)
 {
     //Create load data object to store output information
     DataTypes.PointLoadData loadData = new DataTypes.PointLoadData(p[PIndex[0]].Position, Move[0] * Weighting[0] * 1e-3);
     return(loadData);
 }