Skip to content

Commit

Permalink
Bugfix: using the wrong rotor diameters when plotting with the CC mod…
Browse files Browse the repository at this point in the history
…el (#424)

* fixed bug using the wrong rotor diameters when plotting CC model

* visualizations example had incorrect value for crossstream plot
  • Loading branch information
bayc authored Apr 19, 2022
1 parent a23241b commit fa9f63e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/02_visualizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

# Using the FlorisInterface functions, get 2D slices.
horizontal_plane = fi.calculate_horizontal_plane(x_resolution=200, y_resolution=100, height=90.0)
y_plane = fi.calculate_y_plane(x_resolution=200, z_resolution=100, crossstream_dist=630.0)
y_plane = fi.calculate_y_plane(x_resolution=200, z_resolution=100, crossstream_dist=0.0)
cross_plane = fi.calculate_cross_plane(y_resolution=100, z_resolution=100, downstream_dist=630.0)


Expand Down
2 changes: 1 addition & 1 deletion floris/simulation/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def full_flow_cc_solver(farm: Farm, flow_field: FlowField, flow_field_grid: Flow

turbine_grid = TurbineGrid(
turbine_coordinates=turbine_grid_farm.coordinates,
reference_turbine_diameter=turbine_grid_farm.rotor_diameters_sorted,
reference_turbine_diameter=turbine_grid_farm.rotor_diameters,
wind_directions=turbine_grid_flow_field.wind_directions,
wind_speeds=turbine_grid_flow_field.wind_speeds,
grid_resolution=3,
Expand Down

0 comments on commit fa9f63e

Please sign in to comment.