From 762f4899041a511fe5d8530564d2337100b1b05e Mon Sep 17 00:00:00 2001 From: janinefreeman Date: Wed, 3 Apr 2024 11:33:45 -0600 Subject: [PATCH] modified where coefficient of thrust is initialized --- shared/lib_windwakemodel.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared/lib_windwakemodel.h b/shared/lib_windwakemodel.h index eeb459bd1..215bc3ba6 100644 --- a/shared/lib_windwakemodel.h +++ b/shared/lib_windwakemodel.h @@ -53,7 +53,7 @@ class windTurbine powerCurveRPM; // vector that stores the optional coefficient of thrust curve input // set to a default value of length 1 to mean that it's not assigned, and check for that length before using it - std::vector ctCurve = { 0. }; + std::vector ctCurve; double cutInSpeed; double previousAirDensity; public: @@ -71,6 +71,7 @@ class windTurbine hubHeight = -999; rotorDiameter = -999; previousAirDensity = physics::AIR_DENSITY_SEA_LEVEL; + ctCurve = { 0.0 }; } bool setPowerCurve(std::vector windSpeeds, std::vector powerOutput); bool setCtCurve(std::vector thrustCoeffCurve);