# API wind spectrum

**URL:** <https://forums.nlr.gov/t/api-wind-spectrum/1673>\
**Category:** Inflow Turbulence\
**Created:** [August 7, 2017, 3:49pm UTC](https://forums.nlr.gov/t/api-wind-spectrum/1673 "2017-08-07T15:49:03Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Mhanis.Kamaruddin](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@Mhanis.Kamaruddin](https://forums.nlr.gov/u/Mhanis.Kamaruddin)\
**Post date:** [December 4, 2019, 11:17am UTC](https://forums.nlr.gov/t/api-wind-spectrum/1673/12 "2019-12-04T11:17:46Z")

</div>

Dear Dr. Jason and Dr. Bonie,

Based on my previous posting “[url][FAST: blade flexibility troubleshooting](http://forums.nlr.gov/t/fast-blade-flexibility-troubleshooting/80/1)]”, I’m trying to generate API wind spectrum (NPD spectrum) to simulate the dynamic wind only case for OC4 DeepCwind Semi-Submersible FOWT by using TurbSim v2.00.07a-bjj.

The wind input is following:

1. Mean wind speed = 19.6m/s
2. Hub height = 90 m

As per my understanding, the API (NPD) spectrum results from the TurbSim should provide the standard deviation of 1.94m/s, a maximum wind speed of 27.4m/s, and a minimum wind speed of 12.3m/s (correct me if I was wrong).

However, I received a warning that indicates an error in Cholesky factorization, which in the TurbSim User’s Guide mentioned that algorithm is to sped up the code and provide memory reduction. Even though I already follows some of the recommendation step based on previous posting, but still the same error is pop-up. May I know on which parameter should be modify, in order the code can run smoothly?

Refer the whole coding file below for your review:

---------TurbSim v2.00.\* Input File------------------------  
Example input file for TurbSim.  
---------Runtime Options-----------------------------------  
False Echo - Echo input data to .ech (flag)  
1342858 RandSeed1 - First random seed (-2147483648 to 2147483647)  
“Ranlux” RandSeed2 - Second random seed (-2147483648 to 2147483647) for intrinsic pRNG, or an alternative pRNG: “RanLux” or “RNSNLW”  
False WrBHHTP - Output hub-height turbulence parameters in binary form? (Generates RootName.bin)  
False WrFHHTP - Output hub-height turbulence parameters in formatted form? (Generates RootName.dat)  
False WrADHH - Output hub-height time-series data in AeroDyn form? (Generates RootName.hh)  
False WrADFF - Output full-field time-series data in TurbSim/AeroDyn form? (Generates RootName.bts)  
True WrBLFF - Output full-field time-series data in BLADED/AeroDyn form? (Generates RootName.wnd)  
False WrADTWR - Output tower time-series data? (Generates RootName.twr)  
False WrFMTFF - Output full-field time-series data in formatted (readable) form? (Generates RootName.u, RootName.v, RootName.w)  
False WrACT - Output coherent turbulence time steps in AeroDyn form? (Generates RootName.cts)  
True Clockwise - Clockwise rotation looking downwind? (used only for full-field binary files - not necessary for AeroDyn)  
0 ScaleIEC - Scale IEC turbulence models to exact target standard deviation? [0=no additional scaling; 1=use hub scale uniformly; 2=use individual scales]

--------Turbine/Model Specifications-----------------------  
31 NumGrid\_Z - Vertical grid-point matrix dimension  
31 NumGrid\_Y - Horizontal grid-point matrix dimension  
0.05 TimeStep - Time step [seconds]  
3600 AnalysisTime - Length of analysis time series [seconds] (program will add time if necessary: AnalysisTime = MAX(AnalysisTime, UsableTime+GridWidth/MeanHHWS) )  
“ALL” UsableTime - Usable length of output time series [seconds] (program will add GridWidth/MeanHHWS seconds unless UsableTime is “ALL”)  
90 HubHt - Hub height [m] (should be \> 0.5_GridHeight)  
145.00 GridHeight - Grid height [m]  
145.00 GridWidth - Grid width [m] (should be \>= 2_(RotorRadius+ShaftLength))  
0 VFlowAng - Vertical mean flow (uptilt) angle [degrees]  
0 HFlowAng - Horizontal mean flow (skew) angle [degrees]

--------Meteorological Boundary Conditions-------------------  
“API” TurbModel - Turbulence model (“IECKAI”,“IECVKM”,“GP\_LLJ”,“NWTCUP”,“SMOOTH”,“WF\_UPW”,“WF\_07D”,“WF\_14D”,“TIDAL”,“API”,“USRINP”,“TIMESR”, or “NONE”)  
“unused” UserFile - Name of the file that contains inputs for user-defined spectra or time series inputs (used only for “USRINP” and “TIMESR” models)  
“1-Ed3” IECstandard - Number of IEC 61400-x standard (x=1,2, or 3 with optional 61400-1 edition number (i.e. “1-Ed2”) )  
“A” IECturbc - IEC turbulence characteristic (“A”, “B”, “C” or the turbulence intensity in percent) (“KHTEST” option with NWTCUP model, not used for other models)  
“NTM” IEC\_WindType - IEC turbulence type (“NTM”=normal, “xETM”=extreme turbulence, “xEWM1”=extreme 1-year wind, “xEWM50”=extreme 50-year wind, where x=wind turbine class 1, 2, or 3)  
default ETMc - IEC Extreme Turbulence Model “c” parameter [m/s]  
“PL” WindProfileType - Velocity profile type (“LOG”;“PL”=power law;“JET”;“H2L”=Log law for TIDAL model;“API”;“USR”;“TS”;“IEC”=PL on rotor disk, LOG elsewhere; or “default”)  
“unused” ProfileFile - Name of the file that contains input profiles for WindProfileType=“USR” and/or TurbModel=“USRVKM” [-]  
10 RefHt - Height of the reference velocity (URef) [m]  
19.6 URef - Mean (total) velocity at the reference height [m/s] (or “default” for JET velocity profile) [must be 1-hr mean for API model; otherwise is the mean over AnalysisTime seconds]  
default ZJetMax - Jet height [m] (used only for JET velocity profile, valid 70-490 m)  
default PLExp - Power law exponent [-] (or “default”)  
default Z0 - Surface roughness length [m] (or “default”)

--------Non-IEC Meteorological Boundary Conditions------------  
default Latitude - Site latitude [degrees] (or “default”)  
0.05 RICH\_NO - Gradient Richardson number [-]  
default UStar - Friction or shear velocity [m/s] (or “default”)  
default ZI - Mixing layer depth [m] (or “default”)  
default PC\_UW - Hub mean u’w’ Reynolds stress [m^2/s^2] (or “default” or “none”)  
default PC\_UV - Hub mean u’v’ Reynolds stress [m^2/s^2] (or “default” or “none”)  
default PC\_VW - Hub mean v’w’ Reynolds stress [m^2/s^2] (or “default” or “none”)

--------Spatial Coherence Parameters----------------------------  
“API” SCMod1 - u-component coherence model (“GENERAL”, “IEC”, “API”, “NONE”, or “default”)  
default SCMod2 - v-component coherence model (“GENERAL”, “IEC”, “NONE”, or “default”)  
default SCMod3 - w-component coherence model (“GENERAL”, “IEC”, “NONE”, or “default”)  
default InCDec1 - u-component coherence parameters for general or IEC models [-, m^-1] (e.g. “10.0 0.3e-3” in quotes) (or “default”)  
default InCDec2 - v-component coherence parameters for general or IEC models [-, m^-1] (e.g. “10.0 0.3e-3” in quotes) (or “default”)  
default InCDec3 - w-component coherence parameters for general or IEC models [-, m^-1] (e.g. “10.0 0.3e-3” in quotes) (or “default”)  
default CohExp - Coherence exponent for general model [-] (or “default”)

--------Coherent Turbulence Scaling Parameters-------------------  
“E:\TurbSim\_v2.00.07\CertTest\EventData” CTEventPath - Name of the path where event data files are located  
“Random” CTEventFile - Type of event files (“LES”, “DNS”, or “RANDOM”)  
true Randomize - Randomize the disturbance scale and locations? (true/false)  
1.0 DistScl - Disturbance scale [-] (ratio of event dataset height to rotor disk). (Ignored when Randomize = true.)  
0.5 CTLy - Fractional location of tower centerline from right [-] (looking downwind) to left side of the dataset. (Ignored when Randomize = true.)  
0.5 CTLz - Fractional location of hub height from the bottom of the dataset. [-] (Ignored when Randomize = true.)  
10.0 CTStartTime - Minimum start time for coherent structures in RootName.cts [seconds]

# ==================================================== ! NOTE: Do not add or remove any lines in this file!

Thanks and regards,  
Hanis

 ![API error.jpg](https://europe1.discourse-cdn.com/nrel/original/2X/6/60174da28c0f72825107f9b9fa13c002b283a802.jpeg)

---

_[View the full topic](https://forums.nlr.gov/t/api-wind-spectrum/1673)._
