Esempio n. 1
0
 /// <summary>
 /// Sets the function steady state user.
 /// </summary>
 /// <param name="model">The model.</param>
 /// <param name="table">The table.</param>
 internal static void SetFUNCTION_STEADY_STATE_USER(Model model, List <Dictionary <string, string> > table)
 {
     Functions.FunctionType = eFunctionTypes.SteadyStateUser;
     foreach (Dictionary <string, string> tableRow in table)
     {
         SteadyStateFunction function = (SteadyStateFunction)model.Loading.Functions.FillItem(tableRow["Name"]);
         FrequencyValuePoint point    = new FrequencyValuePoint(
             Adaptor.toDouble(tableRow["Frequency"]),
             Adaptor.toDouble(tableRow["Value"])
             );
         function.FunctionCurve.Add(point);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Sets the function power spectral density user.
 /// </summary>
 /// <param name="model">The model.</param>
 /// <param name="table">The table.</param>
 internal static void SetFUNCTION_POWER_SPECTRAL_DENSITY_USER(Model model, List <Dictionary <string, string> > table)
 {
     Functions.FunctionType = eFunctionTypes.PowerSpectralDensityUser;
     foreach (Dictionary <string, string> tableRow in table)
     {
         PowerSpectralDensityFunction function = (PowerSpectralDensityFunction)model.Loading.Functions.FillItem(tableRow["Name"]);
         FrequencyValuePoint          point    = new FrequencyValuePoint(
             Adaptor.toDouble(tableRow["Frequency"]),
             Adaptor.toDouble(tableRow["Value"])
             );
         function.FunctionCurve.Add(point);
     }
 }