Skip to content

Commit 4ace71c

Browse files
authored
Merge pull request #40 from Yuksel-Rudy/fam_ffarm
Inclusion of MoorDyn, floating platform orientations, and general adjustments to OF v.4 - An effort to integrate FAModel to generate FAST.Farm input files.
2 parents 4406c36 + eb096b5 commit 4ace71c

File tree

4 files changed

+244
-70
lines changed

4 files changed

+244
-70
lines changed

openfast_toolbox/fastfarm/AMRWindSimulation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,9 @@ def _checkInputs(self):
176176
# check that level_hr is <=self.max_level
177177

178178
# For convenience, the turbines should not be zero-indexed
179-
if self.wts[0]['name'] != 'T1':
180-
print(f"--- WARNING: Recommended turbine numbering should start at 1. Currently it is zero-indexed.")
179+
if 'name' in self.wts[0]:
180+
if self.wts[0]['name'] != 'T1':
181+
print(f"--- WARNING: Recommended turbine numbering should start at 1. Currently it is zero-indexed.")
181182

182183

183184
# Flags of given/calculated spatial resolution for warning/error printing purposes

0 commit comments

Comments
 (0)