//Output position of support and reaction force. Force in [kN] public override object Output(List <KangarooSolver.Particle> p) { Plane pln = p[PIndex[0]].Orientation; Vector3d rf = Vector3d.Multiply(Move[0], Weighting[0]) * 1e-3; //Units [kN] Vector3d rm = Vector3d.Multiply(Torque[0], TorqueWeighting[0]) * 1e-3; //Units [kNm] DataTypes.Support6DOFData supportData = new DataTypes.Support6DOFData(pln, rf, rm); return(supportData); }
/// <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.Support6DOFData supportData = new DataTypes.Support6DOFData(); DA.GetData(0, ref supportData); //Extract properties Plane pln = supportData.Pln; Vector3d reactionForce = supportData.ReactionForce; Vector3d reactionMoment = supportData.ReactionMoment; //Output DA.SetData(0, pln); DA.SetData(1, reactionForce); DA.SetData(2, reactionMoment); }