From 3fa1f2d9a9d02d5866a917b4bc3685ef9c77ecf4 Mon Sep 17 00:00:00 2001 From: misi9170 Date: Tue, 24 Oct 2023 16:46:43 -0600 Subject: [PATCH] First update of defaults and minor subsequent improvements to examples. --- examples/26_empirical_gauss_velocity_deficit_parameters.py | 2 +- examples/27_empirical_gauss_deflection_parameters.py | 2 ++ examples/29_floating_vs_fixedbottom_farm.py | 4 ++-- examples/inputs/emgauss.yaml | 6 +++--- examples/inputs_floating/emgauss_fixed.yaml | 6 +++--- examples/inputs_floating/emgauss_floating.yaml | 6 +++--- examples/inputs_floating/emgauss_floating_fixedtilt15.yaml | 6 +++--- examples/inputs_floating/emgauss_floating_fixedtilt5.yaml | 6 +++--- 8 files changed, 20 insertions(+), 18 deletions(-) diff --git a/examples/26_empirical_gauss_velocity_deficit_parameters.py b/examples/26_empirical_gauss_velocity_deficit_parameters.py index b44e84d8f..b2787059c 100644 --- a/examples/26_empirical_gauss_velocity_deficit_parameters.py +++ b/examples/26_empirical_gauss_velocity_deficit_parameters.py @@ -150,7 +150,7 @@ def generate_wake_visualization(fi: FlorisInterface, title=None): # Increase the base recovery rate fi_dict_mod = copy.deepcopy(fi_dict) fi_dict_mod['wake']['wake_velocity_parameters']['empirical_gauss']\ - ['wake_expansion_rates'] = [0.02, 0.01] + ['wake_expansion_rates'] = [0.03, 0.015] fi = FlorisInterface(fi_dict_mod) fi.reinitialize( wind_speeds=[8.0], diff --git a/examples/27_empirical_gauss_deflection_parameters.py b/examples/27_empirical_gauss_deflection_parameters.py index 2cc2537fc..5e453a7ad 100644 --- a/examples/27_empirical_gauss_deflection_parameters.py +++ b/examples/27_empirical_gauss_deflection_parameters.py @@ -39,6 +39,8 @@ yaw_angles = np.array(first_three_yaw_angles + [0.]*(num_in_row-3))\ [None, None, :] +print("Turbine yaw angles (degrees): ", yaw_angles[0,0,:]) + # Define function for visualizing wakes def generate_wake_visualization(fi, title=None): # Using the FlorisInterface functions, get 2D slices. diff --git a/examples/29_floating_vs_fixedbottom_farm.py b/examples/29_floating_vs_fixedbottom_farm.py index d364f6351..d7c3dc29d 100644 --- a/examples/29_floating_vs_fixedbottom_farm.py +++ b/examples/29_floating_vs_fixedbottom_farm.py @@ -73,8 +73,8 @@ y.flatten(), c=power_difference.flatten()/1000, cmap="PuOr", - vmin=-100, - vmax=100, + vmin=-30, + vmax=30, s=200, ) ax.set_xlabel("x coordinate [m]") diff --git a/examples/inputs/emgauss.yaml b/examples/inputs/emgauss.yaml index dab5c7940..f984f421d 100644 --- a/examples/inputs/emgauss.yaml +++ b/examples/inputs/emgauss.yaml @@ -65,7 +65,7 @@ wake: empirical_gauss: horizontal_deflection_gain_D: 3.0 vertical_deflection_gain_D: -1 - deflection_rate: 15 + deflection_rate: 30 mixing_gain_deflection: 0.0 yaw_added_mixing_gain: 0.0 @@ -88,8 +88,8 @@ wake: we: 0.05 empirical_gauss: wake_expansion_rates: - - 0.01 - - 0.005 + - 0.023 + - 0.008 breakpoints_D: - 10 sigma_0_D: 0.28 diff --git a/examples/inputs_floating/emgauss_fixed.yaml b/examples/inputs_floating/emgauss_fixed.yaml index f7faac03c..9d0b23960 100644 --- a/examples/inputs_floating/emgauss_fixed.yaml +++ b/examples/inputs_floating/emgauss_fixed.yaml @@ -65,7 +65,7 @@ wake: empirical_gauss: horizontal_deflection_gain_D: 3.0 vertical_deflection_gain_D: -1 - deflection_rate: 15 + deflection_rate: 30 mixing_gain_deflection: 0.0 yaw_added_mixing_gain: 0.0 @@ -88,8 +88,8 @@ wake: we: 0.05 empirical_gauss: wake_expansion_rates: - - 0.01 - - 0.005 + - 0.023 + - 0.008 breakpoints_D: - 10 sigma_0_D: 0.28 diff --git a/examples/inputs_floating/emgauss_floating.yaml b/examples/inputs_floating/emgauss_floating.yaml index d74304131..1fd66d217 100644 --- a/examples/inputs_floating/emgauss_floating.yaml +++ b/examples/inputs_floating/emgauss_floating.yaml @@ -65,7 +65,7 @@ wake: empirical_gauss: horizontal_deflection_gain_D: 3.0 vertical_deflection_gain_D: -1 - deflection_rate: 15 + deflection_rate: 30 mixing_gain_deflection: 0.0 yaw_added_mixing_gain: 0.0 @@ -88,8 +88,8 @@ wake: we: 0.05 empirical_gauss: wake_expansion_rates: - - 0.01 - - 0.005 + - 0.023 + - 0.008 breakpoints_D: - 10 sigma_0_D: 0.28 diff --git a/examples/inputs_floating/emgauss_floating_fixedtilt15.yaml b/examples/inputs_floating/emgauss_floating_fixedtilt15.yaml index 1bfae562d..dfb4e3155 100644 --- a/examples/inputs_floating/emgauss_floating_fixedtilt15.yaml +++ b/examples/inputs_floating/emgauss_floating_fixedtilt15.yaml @@ -61,7 +61,7 @@ wake: empirical_gauss: horizontal_deflection_gain_D: 3.0 vertical_deflection_gain_D: -1 - deflection_rate: 15 + deflection_rate: 30 mixing_gain_deflection: 0.0 yaw_added_mixing_gain: 0.0 @@ -84,8 +84,8 @@ wake: we: 0.05 empirical_gauss: wake_expansion_rates: - - 0.01 - - 0.005 + - 0.023 + - 0.008 breakpoints_D: - 10 sigma_0_D: 0.28 diff --git a/examples/inputs_floating/emgauss_floating_fixedtilt5.yaml b/examples/inputs_floating/emgauss_floating_fixedtilt5.yaml index 04cf30518..67be5dfd3 100644 --- a/examples/inputs_floating/emgauss_floating_fixedtilt5.yaml +++ b/examples/inputs_floating/emgauss_floating_fixedtilt5.yaml @@ -61,7 +61,7 @@ wake: empirical_gauss: horizontal_deflection_gain_D: 3.0 vertical_deflection_gain_D: -1 - deflection_rate: 15 + deflection_rate: 30 mixing_gain_deflection: 0.0 yaw_added_mixing_gain: 0.0 @@ -84,8 +84,8 @@ wake: we: 0.05 empirical_gauss: wake_expansion_rates: - - 0.01 - - 0.005 + - 0.023 + - 0.008 breakpoints_D: - 10 sigma_0_D: 0.28