This package contains examples for the use of models that can be found in Buildings.BoundaryConditions.SolarGeometry.BaseClasses.
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
Name | Description |
---|---|
Declination | Test model for declination |
IncidenceAngle | Test model for incidence angle |
SolarAzimuth | Test model for zenith angle |
SolarHourAngle | Test model for solar hour angle |
ZenithAngle | Test model for zenith angle |
model Declination "Test model for declination" extends Modelica.Icons.Example; import Buildings;Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Declination decAng "Declination angle"; Buildings.Utilities.SimulationTime simTim; equationconnect(simTim.y, decAng.nDay); end Declination;
Type | Name | Description |
---|---|---|
Bus | weaBus |
model IncidenceAngle "Test model for incidence angle" extends Modelica.Icons.Example; import Buildings;Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Declination decAng "Declination angle"; Buildings.BoundaryConditions.SolarGeometry.BaseClasses.SolarHourAngle solHouAng; Buildings.BoundaryConditions.SolarGeometry.BaseClasses.IncidenceAngle incAng( lat=0, azi=0, til=90); Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat( filNam="Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos"); Buildings.BoundaryConditions.WeatherData.Bus weaBus; equationconnect(decAng.decAng, incAng.decAng); connect(solHouAng.solHouAng, incAng.solHouAng); connect(weaDat.weaBus, weaBus); connect(weaBus.cloTim, decAng.nDay); connect(weaBus.solTim, solHouAng.solTim); end IncidenceAngle;
Type | Name | Default | Description |
---|---|---|---|
Angle | lat | 0.2 | Latitude [rad] |
Type | Name | Description |
---|---|---|
Bus | weaBus |
model SolarAzimuth "Test model for zenith angle" extends Modelica.Icons.Example; parameter Modelica.SIunits.Angle lat= 0.2 "Latitude";Buildings.BoundaryConditions.SolarGeometry.BaseClasses.SolarHourAngle solHouAng "Solar hour angle"; Buildings.BoundaryConditions.SolarGeometry.BaseClasses.ZenithAngle zen(lat=lat); Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Declination decAng "Declination angle"; Buildings.BoundaryConditions.SolarGeometry.BaseClasses.SolarAzimuth solAzi(lat=lat); WeatherData.ReaderTMY3 weaDat( filNam="Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos"); WeatherData.Bus weaBus; equationconnect(zen.zen, solAzi.zen); connect(solHouAng.solHouAng, zen.solHouAng); connect(decAng.decAng, solAzi.decAng); connect(decAng.decAng, zen.decAng); connect(weaDat.weaBus, weaBus); connect(weaBus.cloTim, decAng.nDay); connect(weaBus.solTim, solHouAng.solTim); connect(weaBus.solTim, solAzi.solTim); end SolarAzimuth;
Type | Name | Description |
---|---|---|
Bus | weaBus |
model SolarHourAngle "Test model for solar hour angle" extends Modelica.Icons.Example;Buildings.BoundaryConditions.SolarGeometry.BaseClasses.SolarHourAngle solHouAng "Solar hour Angle"; WeatherData.ReaderTMY3 weaDat( filNam="Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos"); WeatherData.Bus weaBus; equationconnect(weaDat.weaBus, weaBus); connect(weaBus.solTim, solHouAng.solTim); end SolarHourAngle;
Type | Name | Description |
---|---|---|
Bus | weaBus |
model ZenithAngle "Test model for zenith angle" extends Modelica.Icons.Example; import Buildings;Buildings.BoundaryConditions.SolarGeometry.BaseClasses.ZenithAngle zen(lat=0); Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Declination decAng "Declination angle"; Buildings.BoundaryConditions.SolarGeometry.BaseClasses.SolarHourAngle solHouAng; Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat( filNam="Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos"); Buildings.BoundaryConditions.WeatherData.Bus weaBus; equationconnect(decAng.decAng, zen.decAng); connect(solHouAng.solHouAng, zen.solHouAng); connect(weaDat.weaBus, weaBus); connect(weaBus.cloTim, decAng.nDay); connect(weaBus.solTim, solHouAng.solTim); end ZenithAngle;