Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions pyFAST/fastfarm/TurbSimCaseCreation.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ def __init__(self, D, HubHt, Vhub, TI, PLexp, x, y, z=None, zbot=1.0, cmax=5.0,
self.domainSize(zbot=zbot, manual_mode=manual_mode)
# Determine origin
# self.originLoc()
self.ymin = None
self.ymax = None

def Turb(self, D, HubHt, cmax=5.0, fmax=5.0):
"""
Expand Down Expand Up @@ -227,8 +229,10 @@ def plotSetup(self, fig=None, ax=None):
# low-res box
# ax.plot([xmin,xmax,xmax,xmin,xmin],
# [ymin,ymin,ymax,ymax,ymin],'--k',lw=2,label='Low')
ax.axhline(self.ymin, ls='--', c='k', lw=2, label='Low')
ax.axhline(self.ymax, ls='--', c='k', lw=2)
if self.ymin is not None:
ax.axhline(self.ymin, ls='--', c='k', lw=2, label='Low')
if self.ymax is not None:
ax.axhline(self.ymax, ls='--', c='k', lw=2)

ax.legend(bbox_to_anchor=(1.05,1.015),frameon=False)
ax.set_xlabel("x-location [m]")
Expand Down
2 changes: 1 addition & 1 deletion pyFAST/fastfarm/examples/Ex1_TurbSimInputSetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# --- Use TurbSim Case Creation class to write a new TurbSim file
Case = TSCaseCreation(D, HubHt, Vhub, TI, PLExp, x=xlocs, y=ylocs, zbot=zbot, cmax=cmax, fmax=fmax, Cmeander=Cmeander)
# Rewrite TurbSim Input File
Case.writeTSFile(OldTSFile, NewTSFile, tmax=5)
Case.writeTSFile(OldTSFile, NewTSFile, tmax=5, turb=1)
print('NOTE: run TurbSim to generate this new BTS file.')

# --- Visualize low extent and turbine positions
Expand Down
24 changes: 12 additions & 12 deletions pyFAST/fastfarm/examples/Ex3_FFarmCompleteSetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ def main():
D = 240
zhub = 150
wts = {
0 :{'x':0.0, 'y':0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander}},
1 :{'x':1852.0, 'y':0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander}},
2 :{'x':3704.0, 'y':0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander}},
3 :{'x':5556.0, 'y':0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander}},
4 :{'x':7408.0, 'y':0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander}},
5 :{'x':1852.0, 'y':1852.0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander}},
6 :{'x':3704.0, 'y':1852.0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander}},
7 :{'x':5556.0, 'y':1852.0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander}},
8 :{'x':7408.0, 'y':1852.0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander}},
9 :{'x':3704.0, 'y':3704.0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander}},
10:{'x':5556.0, 'y':3704.0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander}},
11:{'x':7408.0, 'y':3704.0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander}},
0 :{'x':0.0, 'y':0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander},
1 :{'x':1852.0, 'y':0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander},
2 :{'x':3704.0, 'y':0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander},
3 :{'x':5556.0, 'y':0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander},
4 :{'x':7408.0, 'y':0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander},
5 :{'x':1852.0, 'y':1852.0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander},
6 :{'x':3704.0, 'y':1852.0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander},
7 :{'x':5556.0, 'y':1852.0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander},
8 :{'x':7408.0, 'y':1852.0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander},
9 :{'x':3704.0, 'y':3704.0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander},
10:{'x':5556.0, 'y':3704.0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander},
11:{'x':7408.0, 'y':3704.0, 'z':0.0, 'D':D, 'zhub':zhub, 'cmax':cmax, 'fmax':fmax, 'Cmeander':Cmeander},
}
refTurb_rot = 0

Expand Down