Exemple #1
0
 private void tbContourLevels_TextChanged(object sender, EventArgs e)
 {
     if (!_mIgnoreXyzChangeEvent)
     {
         var contourLevels = ArrayFunctions.ExtractFloatArrayFromDelimitedString(tbContourLevels.Text, ',');
         QraStateContainer.Instance.Parameters["FlameWrapper.contour_levels"] =
             new NdConvertibleValue(StockConverters.UnitlessConverter, UnitlessUnit.Unitless, contourLevels,
                                    0.0);
     }
 }
Exemple #2
0
 private void ExtractAndSaveXyzValues()
 {
     if (!_mIgnoreXyzChangeEvent)
     {
         var xValues =
             ArrayFunctions.ExtractFloatArrayFromDelimitedString(tbRadiativeHeatFluxPointsX.Text, ',');
         var yValues =
             ArrayFunctions.ExtractFloatArrayFromDelimitedString(tbRadiativeHeatFluxPointsY.Text, ',');
         var zValues =
             ArrayFunctions.ExtractFloatArrayFromDelimitedString(tbRadiativeHeatFluxPointsZ.Text, ',');
         if (xValues.Length == yValues.Length && yValues.Length == zValues.Length && zValues.Length > 0)
         {
             QraStateContainer.SetValue("FlameWrapper.radiative_heat_flux_point:x",
                                        new NdConvertibleValue(StockConverters.DistanceConverter, DistanceUnit.Meter, xValues));
             QraStateContainer.SetValue("FlameWrapper.radiative_heat_flux_point:y",
                                        new NdConvertibleValue(StockConverters.DistanceConverter, DistanceUnit.Meter, yValues));
             QraStateContainer.SetValue("FlameWrapper.radiative_heat_flux_point:z",
                                        new NdConvertibleValue(StockConverters.DistanceConverter, DistanceUnit.Meter, zValues));
         }
     }
 }