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).
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 |
Type | Name | Description |
---|---|---|
Bus | weaBus |
model BrighteningCoeffcient "Test model for brightening coeffcients" extends Modelica.Icons.Example; import Buildings;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= "Resources/weatherdata/USA_CA_San.Francisco.Intl.AP.724940_TMY3.mos"); Buildings.BoundaryConditions.WeatherData.Bus weaBus; equationconnect(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;
Type | Name | Description |
---|---|---|
Bus | weaBus |
model DiffuseIsotropic "Test model for diffuse solar irradiation on a tilted surface by using isotropic model" extends Modelica.Icons.Example; import Buildings;Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.DiffuseIsotropic HDifTilIso(til=1.5707963267949); Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam= "Resources/weatherdata/USA_CA_San.Francisco.Intl.AP.724940_TMY3.mos"); Buildings.BoundaryConditions.WeatherData.Bus weaBus; equationconnect(weaDat.weaBus, weaBus); connect(weaBus.HGloHor, HDifTilIso.HGloHor); connect(weaBus.HDifHor, HDifTilIso.HDifHor); end DiffuseIsotropic;
model RelativeAirMass "Test model for relative air mass" extends Modelica.Icons.Example; import Buildings;Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.RelativeAirMass relAirMas; Buildings.BoundaryConditions.SolarGeometry.ZenithAngle zen(lat= 0.34906585039887); Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam= "Resources/weatherdata/USA_CA_San.Francisco.Intl.AP.724940_TMY3.mos"); equationconnect(zen.y, relAirMas.zen); connect(weaDat.weaBus, zen.weaBus); end RelativeAirMass;
Type | Name | Description |
---|---|---|
Bus | weaBus |
model SkyBrightness "Test model for sky brightness" extends Modelica.Icons.Example; import Buildings;Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.RelativeAirMass relAirMas; Buildings.BoundaryConditions.SolarGeometry.ZenithAngle zen(lat= 0.34906585039887); Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.SkyBrightness skyBri; Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam= "Resources/weatherdata/USA_CA_San.Francisco.Intl.AP.724940_TMY3.mos"); Buildings.BoundaryConditions.WeatherData.Bus weaBus; equationconnect(zen.y, relAirMas.zen); connect(relAirMas.relAirMas, skyBri.relAirMas); connect(weaDat.weaBus, weaBus); connect(weaBus.HDifHor, skyBri.HDifHor); connect(zen.weaBus, weaBus); end SkyBrightness;
Type | Name | Description |
---|---|---|
Bus | weaBus |
model SkyClearness "Test model for sky clearness" extends Modelica.Icons.Example; import Buildings;Buildings.BoundaryConditions.SolarGeometry.ZenithAngle zen(lat= 0.34906585039887); Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.SkyClearness skyCle; Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam= "Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos"); Buildings.BoundaryConditions.WeatherData.Bus weaBus; equationconnect(zen.y, skyCle.zen); connect(weaDat.weaBus, weaBus); connect(weaBus.HGloHor, skyCle.HGloHor); connect(weaBus.HDifHor, skyCle.HDifHor); connect(weaBus, zen.weaBus); end SkyClearness;