modelPartialWindTurbine
Extends from Buildings.Electrical.Interfaces.PartialWindTurbineBase (Base class for turbine model that contains basic parameters).
Information
Model of a wind turbine whose power is computed as a function of wind-speed as defined in a table.
Input to the model is the local wind speed.
The model requires the specification of a table that maps wind speed in meters per second to generated
power Pt in Watts.
The model has a parameter called scale with a default value of one
that can be used to scale the power generated by the wind turbine.
The generated electrical power is
P = Pt scale
For example, the following specification (with default scale=1) of a wind turbine
WindTurbine_Table tur(
table=[3.5, 0;
5.5, 100;
12, 900;
14, 1000;
25, 1000]) "Wind turbine";
yields the performance shown below. In this example, the cut-in wind speed is 3.5 meters per second, and the cut-out wind speed is 25 meters per second, as entered by the first and last entry of the wind speed column. Below and above these wind speeds, the generated power is zero.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Velocity | vIn (from PartialWindTurbineBase) | table[1, 1] | Cut-in steady wind speed |
| Modelica.Units.SI.Velocity | vOut (from PartialWindTurbineBase) | table[size(table, 1), 1] | Cut-out steady wind speed |
| Real | scale (from PartialWindTurbineBase) | 1 | Scaling factor, used to allow adjusting the power output without changing the table |
| Boolean | tableOnFile (from PartialWindTurbineBase) | false | true, if table is defined on file or in function usertab |
| Real[:,2] | table (from PartialWindTurbineBase) | [3.5, 0; 5.5, 0.1; 12, 0.9; 14, 1; 25, 1] | Table of generated power (first column is wind speed, second column is power) |
| String | tableName (from PartialWindTurbineBase) | "NoName" | Table name on file or in function usertab (see documentation) |
| String | fileName (from PartialWindTurbineBase) | "NoName" | File where matrix is stored |
| Wind correction | |||
| Real | h (from PartialWindTurbineBase) | Height over ground | |
| Modelica.Units.SI.Height | hRef (from PartialWindTurbineBase) | 10 | Reference height for wind measurement |
| Real | nWin (from PartialWindTurbineBase) | 0.4 | Height exponent for wind profile calculation |
| Nominal conditions | |||
| Modelica.Units.SI.Voltage | V_nominal (from PartialWindTurbineBase) | Nominal voltage (V_nominal >= 0) | |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | vWin (from PartialWindTurbineBase) | Steady wind speed | |
| Modelica.Blocks.Interfaces.RealOutput | P (from PartialWindTurbineBase) | Generated power | |
| Buildings.Electrical.Interfaces.Terminal | terminal | Generalized terminal |
Contents
| Name | Description |
|---|---|
Revisions
-
April 9, 2025, by Michael Wetter:
Increased small number to extend table beyond cut-out wind speed.
issue 4224. -
March 1, 2016, by Michael Wetter:
Removed test for equality ofRealvariables. This is for issue 493. -
January 10, 2013, by Michael Wetter:
First implementation. -
October 31, 2013, by Marco Bonvini:
Models included in the Buildings library. Modified the information section.