Ejemplo n.º 1
0
 public void SetFunction(string name,
                         eSeismicCoefficient_NCHRP_2007 seismicCoefficientOption,
                         double latitude,
                         double longitude,
                         string zipCode,
                         double Ss,
                         double S1,
                         eSiteClass_NCHRP_2007 siteClass,
                         double Fa,
                         double Fv,
                         double dampingRatio)
 {
 }
Ejemplo n.º 2
0
 public void GetFunction(string name,
                         ref eSeismicCoefficient_NCHRP_2007 seismicCoefficientOption,
                         ref double latitude,
                         ref double longitude,
                         ref string zipCode,
                         ref double Ss,
                         ref double S1,
                         ref eSiteClass_NCHRP_2007 siteClass,
                         ref double Fa,
                         ref double Fv,
                         ref double dampingRatio)
 {
 }
Ejemplo n.º 3
0
 /// <summary>
 /// This function defines a NCHRP 2007 response spectrum function.
 /// </summary>
 /// <param name="name">The name of an NCHRP 2007 response spectrum function. <para />
 /// If this is an existing function, that function is modified; otherwise, a new function is added.</param>
 /// <param name="seismicCoefficientOption">The seismic coefficient option.</param>
 /// <param name="latitude">The latitude for which the seismic coefficients are obtained. <para />
 /// These items are used only when <paramref name="seismicCoefficientOption" /> = <see cref="eSeismicCoefficient_NCHRP_2007.SsAndS1FromUSGSLatLong" />.</param>
 /// <param name="longitude">The longitude for which the seismic coefficients are obtained. <para />
 /// These items are used only when <paramref name="seismicCoefficientOption" /> = <see cref="eSeismicCoefficient_NCHRP_2007.SsAndS1FromUSGSLatLong" />.</param>
 /// <param name="zipCode">The zip code for which the seismic coefficients are obtained. <para />
 /// This item is used only when <paramref name="seismicCoefficientOption" /> = <see cref="eSeismicCoefficient_NCHRP_2007.SsAndS1FromUSGSZipCode" />.</param>
 /// <param name="Ss">The design spectral acceleration at short periods, Ss.<para />
 /// This item is used only when <paramref name="seismicCoefficientOption" /> = <see cref="eSeismicCoefficient_NCHRP_2007.SsAndS1UserDefined" />.</param>
 /// <param name="S1">The design spectral acceleration at a one second period, S1.<para />
 /// This item is used only when <paramref name="seismicCoefficientOption" /> = <see cref="eSeismicCoefficient_NCHRP_2007.SsAndS1UserDefined" />.</param>
 /// <param name="siteClass">The site class.</param>
 /// <param name="Fa">The site coefficients Fa. <para />
 /// These items are used only when <paramref name="siteClass" /> = <see cref="eSiteClass_NCHRP_2007.F" />.</param>
 /// <param name="Fv">The site coefficients Fv.  <para />
 /// These items are used only when <paramref name="siteClass" /> = <see cref="eSiteClass_NCHRP_2007.F" />.</param>
 /// <param name="dampingRatio">The damping ratio for the function, 0 &lt;= <paramref name="dampingRatio" /> &lt; 1.</param>
 /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
 public void SetFunction(string name,
                         eSeismicCoefficient_NCHRP_2007 seismicCoefficientOption,
                         double latitude,
                         double longitude,
                         string zipCode,
                         double Ss,
                         double S1,
                         eSiteClass_NCHRP_2007 siteClass,
                         double Fa,
                         double Fv,
                         double dampingRatio)
 {
     dampingRatio = limitDampingRatio(dampingRatio);
     _callCode    = _sapModel.Func.FuncRS.SetNCHRP2007(name, (int)seismicCoefficientOption, latitude, longitude, zipCode, Ss, S1, (int)siteClass, Fa, Fv, dampingRatio);
     if (throwCurrentApiException(_callCode))
     {
         throw new CSiException(API_DEFAULT_ERROR_CODE);
     }
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Returns the definition of a NCHRP 2007 response spectrum function.
        /// </summary>
        /// <param name="name">The name of an NCHRP 2007 response spectrum function.</param>
        /// <param name="seismicCoefficientOption">The seismic coefficient option.</param>
        /// <param name="latitude">The latitude for which the seismic coefficients are obtained. <para />
        /// These items are used only when <paramref name="seismicCoefficientOption" /> = <see cref="eSeismicCoefficient_NCHRP_2007.SsAndS1FromUSGSLatLong" />.</param>
        /// <param name="longitude">The longitude for which the seismic coefficients are obtained. <para />
        /// These items are used only when <paramref name="seismicCoefficientOption" /> = <see cref="eSeismicCoefficient_NCHRP_2007.SsAndS1FromUSGSLatLong" />.</param>
        /// <param name="zipCode">The zip code for which the seismic coefficients are obtained. <para />
        /// This item is used only when <paramref name="seismicCoefficientOption" /> = <see cref="eSeismicCoefficient_NCHRP_2007.SsAndS1FromUSGSZipCode" />.</param>
        /// <param name="Ss">The design spectral acceleration at short periods, Ss.<para />
        /// This item is used only when <paramref name="seismicCoefficientOption" /> = <see cref="eSeismicCoefficient_NCHRP_2007.SsAndS1UserDefined" />.</param>
        /// <param name="S1">The design spectral acceleration at a one second period, S1.<para />
        /// This item is used only when <paramref name="seismicCoefficientOption" /> = <see cref="eSeismicCoefficient_NCHRP_2007.SsAndS1UserDefined" />.</param>
        /// <param name="siteClass">The site class.</param>
        /// <param name="Fa">The site coefficients Fa. <para />
        /// These items are used only when <paramref name="siteClass" /> = <see cref="eSiteClass_NCHRP_2007.F" />.</param>
        /// <param name="Fv">The site coefficients Fv.  <para />
        /// These items are used only when <paramref name="siteClass" /> = <see cref="eSiteClass_NCHRP_2007.F" />.</param>
        /// <param name="dampingRatio">The damping ratio for the function, 0 &lt;= <paramref name="dampingRatio" /> &lt; 1.</param>
        /// <exception cref="CSiException"><see cref="CSiApiBase.API_DEFAULT_ERROR_CODE" /></exception>
        public void GetFunction(string name,
                                ref eSeismicCoefficient_NCHRP_2007 seismicCoefficientOption,
                                ref double latitude,
                                ref double longitude,
                                ref string zipCode,
                                ref double Ss,
                                ref double S1,
                                ref eSiteClass_NCHRP_2007 siteClass,
                                ref double Fa,
                                ref double Fv,
                                ref double dampingRatio)
        {
            int csiSeismicCoefficientOption = 0;
            int csiSiteClass = 0;

            _callCode = _sapModel.Func.FuncRS.GetNCHRP2007(name, ref csiSeismicCoefficientOption, ref latitude, ref longitude, ref zipCode, ref Ss, ref S1, ref csiSiteClass, ref Fa, ref Fv, ref dampingRatio);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException(API_DEFAULT_ERROR_CODE);
            }

            seismicCoefficientOption = (eSeismicCoefficient_NCHRP_2007)csiSeismicCoefficientOption;
            siteClass = (eSiteClass_NCHRP_2007)csiSiteClass;
        }