Skip to content

Commit

Permalink
Separate load_from_ccblade
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Sep 5, 2019
1 parent 2a05556 commit d5c4f9c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion WTC_toolbox/turbine.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,17 @@ def load_from_fast(self, FAST_InputFile,FAST_directory,drivetrain_inertia, FAST_
rho = fast.fst_vt['AeroDyn15']['AirDens']
mu = fast.fst_vt['AeroDyn15']['KinVisc']

# Store values needed by controller
# Store values needed by controller
self.Ng = fast.fst_vt['ElastoDyn']['GBRatio']
self.rho = rho
self.RotorRad = TipRad

# Calculate rated rotor speed for now by scaling from NREL 5MW
self.RRspeed = (63. / TipRad) * 12.1 * rpmRadSec

self.load_from_ccblade(self,fast)

def load_from_ccblade(self,fast):
# Create CC-Blade Rotor
r = np.array(fast.fst_vt['AeroDynBlade']['BlSpn'])
theta = np.array(fast.fst_vt['AeroDynBlade']['BlTwist'])
Expand Down

0 comments on commit d5c4f9c

Please sign in to comment.