From 243b64aeabaf690b1641097c4e3b7652f008a478 Mon Sep 17 00:00:00 2001 From: misi9170 Date: Wed, 6 Nov 2024 12:27:31 -0700 Subject: [PATCH] Add reference_wind_height setting to examples where turbine_type is set. --- .../003_specify_turbine_power_curve.py | 1 + .../001_compare_turbopark_implementations.py | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/examples/examples_turbine/003_specify_turbine_power_curve.py b/examples/examples_turbine/003_specify_turbine_power_curve.py index 1c1b59707..aa4ced8e3 100644 --- a/examples/examples_turbine/003_specify_turbine_power_curve.py +++ b/examples/examples_turbine/003_specify_turbine_power_curve.py @@ -51,6 +51,7 @@ wind_speeds=wind_speeds, turbulence_intensities=turbulence_intensities, turbine_type=[turbine_dict], + reference_wind_height=fmodel.reference_wind_height ) fmodel.run() diff --git a/examples/examples_turbopark/001_compare_turbopark_implementations.py b/examples/examples_turbopark/001_compare_turbopark_implementations.py index b462b3561..14b85f081 100644 --- a/examples/examples_turbopark/001_compare_turbopark_implementations.py +++ b/examples/examples_turbopark/001_compare_turbopark_implementations.py @@ -35,7 +35,10 @@ ### Start by visualizing a single turbine in and its wake with the new model # Load the new TurboPark implementation and switch to constant CT turbine fmodel_new = FlorisModel("../inputs/turboparkgauss_cubature.yaml") -fmodel_new.set(turbine_type=[const_CT_turb]) +fmodel_new.set( + turbine_type=[const_CT_turb], + reference_wind_height=fmodel_new.reference_wind_height +) fmodel_new.run() u0 = fmodel_new.wind_speeds[0] @@ -94,7 +97,10 @@ ### Look at the wake profile at a single downstream distance for a range of wind directions # Load the original TurboPark implementation and switch to constant CT turbine fmodel_orig = FlorisModel("../inputs/turbopark_cubature.yaml") -fmodel_orig.set(turbine_type=[const_CT_turb]) +fmodel_orig.set( + turbine_type=[const_CT_turb], + reference_wind_height=fmodel_orig.reference_wind_height +) # Set up and solve flows wd_array = np.arange(225,315,0.1)