Пример #1
0
        /// <summary>
        /// Gets a rectangular section.
        /// </summary>
        /// <param name="h">The height of section.</param>
        /// <param name="w">The width of section.</param>
        /// <returns></returns>
        /// <exception cref="System.NotImplementedException"></exception>
        public static PolygonYz GetRectangularSection(double h, double w)
        {
            var buf = new PolygonYz(
                new PointYZ(-w / 2, -h / 2),
                new PointYZ(-w / 2, h / 2),
                new PointYZ(w / 2, h / 2),
                new PointYZ(w / 2, -h / 2),
                new PointYZ(-w / 2, -h / 2));

            return(buf);
        }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FrameElement2Node"/> class.
 /// </summary>
 /// <param name="info">The information.</param>
 /// <param name="context">The context.</param>
 /// <exception cref="System.NotImplementedException"></exception>
 protected FrameElement2Node(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     _a        = info.GetDouble("_a");
     _ay       = info.GetDouble("_ay");
     _az       = info.GetDouble("_az");
     _iy       = info.GetDouble("_iy");
     _iz       = info.GetDouble("_iz");
     _j        = info.GetDouble("_j");
     _geometry = (PolygonYz)info.GetValue("_geometry", typeof(PolygonYz));
     _useOverridedProperties   = info.GetBoolean("_useOverridedProperties");
     _considerShearDeformation = info.GetBoolean("_considerShearDeformation");
     _hingedAtStart            = info.GetBoolean("_hingedAtStart");
     _hingedAtEnd = info.GetBoolean("_hingedAtEnd");
     _webRotation = info.GetDouble("_webRotation");
     _massDensity = info.GetDouble("_massDensity");
 }
Пример #3
0
        /// <summary>
        /// Gets an I section with defined parameters.
        /// </summary>
        /// <param name="w">The overall width of section.</param>
        /// <param name="h">The overall height of section.</param>
        /// <param name="tf">The thickness of flanges of section.</param>
        /// <param name="tw">The thickness of web of section.</param>
        /// <returns></returns>
        /// <exception cref="System.NotImplementedException"></exception>
        public static PolygonYz GetISetion(double w, double h, double tf, double tw)
        {
            var buf = new PolygonYz(
                new PointYZ(-w / 2, -h / 2),
                new PointYZ(-w / 2, -h / 2 + tf),
                new PointYZ(-tw / 2, -h / 2 + tf),
                new PointYZ(-tw / 2, h / 2 - tf),
                new PointYZ(-w / 2, h / 2 - tf),
                new PointYZ(-w / 2, h / 2),

                new PointYZ(w / 2, h / 2),
                new PointYZ(w / 2, h / 2 - tf),
                new PointYZ(tw / 2, h / 2 - tf),
                new PointYZ(tw / 2, -h / 2 + tf),
                new PointYZ(w / 2, -h / 2 + tf),
                new PointYZ(w / 2, -h / 2),

                new PointYZ(-w / 2, -h / 2)
                );


            return(buf);
        }