Skip to content

Commit f559029

Browse files
committed
Merge remote-tracking branch 'origin' into dev
2 parents fa0d603 + ed7d9dd commit f559029

File tree

6 files changed

+485
-252
lines changed

6 files changed

+485
-252
lines changed

openfast_toolbox/fastfarm/AMRWindSimulation.py

+332-176
Large diffs are not rendered by default.

openfast_toolbox/fastfarm/FASTFarmCaseCreation.py

+142-66
Large diffs are not rendered by default.

openfast_toolbox/fastfarm/examples/Ex1_TurbSimInputSetup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
MyDir=os.path.dirname(__file__)
1717

1818
# --- Define parameters necessary for this script
19-
OldTSFile = os.path.join(MyDir, 'SampleFiles/TestCase.inp' ) # Template file used for TurbSim, need to exist
20-
NewTSFile = os.path.join(MyDir, 'SampleFiles/_TestCase_mod.inp') # New file that will be written
19+
OldTSFile = os.path.join(MyDir, 'SampleFiles', 'TestCase.inp' ) # Template file used for TurbSim, need to exist
20+
NewTSFile = os.path.join(MyDir, 'SampleFiles', '_TestCase_mod.inp') # New file that will be written
2121
D = 77.0 # Turbine diameter (m)
2222
HubHt = 78.045 # Hub Height (m)
2323
Vhub = 6 # mean wind speed at hub height (m/s)

openfast_toolbox/fastfarm/examples/Ex2_FFarmInputSetup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@
2020

2121
if __name__ == '__main__':
2222
# --- FAST Farm input files
23-
templateFSTF = os.path.join(MyDir,'SampleFiles/TestCase.fstf') # template file used for FastFarm input file, need to exist
24-
outputFSTF = os.path.join(MyDir,'SampleFiles/_TestCase_mod.fstf')# new file that will be written
23+
templateFSTF = os.path.join(MyDir,'SampleFiles', 'TestCase.fstf') # template file used for FastFarm input file, need to exist
24+
outputFSTF = os.path.join(MyDir,'SampleFiles', '_TestCase_mod.fstf')# new file that will be written
2525
# --- Parameters for TurbSim Extent
2626
D = 77.0 # Turbine diameter (m)
2727
hubHeight = 78.045 # Hub Height (m)
2828
extent_X_high = 1.2 # x-extent of high res box in diamter around turbine location
2929
extent_YZ_high = 1.2 # y-extent of high res box in diamter around turbine location
3030
chord_max = 5 # maximum blade chord (m). Turbine specific.
3131
Cmeander = 1.9 # Meandering constant (-)
32-
BTSFilename = os.path.join(MyDir,'SampleFiles/TestCase.bts') # TurbSim Box to be used in FAST.Farm simulation, need to exist.
32+
BTSFilename = os.path.join(MyDir,'SampleFiles', 'TestCase.bts') # TurbSim Box to be used in FAST.Farm simulation, need to exist.
3333
# --- Layout
3434
xWT = [0.0, 265.] # x positions of turbines
3535
yWT = [0.0, 50.0] # y postitions of turbines

openfast_toolbox/fastfarm/examples/Ex3_FFarmCompleteSetup.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def main():
6060

6161
# ----------- Turbine parameters
6262
# Set the yaw of each turbine for wind dir. One row for each wind direction.
63-
yaw_init = [ [0,0,0,0,0,0,0,0,0,0,0,0] ]
63+
yaw_init = None
6464

6565
# ----------- Low- and high-res boxes parameters
6666
# Should match LES if comparisons are to be made; otherwise, set desired values
@@ -87,7 +87,7 @@ def main():
8787
# ----------- Template files
8888
templatePath = '/full/path/where/template/files/are'
8989

90-
# Put 'unused' to any input that is not applicable to your case
90+
# Put None on any input that is not applicable to your case
9191
# Files should be in templatePath
9292
EDfilename = 'ElastoDyn.T'
9393
SEDfilename = 'SimplifiedElastoDyn.T'
@@ -97,7 +97,7 @@ def main():
9797
ADskfilename = 'AeroDisk.dat'
9898
SubDfilename = 'SubDyn.dat'
9999
IWfilename = 'InflowWind.dat'
100-
BDfilepath = 'unused'
100+
BDfilepath = None
101101
bladefilename = 'Blade.dat'
102102
towerfilename = 'Tower.dat'
103103
turbfilename = 'Model.T'
@@ -125,8 +125,8 @@ def main():
125125
case = FFCaseCreation(path, wts, tmax, zbot, vhub, shear, TIvalue, inflow_deg,
126126
dt_high_les, ds_high_les, extent_high,
127127
dt_low_les, ds_low_les, extent_low,
128-
ffbin, mod_wake, yaw_init,
129-
nSeeds=nSeeds, LESpath=LESpath,
128+
ffbin=ffbin, mod_wake=mod_wake, yaw_init=yaw_init,
129+
nSeeds=nSeeds, LESpath=LESpath, refTurb_rot=refTurb_rot,
130130
verbose=1)
131131

132132
case.setTemplateFilename(templatePath, EDfilename, SEDfilename, HDfilename, SrvDfilename, ADfilename,

openfast_toolbox/io/rosco_discon_file.py

+1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def toString(self):
136136
FMTs['{:<4.4f}']=['WE_FOPoles_v']
137137
FMTs['{:<10.8f}']=['WE_FOPoles']
138138
FMTs['{:<10.3f}']=['PS_BldPitchMin']
139+
FMTs['{:<7.0f}']=['PerfTableSize']
139140
fmtFloat='{:<014.5f}'
140141
for fmt,keys in FMTs.items():
141142
if param in keys:

0 commit comments

Comments
 (0)