5.0 | 2 ratings Rate this file 14 Downloads (last 30 days) File Size: 2.25 KB File ID: #35722

3D Turbulent Wind Field by means of the Mann Model



IEC_Mann retrieves a 3D turbulent wind field for wind energy applications using the Mann model.

| Watch this File

File Information

Output: 4D matrix u = u[3,Nx,Ny,Nz] with

* size(u,1) = turbulent components u-, v- and w-;

* size(u,2) = number of points Nx in the longitudinal direction, x- ;

* size(u,3) = number of points Ny in the transversal direction, y- ;

* size(u,4) = number of points Nz in the vertical direction, z- ;

When defining the grid points Nx,Ny and Nz, the user has to input not-even Ny and Nz in order to count already the hub point.


%Box size

Nx= Number of grid points on x-axis;

Ny= Number of grid points on y-axis;

Nz= Number of grid points on z-axis;

%Spatial grid resolution


%WT / turbulence condition

UHub= Mean Wind Speed at the Hub Point;

HubHt= Hub Height;

z0= Terrain Roughness;

IECturbC= Wind Turbine Turbulence Class;

Required Products Statistics Toolbox
MATLAB release MATLAB 7.9 (R2009b)
Other requirements http://www.mathworks.com/matlabcentral/fileexchange/25977-mtimesx-fast-matrix-multiply-with-multi-dimensional-support http://www.mathworks.com/matlabcentral/fileexchange/32296
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
03 May 2013 pikchi

pikchi (view profile)

Great Submission! One thing that isn't clear is your use of Corrective Factor SF. Is there a corresponding paper that you could refer me to? Moreover, something seems to be wrong with the last nested for loop. As of now, the line for i = 1:length(sf) is equivalent to the line i = length(sf), since you don't carry any history for utmp with the iterating index i.

21 Oct 2012 Francesco Perrone

It is the hypergeometric function 2f1. You can find it as hypergeom in the newest Matlab releases, otherwise you should be able to find it in the File Exchange. I hope this helps.

Comment only
11 Oct 2012 The University of Iowa

Hello, Francesco Perrone, I downloaded your code and tried to run in Matlab. There is one error happened. "Undefined function or method 'pfq' for input arguments of type 'double'." in line 47. Could you please tell me what the command pfq is? Is a Matlab command only exist in Statistics Toolbox? Where can I get this pfq command? Thanks!

Contact us