Esempio n. 1
0
        public override StationGeometry GetStationGeometry()
        {
            SoilTunnelGeometry stg = null;

            if (Tunnel != null)
            {
                stg = new SoilTunnelGeometry(
                    soilWidth: (float)Tunnel.Radius * 6.0f,
                    soilHeight: SoilLayers.Select(r => r.Top - r.Bottom).ToArray(),
                    overlyingSoilHeight: MethodProperty.OverLayingSoilHeight,
                    tunnelRadius: (float)Tunnel.Radius, tunnelSegmentNum: Tunnel.SegmentNum);
            }
            return(stg);
        }
Esempio n. 2
0
        public override StationGeometry GetStationGeometry()
        {
            SoilFrameGeometry sfg = null;

            if (Frame != null)
            {
                sfg = new SoilFrameGeometry(
                    soilWidth: Frame.SpanWidths.Sum() * 3.0f,
                    soilHeight: SoilLayers.Select(r => r.Top - r.Bottom).ToArray(),
                    overlyingSoilHeight: MethodProperty.OverLayingSoilHeight,
                    stationFloors: Frame.LayerHeights.Select(r => (float)r).Reverse().ToArray(),
                    stationSegments: Frame.SpanWidths.Select(r => (float)r).ToArray());
            }

            // ssg = new SoilFrameGeometry(60, new float[] { 3, 6, 5, 4, 6, 6 }, 3, new float[] { 3, 3, 3 }, new float[] { 6, 6 });
            return(sfg);
        }