Skip to content
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
313 changes: 265 additions & 48 deletions openfast_toolbox/fastfarm/AMRWindSimulation.py

Large diffs are not rendered by default.

307 changes: 232 additions & 75 deletions openfast_toolbox/fastfarm/FASTFarmCaseCreation.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

def main(test=False):

FFfilepath = os.path.join(scriptDir, '../../../data/IEA15MW/FF.fstf')
FFfilepath = os.path.join(scriptDir, '../../../data/IEA15MW/v4/FF.fstf')


# --- 0.2 Read and Modify an existing FAST.Farm file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def main(test=False):

# ----------- Template files
# --- Option 1
templateFSTF = os.path.join(scriptDir, '../../../data/IEA15MW/FF.fstf')
templateFSTF = os.path.join(scriptDir, '../../../data/IEA15MW/v4/FF.fstf')
templateFiles = {'libdisconfilepath' : libdiscon}
# --- Option 2
#templatePath = '/full/path/where/template/files/are'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def main(test=False):
zbot = 1 # Bottom of your domain
mod_wake = 2 # Wake model. 1: Polar, 2: Curled, 3: Cartesian
# ----------- Inflow parameters
inflowType = 'LES'
inflowType = 'LES_VTK'
inflowPath = '/full/path/to/LES/case/.../LESboxes'

# ----------- Desired sweeps
Expand All @@ -88,7 +88,7 @@ def main(test=False):

# ----------- Template files
# --- Option 1
templateFSTF = os.path.join(scriptDir, '../../../data/IEA15MW/FF.fstf')
templateFSTF = os.path.join(scriptDir, '../../../data/IEA15MW/v4/FF.fstf')
templateFiles = {'libdisconfilepath' : libdiscon}
# --- Option 2
#templatePath = '/full/path/where/template/files/are'
Expand Down
2 changes: 2 additions & 0 deletions openfast_toolbox/io/fast_input_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ def insertComment(self, i, comment='', error=False):
try:
self.data.insert(i, d)
except:
print(f'Failed at {self.filename}')
import pdb; pdb.set_trace()

def insertKeyVal(self, i, key, value, description='', error=False):
Expand Down Expand Up @@ -846,6 +847,7 @@ def _read(self, IComment=None, verbose=False):
try:
d['value'], d['tabColumnNames'], d['tabUnits'] = parseFASTNumTable(self.filename,lines[i:i+nTabLines+nHeaders+nOffset],nTabLines,i, nHeaders, tableType=tab_type, nOffset=nOffset, varNumLines=d['tabDimVar'])
except:
print(f'Failed at {self.filename}')
import pdb; pdb.set_trace()
d['descr'] = '' #
i += nTabLines+1-nOffset
Expand Down
Loading