@@ -181,10 +181,8 @@ def __init__(self):
181181 self .fst_vt ['ElastoDynTower' ] = {}
182182 self .fst_vt ['InflowWind' ] = {}
183183 self .fst_vt ['AeroDyn' ] = {}
184- self .fst_vt ['AeroDyn14' ] = {}
185184 self .fst_vt ['AeroDisk' ] = {}
186185 self .fst_vt ['AeroDynBlade' ] = {}
187- self .fst_vt ['AeroDynTower' ] = {}
188186 self .fst_vt ['AeroDynPolar' ] = {}
189187 self .fst_vt ['ServoDyn' ] = {}
190188 self .fst_vt ['DISCON_in' ] = {}
@@ -290,7 +288,7 @@ def read_MainInput(self):
290288 self .fst_vt ['Fst' ]['CompInflow' ] = int (f .readline ().split ()[0 ])
291289 self .fst_vt ['Fst' ]['CompAero' ] = int (f .readline ().split ()[0 ])
292290 self .fst_vt ['Fst' ]['CompServo' ] = int (f .readline ().split ()[0 ])
293- self .fst_vt ['Fst' ]['CompSeaState ' ] = int (f .readline ().split ()[0 ])
291+ self .fst_vt ['Fst' ]['CompSeaSt ' ] = int (f .readline ().split ()[0 ])
294292 self .fst_vt ['Fst' ]['CompHydro' ] = int (f .readline ().split ()[0 ])
295293 self .fst_vt ['Fst' ]['CompSub' ] = int (f .readline ().split ()[0 ])
296294 self .fst_vt ['Fst' ]['CompMooring' ] = int (f .readline ().split ()[0 ])
@@ -318,7 +316,7 @@ def read_MainInput(self):
318316 self .fst_vt ['Fst' ]['InflowFile' ] = quoted_read (f .readline ().split ()[0 ])
319317 self .fst_vt ['Fst' ]['AeroFile' ] = quoted_read (f .readline ().split ()[0 ])
320318 self .fst_vt ['Fst' ]['ServoFile' ] = quoted_read (f .readline ().split ()[0 ])
321- self .fst_vt ['Fst' ]['SeaStateFile ' ] = quoted_read (f .readline ().split ()[0 ])
319+ self .fst_vt ['Fst' ]['SeaStFile ' ] = quoted_read (f .readline ().split ()[0 ])
322320 self .fst_vt ['Fst' ]['HydroFile' ] = quoted_read (f .readline ().split ()[0 ])
323321 self .fst_vt ['Fst' ]['SubFile' ] = quoted_read (f .readline ().split ()[0 ])
324322 self .fst_vt ['Fst' ]['MooringFile' ] = quoted_read (f .readline ().split ()[0 ])
@@ -940,11 +938,11 @@ def read_InflowWind(self):
940938 f .readline ()
941939 self .fst_vt ['InflowWind' ]['HWindSpeed' ] = float_read (f .readline ().split ()[0 ])
942940 self .fst_vt ['InflowWind' ]['RefHt' ] = float_read (f .readline ().split ()[0 ])
943- self .fst_vt ['InflowWind' ]['PLexp ' ] = float_read (f .readline ().split ()[0 ])
941+ self .fst_vt ['InflowWind' ]['PLExp ' ] = float_read (f .readline ().split ()[0 ])
944942
945943 # Parameters for Uniform wind file [used only for WindType = 2] (uniform_wind_params)
946944 f .readline ()
947- self .fst_vt ['InflowWind' ]['Filename_Uni ' ] = os .path .join (os .path .split (inflow_file )[0 ], quoted_read (f .readline ().split ()[0 ]))
945+ self .fst_vt ['InflowWind' ]['FileName_Uni ' ] = os .path .join (os .path .split (inflow_file )[0 ], quoted_read (f .readline ().split ()[0 ]))
948946 self .fst_vt ['InflowWind' ]['RefHt_Uni' ] = float_read (f .readline ().split ()[0 ])
949947 self .fst_vt ['InflowWind' ]['RefLength' ] = float_read (f .readline ().split ()[0 ])
950948
@@ -953,7 +951,7 @@ def read_InflowWind(self):
953951 self .fst_vt ['InflowWind' ]['FileName_BTS' ] = os .path .join (os .path .split (inflow_file )[0 ], quoted_read (f .readline ().split ()[0 ]))
954952 # Parameters for Binary Bladed-style Full-Field files [used only for WindType = 4] (bladed_wind_params)
955953 f .readline ()
956- self .fst_vt ['InflowWind' ]['FilenameRoot ' ] = os .path .join (os .path .split (inflow_file )[0 ], quoted_read (f .readline ().split ()[0 ]))
954+ self .fst_vt ['InflowWind' ]['FileNameRoot ' ] = os .path .join (os .path .split (inflow_file )[0 ], quoted_read (f .readline ().split ()[0 ]))
957955 self .fst_vt ['InflowWind' ]['TowerFile' ] = bool_read (f .readline ().split ()[0 ])
958956
959957 # Parameters for HAWC-format binary files [Only used with WindType = 5] (hawc_wind_params)
@@ -1250,6 +1248,9 @@ def read_AeroDynBlade(self):
12501248 self .fst_vt ['AeroDynBlade' ]['BlTwist' ] = [None ]* self .fst_vt ['AeroDynBlade' ]['NumBlNds' ]
12511249 self .fst_vt ['AeroDynBlade' ]['BlChord' ] = [None ]* self .fst_vt ['AeroDynBlade' ]['NumBlNds' ]
12521250 self .fst_vt ['AeroDynBlade' ]['BlAFID' ] = [None ]* self .fst_vt ['AeroDynBlade' ]['NumBlNds' ]
1251+ self .fst_vt ['AeroDynBlade' ]['BlCb' ] = [None ]* self .fst_vt ['AeroDynBlade' ]['NumBlNds' ]
1252+ self .fst_vt ['AeroDynBlade' ]['BlCenBn' ] = [None ]* self .fst_vt ['AeroDynBlade' ]['NumBlNds' ]
1253+ self .fst_vt ['AeroDynBlade' ]['BlCenBt' ] = [None ]* self .fst_vt ['AeroDynBlade' ]['NumBlNds' ]
12531254 for i in range (self .fst_vt ['AeroDynBlade' ]['NumBlNds' ]):
12541255 data = [float (val ) for val in f .readline ().split ()]
12551256 self .fst_vt ['AeroDynBlade' ]['BlSpn' ][i ] = data [0 ]
@@ -1259,6 +1260,15 @@ def read_AeroDynBlade(self):
12591260 self .fst_vt ['AeroDynBlade' ]['BlTwist' ][i ] = data [4 ]
12601261 self .fst_vt ['AeroDynBlade' ]['BlChord' ][i ] = data [5 ]
12611262 self .fst_vt ['AeroDynBlade' ]['BlAFID' ][i ] = data [6 ]
1263+ if len (data ) == 9 :
1264+ self .fst_vt ['AeroDynBlade' ]['BlCb' ][i ] = data [7 ]
1265+ self .fst_vt ['AeroDynBlade' ]['BlCenBn' ][i ] = data [8 ]
1266+ self .fst_vt ['AeroDynBlade' ]['BlCenBt' ][i ] = data [9 ]
1267+ else :
1268+ self .fst_vt ['AeroDynBlade' ]['BlCb' ][i ] = 0.0
1269+ self .fst_vt ['AeroDynBlade' ]['BlCenBn' ][i ] = 0.0
1270+ self .fst_vt ['AeroDynBlade' ]['BlCenBt' ][i ] = 0.0
1271+
12621272
12631273 f .close ()
12641274
@@ -1289,7 +1299,7 @@ def read_AeroDynPolar(self):
12891299
12901300 for tab in range (polar ['NumTabs' ]): # For multiple tables
12911301 polar ['Re' ] = float_read (readline_filterComments (f ).split ()[0 ]) * 1.e+6
1292- polar ['Ctrl ' ] = int_read (readline_filterComments (f ).split ()[0 ])
1302+ polar ['UserProp ' ] = int_read (readline_filterComments (f ).split ()[0 ])
12931303 polar ['InclUAdata' ] = bool_read (readline_filterComments (f ).split ()[0 ])
12941304
12951305 # Unsteady Aero Data
@@ -3161,7 +3171,7 @@ def execute(self):
31613171 hd_file = os .path .normpath (os .path .join (self .FAST_directory , self .fst_vt ['Fst' ]['HydroFile' ]))
31623172 if os .path .isfile (hd_file ):
31633173 self .read_HydroDyn (hd_file )
3164- ss_file = os .path .normpath (os .path .join (self .FAST_directory , self .fst_vt ['Fst' ]['SeaStateFile ' ]))
3174+ ss_file = os .path .normpath (os .path .join (self .FAST_directory , self .fst_vt ['Fst' ]['SeaStFile ' ]))
31653175 if os .path .isfile (ss_file ):
31663176 self .read_SeaState (ss_file )
31673177 sd_file = os .path .normpath (os .path .join (self .FAST_directory , self .fst_vt ['Fst' ]['SubFile' ]))
0 commit comments