Skip to content

Commit

Permalink
First update of defaults and minor subsequent improvements to examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
misi9170 committed Oct 24, 2023
1 parent 2dccbbd commit 3fa1f2d
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion examples/26_empirical_gauss_velocity_deficit_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
2 changes: 2 additions & 0 deletions examples/27_empirical_gauss_deflection_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions examples/29_floating_vs_fixedbottom_farm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]")
Expand Down
6 changes: 3 additions & 3 deletions examples/inputs/emgauss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions examples/inputs_floating/emgauss_fixed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions examples/inputs_floating/emgauss_floating.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions examples/inputs_floating/emgauss_floating_fixedtilt15.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions examples/inputs_floating/emgauss_floating_fixedtilt5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 3fa1f2d

Please sign in to comment.