Defining several wind farms within the same project #36
|
Hi, If I have several wind farms in an area and I want to simulate and optimize only one of them but taking the rest of the farms in the surroundings also into account (wakes, etc). For instance:
I've tried the following: mbook = foxes.ModelBook()
states = foxes.input.states.SingleStateStates(ws=9.0, wd=270.0, ti=0.12, rho=1.225)
farm1 = foxes.WindFarm()
foxes.input.farm_layout.add_row(
farm=farm1,
xy_base=[0.0, 0.0],
xy_step=[800.0, 0.0],
n_turbines=5,
turbine_models=["NREL5MW"],
verbosity=0,
)
farm2 = foxes.WindFarm()
foxes.input.farm_layout.add_row(
farm=farm2,
xy_base=[0.0, 1000.0],
xy_step=[800.0, 0.0],
n_turbines=5,
turbine_models=["DTU10MW"],
verbosity=0,
)
farms = [farm1, farm2]
algo = foxes.algorithms.Downwind(
mbook, farms, states, verbosity=0, wake_models=["Jensen_linear_k007"]
)But obviosly this throwns an error as What would be the best strategy ATM? To define a Thanks. KR, |
Replies: 1 comment 1 reply
|
You can just add to the same WindFarm object, so replace In foxes, there is only one wind farm object - but it can contain as many turbines as you wish. They will all be indexed subsequently, but you can add turbine labels for identification. For optimization, use the I hope this helps? |
You can just add to the same WindFarm object, so replace
farm2andfarm1both byfarm, and use that also inDownwind. Then it should work.In foxes, there is only one wind farm object - but it can contain as many turbines as you wish. They will all be indexed subsequently, but you can add turbine labels for identification.
For optimization, use the
sel_turbinesparameter of the optimization problem class, this selects a subset of turbines for optimization.I hope this helps?