Description: "Package with base classes for DC sources"

- Home > Modelica

## Buildings.Electrical.DC.Sources.BaseClasses

Package with base classes for DC sources

### Information

This package contains base classes that are used to construct the models in Buildings.Electrical.DC.Sources.

Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).

### Package Content

Name | Description
--- | ---
WindCorrection | Block for wind correction

## Buildings.Electrical.DC.Sources.BaseClasses.WindCorrection

Block for wind correction

### Information

This model calculates the wind velocity at the location as a function of the height over ground. The equation is based on Gash (1991). The model computes the wind velocity vLoc as

vLoc = vRef * (h / hRef)n

where vRef is the wind velocity at the reference height, h is the height over ground, hRef is the reference height, and n is the height exponent for wind calculation.

#### Reference

Gasch, R. 1991. Windkraftanlagen. Grundlagen und Entwurf (German). Teubner, Stuttgart.

Extends from Modelica.Blocks.Interfaces.BlockIcon (This icon will be removed in future Modelica versions, use Modelica.Blocks.Icons.Block instead.).

### Parameters

Type | Name | Default | Description
--- | --- | --- | ---
Height | h |  | Height over ground [m]
Height | hRef |  | Reference height for wind measurement [m]
Real | n | 0.4 | Height exponent for wind profile calculation

### Connectors

Type | Name | Description
--- | --- | ---
output RealOutput | vLoc | Wind velocity at the location [m/s]
input RealInput | vRef | Wind velocity at the reference height [m/s]

### Modelica definition

block WindCorrection "Block for wind correction" extends Modelica.Blocks.Interfaces.BlockIcon; parameter Modelica.SIunits.Height h "Height over ground"; parameter Modelica.SIunits.Height hRef "Reference height for wind measurement"; parameter Real n(min=0) = 0.4 "Height exponent for wind profile calculation"; Modelica.Blocks.Interfaces.RealOutput vLoc( unit="m/s") "Wind velocity at the location"; Modelica.Blocks.Interfaces.RealInput vRef(unit="m/s") "Wind velocity at the reference height"; equation vLoc=vRef * (h / hRef)^n; end WindCorrection;