示例#1
0
 /// <summary>
 /// This function assigns auto wind loading parameters for Indian IS875-1987.
 /// </summary>
 /// <param name="name">The name of an existing Wind-type load case with an auto wind assignment.</param>
 /// <param name="exposureFrom">The source of the wind exposure.</param>
 /// <param name="directionAngle">The direction angle for the wind load.
 /// This item applies only when <paramref name="exposureFrom" /> = <see cref="eWindExposure.ExtentsOfRigidDiaphragms" />.</param>
 /// <param name="Cpw">The windward coefficient, Cp.
 /// This item applies only when <paramref name="exposureFrom" /> = <see cref="eWindExposure.ExtentsOfRigidDiaphragms" />.</param>
 /// <param name="Cpl">The leeward coefficient, Cp.
 /// This item applies only when <paramref name="exposureFrom" /> = <see cref="eWindExposure.ExtentsOfRigidDiaphragms" />.</param>
 /// <param name="userSpecifiedHeights">True: Top and bottom elevations of the wind load are user specified.
 /// Else, the elevations are determined by the program.</param>
 /// <param name="coordinateTopZ">Global Z-coordinate at the highest level where auto wind loads are applied. [L].</param>
 /// <param name="coordinateBottomZ">Global Z-coordinate at the lowest level where auto wind loads are applied. [L].</param>
 /// <param name="windSpeed">The wind speed in meters per second.</param>
 /// <param name="terrainCategory">The terrain category.</param>
 /// <param name="codeClass">The code class.</param>
 /// <param name="K1">The risk coefficient (k1 factor).</param>
 /// <param name="K3">The topography factor (k3 factor).</param>
 /// <param name="userSpecifiedExposure">True: Wind exposure widths are provided by the user.
 /// Else, wind exposure widths are calculated by the program from the extents of the diaphragms.</param>
 /// <exception cref="CSiException">API_DEFAULT_ERROR_CODE</exception>
 public void SetLoad(string name,
                     eWindExposure exposureFrom,
                     double directionAngle,
                     double Cpw,
                     double Cpl,
                     bool userSpecifiedHeights,
                     double coordinateTopZ,
                     double coordinateBottomZ,
                     double windSpeed,
                     int terrainCategory,
                     eCodeClass codeClass,
                     double K1,
                     double K3,
                     bool userSpecifiedExposure = false)
 {
     _callCode = _sapModel.LoadPatterns.AutoWind.SetIS8751987(name,
                                                              (int)exposureFrom,
                                                              directionAngle,
                                                              Cpw,
                                                              Cpl,
                                                              userSpecifiedHeights,
                                                              coordinateTopZ,
                                                              coordinateBottomZ,
                                                              windSpeed,
                                                              terrainCategory,
                                                              (int)codeClass,
                                                              K1,
                                                              K3,
                                                              userSpecifiedExposure);
     if (throwCurrentApiException(_callCode))
     {
         throw new CSiException(API_DEFAULT_ERROR_CODE);
     }
 }
示例#2
0
 public void SetLoad(string name,
                     eWindExposure exposureFrom,
                     double directionAngle,
                     double Cpw,
                     double Cpl,
                     bool userSpecifiedHeights,
                     double coordinateTopZ,
                     double coordinateBottomZ,
                     double windSpeed,
                     int terrainCategory,
                     eCodeClass codeClass,
                     double K1,
                     double K3,
                     bool userSpecifiedExposure = false)
 {
 }
示例#3
0
 public void GetLoad(string name,
                     ref eWindExposure exposureFrom,
                     ref double directionAngle,
                     ref double Cpw,
                     ref double Cpl,
                     ref bool userSpecifiedHeights,
                     ref double coordinateTopZ,
                     ref double coordinateBottomZ,
                     ref double windSpeed,
                     ref int terrainCategory,
                     ref eCodeClass codeClass,
                     ref double K1,
                     ref double K3,
                     ref bool userSpecifiedExposure)
 {
 }
示例#4
0
        /// <summary>
        /// This function retrieves auto wind loading parameters for Indian IS875-1987.
        /// </summary>
        /// <param name="name">The name of an existing Wind-type load case with an auto wind assignment.</param>
        /// <param name="exposureFrom">The source of the wind exposure.</param>
        /// <param name="directionAngle">The direction angle for the wind load.
        /// This item applies only when <paramref name="exposureFrom" /> = <see cref="eWindExposure.ExtentsOfRigidDiaphragms" />.</param>
        /// <param name="Cpw">The windward coefficient, Cp.
        /// This item applies only when <paramref name="exposureFrom" /> = <see cref="eWindExposure.ExtentsOfRigidDiaphragms" />.</param>
        /// <param name="Cpl">The leeward coefficient, Cp.
        /// This item applies only when <paramref name="exposureFrom" /> = <see cref="eWindExposure.ExtentsOfRigidDiaphragms" />.</param>
        /// <param name="userSpecifiedHeights">True: Top and bottom elevations of the wind load are user specified.
        /// Else, the elevations are determined by the program.</param>
        /// <param name="coordinateTopZ">Global Z-coordinate at the highest level where auto wind loads are applied. [L].</param>
        /// <param name="coordinateBottomZ">Global Z-coordinate at the lowest level where auto wind loads are applied. [L].</param>
        /// <param name="windSpeed">The wind speed in meters per second.</param>
        /// <param name="terrainCategory">The terrain category.</param>
        /// <param name="codeClass">The code class.</param>
        /// <param name="K1">The risk coefficient (k1 factor).</param>
        /// <param name="K3">The topography factor (k3 factor).</param>
        /// <param name="userSpecifiedExposure">True: Wind exposure widths are provided by the user.
        /// Else, wind exposure widths are calculated by the program from the extents of the diaphragms.</param>
        /// <exception cref="CSiException">API_DEFAULT_ERROR_CODE</exception>
        public void GetLoad(string name,
                            ref eWindExposure exposureFrom,
                            ref double directionAngle,
                            ref double Cpw,
                            ref double Cpl,
                            ref bool userSpecifiedHeights,
                            ref double coordinateTopZ,
                            ref double coordinateBottomZ,
                            ref double windSpeed,
                            ref int terrainCategory,
                            ref eCodeClass codeClass,
                            ref double K1,
                            ref double K3,
                            ref bool userSpecifiedExposure)
        {
            int csiExposureFrom = 0;
            int csiCodeClass    = 0;

            _callCode = _sapModel.LoadPatterns.AutoWind.GetIS8751987(name,
                                                                     ref csiExposureFrom,
                                                                     ref directionAngle,
                                                                     ref Cpw,
                                                                     ref Cpl,
                                                                     ref userSpecifiedHeights,
                                                                     ref coordinateTopZ,
                                                                     ref coordinateBottomZ,
                                                                     ref windSpeed,
                                                                     ref terrainCategory,
                                                                     ref csiCodeClass,
                                                                     ref K1,
                                                                     ref K3,
                                                                     ref userSpecifiedExposure);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException(API_DEFAULT_ERROR_CODE);
            }

            exposureFrom = (eWindExposure)csiExposureFrom;
            codeClass    = (eCodeClass)csiCodeClass;
        }