/// <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.SupportData supportData = new DataTypes.SupportData(); DA.GetData(0, ref supportData); //Extract properties Point3d pt = supportData.Location; Vector3d reactionForce = supportData.Reaction; //Output DA.SetData(0, pt); DA.SetData(1, reactionForce); }
//Output position of support and reaction force. Force in [kN] public override object Output(List <KangarooSolver.Particle> p) { //Create support data object to store output information DataTypes.SupportData supportData = new DataTypes.SupportData(p[PIndex[0]].Position, Move[0] * Weighting[0] * 1e-3); return(supportData); }