Skip to content

Commit 1298773

Browse files
committed
FF: minor fix on default nSeeds for LES
1 parent 54fbd3a commit 1298773

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

openfast_toolbox/fastfarm/FASTFarmCaseCreation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,8 @@ def _checkInputs(self):
463463
f'in the ADmodel and EDmodel arrays ({np.shape(self.ADmodel)[1]})')
464464

465465
# Check on seed parameters
466+
if self.nSeeds is None and self.inflowType == 'LES':
467+
self.nSeeds = 1
466468
if not isinstance(self.nSeeds,int):
467469
raise ValueError(f'An integer number of seeds should be requested. Got {self.nSeeds}.')
468470
if self.nSeeds > 30:
@@ -1895,7 +1897,7 @@ def TS_high_get_time_series(self):
18951897
wvel = np.roll(bts['u'][2, :, jTurb, kTurb], start_time_step)
18961898

18971899
# Map it to high-res time and dt (both)
1898-
time_hr = np.arange(time[0], time[-1]+self.dt_high, self.dt_high)
1900+
time_hr = np.arange(time[0], self.tmax_low+self.dt_high, self.dt_high)
18991901
uvel_hr = np.interp(time_hr, time, uvel)
19001902
vvel_hr = np.interp(time_hr, time, vvel)
19011903
wvel_hr = np.interp(time_hr, time, wvel)

0 commit comments

Comments
 (0)