Skip to content

How to add turbine labels to a farm layout visualization in FLORIS? #703

Answered by paulf81
JackDotI asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Jack,

I put together an example mixing together some code from the examples 02_visualizations.py, 23_visualize_layout.py:

import matplotlib.pyplot as plt

from floris.tools import FlorisInterface
from floris.tools.layout_functions import visualize_layout

import floris.tools.visualization as wakeviz


# Declare a FLORIS interface
fi = FlorisInterface("inputs/gch.yaml")
fi.reinitialize(layout_x=[0, 100, 500, 1000, 1200,500], layout_y=[0, 800, 150, 500, 0,500])
fi.calculate_wake()

# Give turbines specific names
turbine_names = ['T01', 'T02','T03','S01','X01', 'X02']

# Plot the flow
fig, ax = plt.subplots(figsize=(8,8))
horizontal_plane = fi.calculate_horizontal_plane(
    x_resolution=…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rafmudaf
Comment options

@JackDotI
Comment options

@paulf81
Comment options

Answer selected by JackDotI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants