readme.md 1.12 KB
Newer Older
alanliowh's avatar
alanliowh committed
1
2
3
4
5
6
7
8
9
10
11
12
Matlab-HAWC2 Interface
======================

The Matlab-HAWC2 interfance enables you to build your controller in Matlab and calls HAWC2 in the Matlab environment. The folder also contains a working example of the [DTU10MW Reference Wind Turbine
Model](http://www.hawc2.dk/Download/HAWC2-Model/DTU-10-MW-Reference-Wind-Turbine). 


Installation
============

This repository is written for Windows.

Alan Wai Hou Lio's avatar
Alan Wai Hou Lio committed
13
[HAWC2](http://www.hawc2.dk/) should be installed. The executable `HAWC2mb.exe`, licence files and other files from HAWC2 should be in the folder of "hawc2_htc". 
alanliowh's avatar
alanliowh committed
14

Alan Wai Hou Lio's avatar
Alan Wai Hou Lio committed
15
The turbine model (htc, data, control folders) should be placed in hawc2_htc folder as well. A working exmaple of DTU 10MW model is provided.
alanliowh's avatar
alanliowh committed
16
17


alanliowh's avatar
alanliowh committed
18
19
20
Example
=======

Alan Wai Hou Lio's avatar
Alan Wai Hou Lio committed
21
To begin, go into the "matlab" folder.
alanliowh's avatar
alanliowh committed
22
23
24

Run "Main.m"

Alan Wai Hou Lio's avatar
Alan Wai Hou Lio committed
25
If you want to design your own controller, go to "HAWC2matlabScript.m", where you can place your own controller. By default, the Matlab script will call the [DTU Wind Energy Controller (DTUWEC)](https://gitlab.windenergy.dtu.dk/OpenLAC/BasicDTUController).
alanliowh's avatar
alanliowh committed
26
27
28
29


Contact
=====
Alan Wai Hou Lio's avatar
Alan Wai Hou Lio committed
30
Feel free to contact me if you encounter any problems regarding this interface at wali@dtu.dk.