Esempio n. 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.BeamData beamData = new DataTypes.BeamData();
            DA.GetData(0, ref beamData);

            this.Message = "WIP";

            //Output
            DA.SetData(0, beamData.P0);
            DA.SetData(1, beamData.P1);
            DA.SetData(2, beamData.N);
            DA.SetData(3, beamData.Vy);
            DA.SetData(4, beamData.Vz);
            DA.SetData(5, beamData.Mx);
            DA.SetData(6, beamData.My0);
            DA.SetData(7, beamData.Mz0);
            DA.SetData(8, beamData.My1);
            DA.SetData(9, beamData.Mz1);
        }
Esempio n. 2
0
 //Output moment in [kNm] and normal force/shear in [kN]
 public override object Output(List <KangarooSolver.Particle> p)
 {
     DataTypes.BeamData beamData = new DataTypes.BeamData(P0R, P1R, Math.Round(N * 1e-3, 3), Math.Round(VY * 1e-3, 3), Math.Round(VZ * 1e-3, 3), Math.Round(MX * 1e-3, 3), Math.Round(MY0 * 1e-3, 3), Math.Round(MZ0 * 1e-3, 3), Math.Round(MY1 * 1e-3, 3), Math.Round(MZ1 * 1e-3, 3));
     return(beamData);
 }