Skip to content

Changing between simulation models #399

Discussion options

You must be logged in to vote

Hi Marcus,

It seems that @rafmudaf already answered you! I was actually in the process of writing up a small demo script for you. I'll add it here nonetheless, in case you find it useful.

import copy
import matplotlib.pyplot as plt

from floris.tools import FlorisInterface
from floris.tools.visualization import visualize_cut_plane


if __name__ == "__main__":
    # Instantiate FLORIS using the GCH model and a 2-turbine wind farm
    fi = FlorisInterface("inputs/gch.yaml")
    fi.reinitialize(layout=[[0.0, 700.0], [0.0, 0.0]], wind_directions=[90.0])

    # Plot horizontal slice of GCH model
    fig, ax = plt.subplots(nrows=3, sharex=True, sharey=True)
    horizontal_plane_gch = fi.calcula…

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@MarcusBinder
Comment options

Comment options

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

@MarcusBinder
Comment options

Answer selected by MarcusBinder
Comment options

You must be logged in to vote
1 reply
@Bartdoekemeijer
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
v3 Label to denote focus on v3
5 participants