Creating a Wind FieldThe toolbox provides two methods for generating a wind field. One is interactive and the other is programatically from a Matlab script. Both methods requires the set of data listed below
The interactive method will ask for this data and generate the appropriate data structures etc. you only need to double-click the Generate Wind Field - Taylor or Generate Wind Field - No Taylor block in the Wind simulink library to start the procedure. Alternatively, you can also run the scripts create_windfield or create_windfield(farm), where farm is a farm structure. The programmatic method requires that you place this data in appropriate data structures and invoke the gen_windfield method, which uses the old wind generation (an example illustrating how this is done using the new wind generation method is currently not available). This is best illustrated by example. Wind field creation
%The average wind speed is 12 m/s U0=12; %The turbulence intensity is 0.1. Ti=.1; %The grid spacing is 15m d=15; %The length of the wind field is 1Km Lx=1e3; %The width of the wind field is 1.5Km Ly=1.5e3; %The maximum simulation time is 1000s SimTime=1000; %Generate the wind field wind=gen_windfield(U0,Ti,d,Lx,Ly,SimTime); |