Wind Turbine¶
![]()
Represents a Wind Turbine unit operation that calculates electrical power output from wind speed, air density, rotor disk area, and turbine efficiency.
DWSIM.UnitOperations.UnitOperations.WindTurbine
Assembly DWSIM.UnitOperations.dll · Object ← BaseClass ← UnitOpBaseClass ← CleanEnergyUnitOpBase ← WindTurbine
At a glance¶

| Port | Index | Connected in the example |
|---|---|---|
| Outlet, energy | 0 |
WT-1 power |
Example¶
This code runs on every build of this site, and the output below is what it printed.
fs = (Flowsheet.Create("WindTurbineExample")
.WithCompound("Water")
.WithPropertyPackage(PropertyPackages.SteamTables))
power = fs.AddEnergyStream("WT-1 power")
wt = (fs.AddWindTurbine("WT-1")
.WithRotorDiameterM(80.0)
.WithEfficiencyPercent(75.0)) # fraction of the Betz limit
wt.Object.CreateConnectors() # the canvas creates the ports on first draw
wt.ConnectEnergyProduct(power, 0) # electric power leaves through port 0
# Local weather instead of the flowsheet's global weather conditions
t = wt.Object
t.UseUserDefinedWeather = True
t.UserDefinedWindSpeed = 12.0 # m/s
t.UserDefinedAirTemperature = 288.15 # K
t.UserDefinedAirPressure = 101325.0 # Pa
t.UserDefinedRelativeHumidity = 60.0 # %
fs.AutoLayout()
fs.Solve()
print(f"Disk area = {t.DiskArea:.0f} m2")
print(f"Air density = {t.AirDensity:.4f} kg/m3")
print(f"Betz limit power = {wt.MaxTheoreticalPowerKW:.1f} kW")
print(f"Generated power = {wt.GeneratedPowerKW:.1f} kW")
print(f"Energy stream = {power.Object.EnergyFlow:.1f} kW")
Output
Disk area = 5027 m2
Air density = 1.2171 kg/m3
Betz limit power = 3132.2 kW
Generated power = 2349.2 kW
Energy stream = 2349.2 kW
DWSIM 10.2.11.0, generated 2026-10-08.
Properties¶
IDs accepted by GetPropertyValue, SetPropertyValue, the sensitivity analysis, the optimizer, the Adjust block and dynamic events. Units are SI; pass another unit system to GetPropertyValue to get them converted.
| ID | Name | Unit (SI) | Input |
|---|---|---|---|
Efficiency |
% | yes | |
User-Defined Wind Speed |
m/s | yes | |
Actual Wind Speed |
m/s | result | |
User-Defined Air Temperature |
K | yes | |
Actual Air Temperature |
K | result | |
User-Defined Air Pressure |
Pa | yes | |
Actual Air Pressure |
Pa | result | |
User-Defined Relative Humidity |
% | yes | |
Actual Relative Humidity |
% | result | |
Disk Area |
m2 | result | |
Rotor Diameter |
m | yes | |
Number of Units |
yes | ||
Generated Power |
kW | result | |
Maximum Theoretical Power |
kW | result | |
Calculated Air Density |
kg/m3 | result | |
User-Defined Air Density |
kg/m3 | yes |
Learn more¶
-
User guide
-
FluentAPI
API members¶
Public members declared by this class. Inherited members are documented on the base classes.
Constructors¶
WindTurbine(): Initializes a new default instance of the WindTurbine class.
Initializes a new default instance of the WindTurbine class.
Properties¶
AirDensity: Gets or sets the calculated air density (kg/m³).
Gets or sets the calculated air density (kg/m³).
DiskArea: Gets or sets the rotor disk area (m²).
Gets or sets the rotor disk area (m²).
Efficiency: Gets or sets the turbine efficiency (%).
Gets or sets the turbine efficiency (%).
EquipmentTypes: Gets the list of equipment sub-types (Onshore, Offshore).
Gets the list of equipment sub-types (Onshore, Offshore).
GeneratedPower: Gets or sets the calculated generated electrical power (kW).
Gets or sets the calculated generated electrical power (kW).
MaximumTheoreticalPower: Gets or sets the calculated maximum theoretical (Betz limit) power (kW).
Gets or sets the calculated maximum theoretical (Betz limit) power (kW).
NumberOfTurbines: Gets or sets the number of turbines in the farm.
Gets or sets the number of turbines in the farm.
Prefix: Gets or sets the default name prefix for this unit operation.
Gets or sets the default name prefix for this unit operation.
RotorDiameter: Gets or sets the rotor diameter (m).
Gets or sets the rotor diameter (m).
UserDefinedAirDensity: Gets or sets an air density (kg/m³) to use instead of the one calculated from the air temperature, pressure and...
Gets or sets an air density (kg/m³) to use instead of the one calculated from the air temperature, pressure and humidity. Zero, the default, calculates it.
Methods¶
Calculate(object): Calculates the generated power from wind speed, air density, disk area, and efficiency.
Calculates the generated power from wind speed, air density, disk area, and efficiency.
| Parameter | Type | Description |
|---|---|---|
args |
Object |
CloneXML(): Creates a deep copy via XML serialization.
Creates a deep copy via XML serialization.
CloseEditForm(): Closes and disposes the editing form.
Closes and disposes the editing form.
CreateConnectors(): Creates the graphic connector definitions on the flowsheet.
Creates the graphic connector definitions on the flowsheet.
CreateDimensionsList(): Creates the dimensions list (Power, Diameter) for this wind turbine.
Creates the dimensions list (Power, Diameter) for this wind turbine.
DisplayEditForm(): Opens or activates the editing form.
Opens or activates the editing form.
Draw(object): Draws the wind turbine icon on the given SkiaSharp canvas.
Draws the wind turbine icon on the given SkiaSharp canvas.
| Parameter | Type | Description |
|---|---|---|
g |
Object |
GetDisplayDescription(): Returns the display description for this unit operation.
Returns the display description for this unit operation.
GetDisplayName(): Returns the display name for this unit operation.
Returns the display name for this unit operation.
GetIconBitmapBytes(): Returns the icon bitmap as a byte array.
Returns the icon bitmap as a byte array.
GetProperties(PropertyType): Returns an array of property identifiers for the specified property type.
Returns an array of property identifiers for the specified property type.
| Parameter | Type | Description |
|---|---|---|
proptype |
PropertyType |
GetPropertyUnit(string, IUnitsOfMeasure): Returns the unit string for the specified property.
Returns the unit string for the specified property.
| Parameter | Type | Description |
|---|---|---|
prop |
String |
|
su |
IUnitsOfMeasure |
GetPropertyValue(string, IUnitsOfMeasure): Returns the value of the specified property.
Returns the value of the specified property.
| Parameter | Type | Description |
|---|---|---|
prop |
String |
|
su |
IUnitsOfMeasure |
GetReport(IUnitsOfMeasure, CultureInfo, string): Generates a plain-text report of the wind turbine results.
Generates a plain-text report of the wind turbine results.
| Parameter | Type | Description |
|---|---|---|
su |
IUnitsOfMeasure |
|
ci |
CultureInfo |
|
nf |
String |
LoadData(List<XElement>): Restores the wind turbine state from XML.
Restores the wind turbine state from XML.
| Parameter | Type | Description |
|---|---|---|
data |
List<XElement> |
PopulateEditorPanel(object): Populates the cross-platform editor panel with controls for this wind turbine.
Populates the cross-platform editor panel with controls for this wind turbine.
| Parameter | Type | Description |
|---|---|---|
ctner |
Object |
ReturnInstance(string): Creates and returns a new instance for deserialization.
Creates and returns a new instance for deserialization.
| Parameter | Type | Description |
|---|---|---|
typename |
String |
SaveData(): Serializes the wind turbine state to XML.
Serializes the wind turbine state to XML.
SetPropertyValue(string, object, IUnitsOfMeasure): Sets the value of the specified property.
Sets the value of the specified property.
| Parameter | Type | Description |
|---|---|---|
prop |
String |
|
propval |
Object |
|
su |
IUnitsOfMeasure |
UpdateDimensionsList(): Updates the dimension values from the current turbine properties.
Updates the dimension values from the current turbine properties.
UpdateEditForm(): Refreshes the editing form with updated data.
Refreshes the editing form with updated data.
Fields¶
ActualAirPressure: Actual atmospheric pressure used in the calculation (Pa).
Actual atmospheric pressure used in the calculation (Pa).
ActualAirTemperature: Actual air temperature used in the calculation (K).
Actual air temperature used in the calculation (K).
ActualRelativeHumidity: Actual relative humidity used in the calculation (%).
Actual relative humidity used in the calculation (%).
ActualWindSpeed: Actual wind speed used in the calculation (m/s).
Actual wind speed used in the calculation (m/s).
f: The classic (WinForms) editor window open for this unit operation, if any.
The classic (WinForms) editor window open for this unit operation, if any. Not saved with the flowsheet.
UserDefinedAirPressure: User-defined atmospheric pressure (Pa).
User-defined atmospheric pressure (Pa).
UserDefinedAirTemperature: User-defined air temperature (K).
User-defined air temperature (K).
UserDefinedRelativeHumidity: User-defined relative humidity (%).
User-defined relative humidity (%).