Ejemplo n.º 1
0
 public void SetFunction(string name,
                         double g,
                         eSiteClass_Italian_3274 seismicIntensity,
                         double q,
                         eLevel_Italian_3274 level,
                         double dampingRatio)
 {
 }
Ejemplo n.º 2
0
 public void GetFunction(string name,
                         ref double g,
                         ref eSiteClass_Italian_3274 seismicIntensity,
                         ref double q,
                         ref eLevel_Italian_3274 level,
                         ref double dampingRatio)
 {
 }
Ejemplo n.º 3
0
 /// <summary>
 /// This function defines an Italian 3274 response spectrum function.
 /// </summary>
 /// <param name="name">The name of an Italian 3274 response spectrum function. <para />
 /// If this is an existing function, that function is modified; otherwise, a new function is added.</param>
 /// <param name="g">The peak ground acceleration.</param>
 /// <param name="seismicIntensity">The seismic intensity.</param>
 /// <param name="q">The structure factor.</param>
 /// <param name="level">The spectral level, direction and building type.</param>
 /// <param name="dampingRatio">The damping ratio for the function, 0 &lt;= <paramref name="dampingRatio" /> &lt; 1.</param>
 /// <exception cref="CSiException"></exception>
 public void SetFunction(string name,
                         double g,
                         eSiteClass_Italian_3274 seismicIntensity,
                         double q,
                         eLevel_Italian_3274 level,
                         double dampingRatio)
 {
     dampingRatio = limitDampingRatio(dampingRatio);
     _callCode    = _sapModel.Func.FuncRS.SetItalian3274(name, g, (int)seismicIntensity, q, (double)level, dampingRatio);
     if (throwCurrentApiException(_callCode))
     {
         throw new CSiException();
     }
 }
Ejemplo n.º 4
0
        /// <summary>
        /// This function retrieves the definition of an Italian 3274 response spectrum function4.
        /// </summary>
        /// <param name="name">The name of an Italian 3274 response spectrum function.</param>
        /// <param name="g">The peak ground acceleration.</param>
        /// <param name="seismicIntensity">The seismic intensity.</param>
        /// <param name="q">The structure factor.</param>
        /// <param name="level">The spectral level, direction and building type.</param>
        /// <param name="dampingRatio">The damping ratio for the function, 0 &lt;= <paramref name="dampingRatio" /> &lt; 1.</param>
        /// <exception cref="CSiException"></exception>
        public void GetFunction(string name,
                                ref double g,
                                ref eSiteClass_Italian_3274 seismicIntensity,
                                ref double q,
                                ref eLevel_Italian_3274 level,
                                ref double dampingRatio)
        {
            int    csiSeismicIntensity = 0;
            double csiLevel            = 0;

            _callCode = _sapModel.Func.FuncRS.GetItalian3274(name, ref g, ref csiSeismicIntensity, ref q, ref csiLevel, ref dampingRatio);
            if (throwCurrentApiException(_callCode))
            {
                throw new CSiException();
            }

            seismicIntensity = (eSiteClass_Italian_3274)csiSeismicIntensity;
            level            = (eLevel_Italian_3274)csiLevel;
        }