예제 #1
0
 /// <summary>
 /// Set the Releases of a frame
 /// </summary>
 /// <param name="Frame">Frame to set up releases of</param>
 /// <param name="Release">Use the Release node</param>
 /// <returns>The frame with the new releases</returns>
 public static Frame SetReleases(Frame Frame, Release Release)
 {
     // Create a new Frame using the properties of the input frame
     Frame newFrm = Frame.FromLine(Frame.BaseCurve, Frame.SecProp, Frame.Just, Frame.Angle);
     // Set Label
     newFrm.Label = String.Format("dyn_{0}", Frame.ID.ToString());
     // Add any loads the frame already has
     newFrm.Loads = Frame.Loads;
     // Set the release in the node
     newFrm.Releases = Release;
     return newFrm;
 }
예제 #2
0
 public static Dictionary<string, object> Decompose(Release release)
 {
     // Return outputs
     return new Dictionary<string, object>
     {
         {"iP", release.u1i},
         {"jP", release.u1j},
         {"iV2", release.u2i},
         {"jV2", release.u2j},
         {"iV3", release.u3i},
         {"jV3", release.u3j},
         {"iT", release.r1i},
         {"jT", release.r1j},
         {"iM2", release.r2i},
         {"jM2", release.r2j},
         {"iM3", release.r3i},
         {"jM3", release.r3j}
     };
 }