Description: "Collection of models that illustrate model use and test models"

- Home > Modelica

## Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples

Collection of models that illustrate model use and test models

### Information

This package contains examples for the use of models that can be found in Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

### Package Content

Name | Description
--- | ---
BrighteningCoeffcient | Test model for brightening coeffcients
DiffuseIsotropic | Test model for diffuse solar irradiation on a tilted surface by using isotropic model
RelativeAirMass | Test model for relative air mass
SkyBrightness | Test model for sky brightness
SkyClearness | Test model for sky clearness

## Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.BrighteningCoeffcient

Test model for brightening coeffcients

### Information

This example computes the circumsolar and horizon brightening coefficients.

Extends from Modelica.Icons.Example (Icon for runnable examples).

### Connectors

Type | Name | Description
--- | --- | ---
Bus | weaBus |

### Modelica definition

model BrighteningCoeffcient "Test model for brightening coeffcients" extends Modelica.Icons.Example; Buildings.BoundaryConditions.SolarGeometry.ZenithAngle zen(lat= 0.6457718232379); Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.SkyClearness skyCle; Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.BrighteningCoefficient briCoe; Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.RelativeAirMass relAirMas; Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.SkyBrightness skyBri; Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam= "modelica://Buildings/Resources/weatherdata/USA_CA_San.Francisco.Intl.AP.724940_TMY3.mos"); Buildings.BoundaryConditions.WeatherData.Bus weaBus; equation connect(zen.y, skyCle.zen); connect(relAirMas.relAirMas, skyBri.relAirMas); connect(zen.y, relAirMas.zen); connect(skyBri.skyBri, briCoe.skyBri); connect(skyCle.skyCle, briCoe.skyCle); connect(zen.y, briCoe.zen); connect(weaDat.weaBus, weaBus); connect(weaBus.HGloHor, skyCle.HGloHor); connect(weaBus.HDifHor, skyCle.HDifHor); connect(weaBus.HDifHor, skyBri.HDifHor); connect(weaBus, zen.weaBus); end BrighteningCoeffcient;

## Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic

Test model for diffuse solar irradiation on a tilted surface by using isotropic model

### Information

This example computes the hemispherical diffuse irradiation on a tilted surface.

Extends from Modelica.Icons.Example (Icon for runnable examples).

### Connectors

Type | Name | Description
--- | --- | ---
Bus | weaBus |

### Modelica definition

model DiffuseIsotropic "Test model for diffuse solar irradiation on a tilted surface by using isotropic model" extends Modelica.Icons.Example; Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.DiffuseIsotropic HDifTilIso(til=1.5707963267949); Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam= "modelica://Buildings/Resources/weatherdata/USA_CA_San.Francisco.Intl.AP.724940_TMY3.mos"); Buildings.BoundaryConditions.WeatherData.Bus weaBus; equation connect(weaDat.weaBus, weaBus); connect(weaBus.HGloHor, HDifTilIso.HGloHor); connect(weaBus.HDifHor, HDifTilIso.HDifHor); end DiffuseIsotropic;

## Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass

Test model for relative air mass

### Information

This example computes the relative air mass for sky brightness.

Extends from Modelica.Icons.Example (Icon for runnable examples).

### Modelica definition

model RelativeAirMass "Test model for relative air mass" extends Modelica.Icons.Example; Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.RelativeAirMass relAirMas; Buildings.BoundaryConditions.SolarGeometry.ZenithAngle zen(lat= 0.34906585039887); Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam= "modelica://Buildings/Resources/weatherdata/USA_CA_San.Francisco.Intl.AP.724940_TMY3.mos"); equation connect(zen.y, relAirMas.zen); connect(weaDat.weaBus, zen.weaBus); end RelativeAirMass;

## Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness

Test model for sky brightness

### Information

This example computes the sky brightness.

Extends from Modelica.Icons.Example (Icon for runnable examples).

### Connectors

Type | Name | Description
--- | --- | ---
Bus | weaBus | Weather data bus

### Modelica definition

model SkyBrightness "Test model for sky brightness" extends Modelica.Icons.Example; Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.RelativeAirMass relAirMas "Relative air mass"; Buildings.BoundaryConditions.SolarGeometry.ZenithAngle zen( lat=0.34906585039887) "Zenith angle"; Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.SkyBrightness skyBri "Sky brightness"; Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam= "modelica://Buildings/Resources/weatherdata/USA_CA_San.Francisco.Intl.AP.724940_TMY3.mos") "Weather data"; Buildings.BoundaryConditions.WeatherData.Bus weaBus "Weather data bus"; equation connect(zen.y, relAirMas.zen); connect(relAirMas.relAirMas, skyBri.relAirMas); connect(weaDat.weaBus, weaBus); connect(weaBus.HDifHor, skyBri.HDifHor); connect(zen.weaBus, weaBus); end SkyBrightness;

## Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness

Test model for sky clearness

### Information

This example computes the sky clearness.

Extends from Modelica.Icons.Example (Icon for runnable examples).

### Connectors

Type | Name | Description
--- | --- | ---
Bus | weaBus |

### Modelica definition

model SkyClearness "Test model for sky clearness" extends Modelica.Icons.Example; Buildings.BoundaryConditions.SolarGeometry.ZenithAngle zen(lat= 0.34906585039887); Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.SkyClearness skyCle; Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam= "modelica://Buildings/Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos"); Buildings.BoundaryConditions.WeatherData.Bus weaBus; equation connect(zen.y, skyCle.zen); connect(weaDat.weaBus, weaBus); connect(weaBus.HGloHor, skyCle.HGloHor); connect(weaBus.HDifHor, skyCle.HDifHor); connect(weaBus, zen.weaBus); end SkyClearness;