Skip to content

Commit

Permalink
Merge pull request #176 from mayankchetan/fix/ifw-outlist
Browse files Browse the repository at this point in the history
aeroelasticse can read in InflowWind Outlist
  • Loading branch information
gbarter authored May 4, 2022
2 parents 727db61 + 2e3bd3c commit 5cab2e0
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions weis/aeroelasticse/FAST_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,17 +703,21 @@ def read_InflowWind(self):
f.readline()
self.fst_vt['InflowWind']['SumPrint'] = bool_read(f.readline().split()[0])

# NO INFLOW WIND OUTPUT PARAMETERS YET DEFINED IN FAST
# f.readline()
# data = f.readline()
# while data.split()[0] != 'END':
# channels = data.split('"')
# channel_list = channels[1].split(',')
# for i in range(len(channel_list)):
# channel_list[i] = channel_list[i].replace(' ','')
# if channel_list[i] in self.fst_vt.outlist.inflow_wind_vt.__dict__.keys():
# self.fst_vt.outlist.inflow_wind_vt.__dict__[channel_list[i]] = True
# data = f.readline()
# InflowWind Outlist
f.readline()
data = f.readline()
while data.split()[0] != 'END':
if data.find('"')>=0:
channels = data.split('"')
channel_list = channels[1].split(',')
else:
row_string = data.split(',')
if len(row_string)==1:
channel_list = row_string[0].split('\n')[0]
else:
channel_list = row_string
self.set_outlist(self.fst_vt['outlist']['InflowWind'], channel_list)
data = f.readline()

f.close()

Expand Down

0 comments on commit 5cab2e0

Please sign in to comment.