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 |
AltitudeAngle | Test model for altitude angle |
WallSolarAzimuth | Test model for wall solar azimuth angle |
model Declination "Test model for declination" extends Modelica.Icons.Example;Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Declination decAng "Declination angle"; Buildings.Utilities.SimulationTime simTim "Simulation time"; equationconnect(simTim.y, decAng.nDay); end Declination;
Type | Name | Description |
---|---|---|
Bus | weaBus | Weather bus |
model IncidenceAngle "Test model for incidence angle" extends Modelica.Icons.Example;Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Declination decAng "Declination angle"; Buildings.BoundaryConditions.SolarGeometry.BaseClasses.SolarHourAngle solHouAng "Solar hour angle"; Buildings.BoundaryConditions.SolarGeometry.BaseClasses.IncidenceAngle incAng( azi=0, til=90, lat=0.73268921998722) "incidence angle"; Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat( filNam="modelica://Buildings/Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos") "Weather data"; Buildings.BoundaryConditions.WeatherData.Bus weaBus "Weather bus"; 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 | 41.98*Modelica.Constants.pi/... | Latitude [rad] |
Type | Name | Description |
---|---|---|
Bus | weaBus | Weather bus |
model SolarAzimuth "Test model for zenith angle" extends Modelica.Icons.Example; parameter Modelica.SIunits.Angle lat= 41.98*Modelica.Constants.pi/180 "Latitude";Buildings.BoundaryConditions.SolarGeometry.BaseClasses.SolarHourAngle solHouAng "Solar hour angle"; Buildings.BoundaryConditions.SolarGeometry.BaseClasses.ZenithAngle zen(lat=lat) "Zenith angle"; Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Declination decAng "Declination angle"; Buildings.BoundaryConditions.SolarGeometry.BaseClasses.SolarAzimuth solAzi(lat=lat) "Solar azimuth"; WeatherData.ReaderTMY3 weaDat( filNam="modelica://Buildings/Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos") "Weather data"; WeatherData.Bus weaBus "Weather bus"; 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 | Weather bus |
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="modelica://Buildings/Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos") "Weather data"; WeatherData.Bus weaBus "Weather bus"; equationconnect(weaDat.weaBus, weaBus); connect(weaBus.solTim, solHouAng.solTim); end SolarHourAngle;
Type | Name | Description |
---|---|---|
Bus | weaBus | Weather bus |
model ZenithAngle "Test model for zenith angle" extends Modelica.Icons.Example;Buildings.BoundaryConditions.SolarGeometry.BaseClasses.ZenithAngle zen(lat= 0.73268921998722) "Zenith angle"; Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Declination decAng "Declination angle"; Buildings.BoundaryConditions.SolarGeometry.BaseClasses.SolarHourAngle solHouAng "Solar hour angle"; Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam= "modelica://Buildings/Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos") "Weather data"; Buildings.BoundaryConditions.WeatherData.Bus weaBus "Weather bus"; 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;
This example calculates the altitude angle of the sun at a given time. The altitude angle is the angle between the sun ray and the projection of the ray on a horizontal surface.
Components used in this model are:
Type | Name | Description |
---|---|---|
Bus | weaBus | Weather bus |
model AltitudeAngle "Test model for altitude angle" extends Modelica.Icons.Example;Buildings.BoundaryConditions.SolarGeometry.BaseClasses.ZenithAngle zen(lat= 0.73268921998722) "Zenith angle"; Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Declination decAng "Declination angle"; Buildings.BoundaryConditions.SolarGeometry.BaseClasses.SolarHourAngle solHouAng "Solar hour angle"; Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam="modelica://Buildings/Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos") "Weather data"; Buildings.BoundaryConditions.WeatherData.Bus weaBus "Weather bus"; Buildings.BoundaryConditions.SolarGeometry.BaseClasses.AltitudeAngle altAng "Altitude angle: Angle between Sun ray and horizontal surface)"; equationconnect(decAng.decAng, zen.decAng); connect(solHouAng.solHouAng, zen.solHouAng); connect(weaDat.weaBus, weaBus); connect(weaBus.cloTim, decAng.nDay); connect(weaBus.solTim, solHouAng.solTim); connect(zen.zen, altAng.zen); end AltitudeAngle;
This example calculates the wall solar azimuth angle.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Type | Name | Default | Description |
---|---|---|---|
Angle | lat | 41.98*Modelica.Constants.pi/... | Latitude [rad] |
Type | Name | Description |
---|---|---|
Bus | weaBus | Weather bus |
model WallSolarAzimuth "Test model for wall solar azimuth angle" extends Modelica.Icons.Example;Buildings.BoundaryConditions.SolarGeometry.IncidenceAngle incAng( azi=0, lat=lat, til=1.5707963267949) "solar incidence angle"; Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam= "modelica://Buildings/Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos") "Weather data"; Buildings.BoundaryConditions.WeatherData.Bus weaBus "Weather bus"; Buildings.BoundaryConditions.SolarGeometry.BaseClasses.WallSolarAzimuth walSolAzi "Vertical wall solar azimuth angle"; Buildings.BoundaryConditions.SolarGeometry.BaseClasses.AltitudeAngle altAng "Altitude angle"; parameter Modelica.SIunits.Angle lat=41.98*Modelica.Constants.pi/180 "Latitude"; equationconnect(weaDat.weaBus, weaBus); connect(weaDat.weaBus, incAng.weaBus); connect(incAng.y, walSolAzi.incAng); connect(altAng.alt, walSolAzi.alt); connect(weaBus.sol.zen, altAng.zen); end WallSolarAzimuth;