-
Notifications
You must be signed in to change notification settings - Fork 182
Open
Labels
documentationideas-listIdeas that would be nice to do but aren't scheduled. Lower priority than back-log.Ideas that would be nice to do but aren't scheduled. Lower priority than back-log.new-featureA new featureA new feature
Description
y cut plane does not seem to follow the wind direction
The documentation shows how to visualize a y cut plane. I've tried changing the wind direction, but 90 deg produces the same result as 270, while I was expecting the wake to go from right to left. The horizontal plane looks fine instead.
Furthermore, the documentation of calculate_y_plane was copy-pasted from calculate_horizontal_plane. You should fix crossstream_dist.
How to reproduce
I copy here the documentation and just change the wind direction.
import matplotlib.pyplot as plt
from floris import FlorisModel
from floris.flow_visualization import visualize_cut_plane
fmodel = FlorisModel("../inputs/gch.yaml")
# Set a 3 turbine layout with wind direction along the row
fmodel.set(
layout_x=[0, 500, 1000],
layout_y=[0, 0, 0],
wind_directions=[90],
wind_speeds=[8],
turbulence_intensities=[0.06],
)
# Collect the yplane
y_plane = fmodel.calculate_y_plane(x_resolution=200, z_resolution=100, crossstream_dist=0.0)
# Plot the flow field
fig, ax = plt.subplots(figsize=(10, 4))
visualize_cut_plane(
y_plane, ax=ax, min_speed=3, max_speed=9, label_contours=True, title="Y Cut Plane"
)
plt.show()Relevant output
Floris version
v4.4.2
System Information
Metadata
Metadata
Assignees
Labels
documentationideas-listIdeas that would be nice to do but aren't scheduled. Lower priority than back-log.Ideas that would be nice to do but aren't scheduled. Lower priority than back-log.new-featureA new featureA new feature