Skip to content

Commit 0e7d26e

Browse files
committed
Add error message to openfast_io's FAST_Reader.py to throw an error if NRotors > 1 saying that multi-rotor support isn't implemented yet
1 parent f0d2114 commit 0e7d26e

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

modules/awae/src/AWAE.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,8 +1809,8 @@ subroutine AWAE_UpdateStates(n, u, p, x, xd, z, OtherState, m, errStat, errMsg)
18091809

18101810
! Calculate wind velocities at grid locations from InflowWind
18111811
call IfW_FlowField_GetVelAcc(p%IfW(0)%FlowField, 1, t + i_hl*p%DT_high, &
1812-
m%u_IfW_High(nt)%PositionXYZ, &
1813-
m%y_IfW_High(nt)%VelocityUVW, AccUVW, errStat2, errMsg2)
1812+
m%u_IfW_High(nt)%PositionXYZ, &
1813+
m%y_IfW_High(nt)%VelocityUVW, AccUVW, errStat2, errMsg2)
18141814
if (Failed()) return
18151815

18161816
! Transfer velocities to high resolution grid

openfast_io/openfast_io/FAST_reader.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,10 @@ def read_MainInput(self):
361361
self.fst_vt['Fst']['MHK'] = int(f.readline().split()[0])
362362
self.fst_vt['Fst']['MirrorRotor'] = read_array(f, self.fst_vt['Fst']['NRotors'], array_type=bool)
363363

364+
if self.fst_vt['Fst']['NRotors'] > 1:
365+
raise ValueError('openfast_io does not currently support multi-rotor turbines (NRotors > 1),' +
366+
'this feature will be added in a future release')
367+
364368
# Environmental conditions
365369
f.readline()
366370
self.fst_vt['Fst']['Gravity'] = float_read(f.readline().split()[0])

0 commit comments

Comments
 (0)