4.66667

4.7 | 3 ratings Rate this file 76 Downloads (last 30 days) File Size: 313.35 KB File ID: #26273
image thumbnail

Animate a Wind Farm with MATLAB

by Saurabh Mahapatra

 

04 Jan 2010 (Updated 12 Jul 2010)

A VRML model of a wind turbine, animated with MATLAB and Simulink 3D Animation.

| Watch this File

File Information
Description

In this demo, we show how you can create the 3D visualization of a wind farm consisting of identical wind turbines in the ocean. Using the extrusion node in VRML, we model the complex 3D geometry of a blade. We use a NACA 0015 Thickness Form as the wing section of the blade, vary its size and orientation along its spine. By using other simple geometrical constructs in VRML, we model the hub and the tower. Grouping and replication of nodes enables the assembly of the wind turbine and then the wind farm. By using the Simulink 3D Animation API, we do a simple animation of the turbines from MATLAB.

The modeling of the blade geometry in VRML may also be of interest to aerospace engineers.

Please note that Simulink 3D Animation is required to run the demo.

The videos on how this was built from scratch is available under
"Green Energy Application Examples" section here:

http://www.mathworks.com/products/3d-animation/demos.html

Enhancements to the demo:
1. Adding realism to the 3D scene in this submission here:

http://www.mathworks.com/matlabcentral/fileexchange/28089

2. Fog effect for this demo is added in this submission here:

http://www.mathworks.com/matlabcentral/fileexchange/28091-animate-a-wind-farm-with-matlab-add-the-fog-effect

Required Products Simulink 3D Animation
MATLAB release MATLAB 7.9 (2009b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (7)
12 Jul 2010 Saurabh Mahapatra

Enhacments to the demo:
1. Adding realism to the 3D scene in this submission here:

http://www.mathworks.com/matlabcentral/fileexchange/28089

2. Fog effect for this demo is added in this submission here:

http://www.mathworks.com/matlabcentral/fileexchange/28091-animate-a-wind-farm-with-matlab-add-the-fog-effect

27 Jul 2010 Saurabh Mahapatra

A fellow reader asked a question about how to record the animation to AVI file since the buttons were inaccessible:

The code would simply be the addition of the following:
set(fig,'Record2D','on');
set(fig,'NavPanel','none');
set(world,'Recording','on');

just after the vrfigure command. See below:

world=vrworld('Wind_Turbine_Realism.wrl', 'new'); % change this
open(world);
fig=vrfigure(world);
set(fig, 'Headlight', 'off');
set(fig,'Record2D','on');
set(fig,'NavPanel','none');
set(world,'Recording','on');
blades_1=vrnode(world, 'Blades_1');
blades_2=vrnode(world, 'Blades_2');
blades_3=vrnode(world, 'Blades_3');

phase_1=0;
phase_2=pi/3;
phase_3=pi/6;

for theta=0:0.25:12*3*pi
    pause(0.001)
    blades_1.rotation=[0 0 1 phase_1-theta];
    blades_2.rotation=[0 0 1 phase_2-theta];
    blades_3.rotation=[0 0 1 phase_3-theta];
    vrdrawnow;
end

Also, use:

get(fig)

to access additional properties such as:

Record2D = 'off'
Record2DCompressMethod = 'auto'
Record2DCompressQuality = 75
Record2DFPS = 15
Record2DFileName = '%f_anim_%n.avi'

Documentation is here:

http://www.mathworks.de/access/helpdesk/help/toolbox/sl3d/f4-33836.html

20 Sep 2010 Saurabh Mahapatra

Design Talk: Enhancing Simulation Studies with 3D Animation Article

http://www.ecnmag.com/Articles/2010/09/Design-Talk/Enhancing-Simulation-Studies-with-3D-Animation/

10 Oct 2010 Saurabh Mahapatra

You can now follow me on Twitter:

http://twitter.com/simulinkdude

03 Nov 2010 Erdal Bizkevelci  
05 Oct 2011 Mr Smart  
06 Dec 2011 Raghu  
Please login to add a comment or rating.
Updates
12 Jul 2010

Updated description to include enhancements made to the demo.

Tag Activity for this File
Tag Applied By Date/Time
wind Saurabh Mahapatra 12 Jan 2010 12:05:31
farm Saurabh Mahapatra 12 Jan 2010 12:05:31
turbine Saurabh Mahapatra 12 Jan 2010 12:05:31
green Saurabh Mahapatra 12 Jan 2010 12:05:31
energy Saurabh Mahapatra 12 Jan 2010 12:05:31
animation Saurabh Mahapatra 12 Jan 2010 12:05:31
simulink Saurabh Mahapatra 12 Jan 2010 12:05:32
matlab Saurabh Mahapatra 12 Jan 2010 12:05:32
ocean Saurabh Mahapatra 12 Jan 2010 12:05:32
vrml Saurabh Mahapatra 12 Jan 2010 12:05:32
section Saurabh Mahapatra 12 Jan 2010 12:05:32
virtual Saurabh Mahapatra 12 Jan 2010 12:05:32
reality Saurabh Mahapatra 12 Jan 2010 12:05:32
wing Saurabh Mahapatra 12 Jan 2010 12:05:32
3d Saurabh Mahapatra 12 Jan 2010 12:05:32
sections Saurabh Mahapatra 12 Jan 2010 12:05:33
blade Saurabh Mahapatra 12 Jan 2010 12:05:33
geometry Saurabh Mahapatra 12 Jan 2010 12:05:33
aerospace Saurabh Mahapatra 12 Jan 2010 12:05:33
aircraft Saurabh Mahapatra 12 Jan 2010 12:05:33
farm Antonio 28 Jun 2011 10:32:35

Contact us at files@mathworks.com