Skip to content

Bug report: planar calculation results use zero yaw angles by default instead of the specified simulation yaw angles #448

@pjireland

Description

@pjireland

Bug description
calculate_horizontal_plane, calculate_cross_plane, and calculate_y_plane use a zero yaw angles if called with yaw_angles=None. A more intuitive behavior to me is to use the existing yaw angles from self.floris.farm.yaw_angles.

To Reproduce

  1. Run any case with non-zero yaw angles.
  2. Call calculate_horiziontal_plane (for example) on the case, and pass the result to visualize_cut_plane.
  3. Observe from the output that the flow corresponds to that of zero yaw angles.

Expected behavior
I would have expected to default to the existing yaw angles from self.floris.farm.yaw_angles instead.

Floris Version
3.1

System Information (please complete the following information):

  • OS: Windows 10
  • Library versions
    • matplotlib: 3.5.2
    • numpy: 1.22.3
    • pytest: 7.1.2
    • scipy: 1.8.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementAn improvement of an existing featurefloris.tools

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions