Пример #1
0
 /// <summary>
 /// This function defines an AASHTO2006 response spectrum function.
 /// </summary>
 /// <param name="name">The name of an AASHTO2006 response spectrum function. <para />
 /// If this is an existing function, that function is modified; otherwise, a new function is added.</param>
 /// <param name="A">The acceleration coefficient, A.</param>
 /// <param name="soilProfileType">The soil profile type.</param>
 /// <param name="dampingRatio">The damping ratio for the function, 0 &lt;= <paramref name="dampingRatio" /> &lt; 1.</param>
 /// <exception cref="CSiException">API_DEFAULT_ERROR_CODE</exception>
 public void SetFunction(string name,
                         double A,
                         eSiteClass_AASHTO_2006 soilProfileType,
                         double dampingRatio)
 {
     dampingRatio = limitDampingRatio(dampingRatio);
     _callCode    = _sapModel.Func.FuncRS.SetAASHTO2006(name, A, (int)soilProfileType, dampingRatio);
     if (throwCurrentApiException(_callCode))
     {
         throw new CSiException(API_DEFAULT_ERROR_CODE);
     }
 }
Пример #2
0
        /// <summary>
        /// This function retrieves the definition of an AASHTO2006 response spectrum function.
        /// </summary>
        /// <param name="name">The name of an AASHTO2006 response spectrum function.</param>
        /// <param name="A">The acceleration coefficient, A.</param>
        /// <param name="soilProfileType">The soil profile type.</param>
        /// <param name="dampingRatio">The damping ratio for the function, 0 &lt;= <paramref name="dampingRatio" /> &lt; 1.</param>
        /// <exception cref="CSiException">API_DEFAULT_ERROR_CODE</exception>
        public void GetFunction(string name,
                                ref double A,
                                ref eSiteClass_AASHTO_2006 soilProfileType,
                                ref double dampingRatio)
        {
            int csiSoilProfileType = 0;

            _callCode = _sapModel.Func.FuncRS.GetAASHTO2006(name, ref A, ref csiSoilProfileType, ref dampingRatio);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException(API_DEFAULT_ERROR_CODE);
            }

            soilProfileType = (eSiteClass_AASHTO_2006)csiSoilProfileType;
        }
Пример #3
0
 public void SetFunction(string name,
                         double A,
                         eSiteClass_AASHTO_2006 soilProfileType,
                         double dampingRatio)
 {
 }