Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Oct 19, 2019
1 parent 39ed01a commit 1331a48
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions WTC_toolbox/turbine.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,6 @@ def __init__(self):
# Init the cc-blade rotor
self.cc_rotor = None



# Interp function versions
self.cp_interp = None
self.ct_interp = None
self.cq_interp = None

# Allow print out of class
def __str__(self):

Expand All @@ -78,7 +71,7 @@ def load(self, filename):
self.J,self.rho,self.RotorRad, self.Ng,self.RRspeed,self.v_min,self.v_rated,self.v_max,self.cc_rotor,self.cp_interp,self.ct_interp,self.cq_interp = pickle.load(open(filename,'rb'))


def load_from_fast(self, FAST_InputFile,FAST_directory,drivetrain_inertia, FAST_ver='OpenFAST',dev_branch=True,rot_source=None, txt_filename=None):
def load_from_fast(self, FAST_InputFile,FAST_directory,rotor_inertia, FAST_ver='OpenFAST',dev_branch=True,rot_source=None, txt_filename=None):
"""
Load the parameter files directly from a FAST input deck
Expand Down Expand Up @@ -218,6 +211,8 @@ def load_from_ccblade(self,fast):
self.Cp_table = Cp
self.Ct_table = Ct
self.Cq_table = Cq


def load_from_txt(self,fast,txt_filename):
'''
Load rotor performance data from a *.txt file.
Expand Down

0 comments on commit 1331a48

Please sign in to comment.