The formulas I use to determine the cumulative size of the bigger arrays in TurbSim is:
[code]EffSimLen = FASTsimulationTime + GridWidth/MeanWindSpeed (the last term will not be used in a future version of TurbSim)
NumTimeSteps = EffSimLen/TimeStep + 1
SpectralGridElements = (NYGridsNZGrids)^2
SpectralMatrixElements= 3NZgridsNumTimeSteps
ComponentElements= SpectralMatrixElementsNYGrids
TotalElements = SpectralGridElements + SpectralMatrixElements + 2*(ComponentElements + NZGrids) + NYGrids
BytesRequired = 4*TotalElements (if using single precision, the TurbSim default)
GBytesRequired = BytesRequired/(1024)^3[/code]
If you are running a sweep of wind speeds and want to determine the worst case, the lowest wind speed you run will produce the most time steps and consume the most memory when running TurbSim. When we modify TurbSim and InflowWind (used by FAST) to cycle through 10-minute data, the wind speed won’t matter as we will no longer add extra data at the beginning and end of the file to accommodate analysis nodes upwind and downwind of the tower.
The size of the turbulence array read into InflowWind is:
FFArrayElements = 3*NZGrids*NYGrids*NumTimeSteps
The formula for bytes and GBs is left as an exercise for the student.