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.
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
Package Content
Name |
Description |
DiffuseIsotropic
|
Test model for diffuse solar irradiation on a tilted surface using the isotropic model |
DiffusePerez
|
Test model for diffuse solar irradiation on a tilted surface using the Perez model |
DirectTiltedSurface
|
Test model for direct solar irradiation on a tilted surface |
Test model for diffuse solar irradiation on a tilted surface using the isotropic model
Information
This example computes the hemispherical diffuse irradiation
on a roof, wall and a floor, using an isotropic sky model.
Since the floor only sees the ground,
it receives the lowest amount of diffuse solar irradiation.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
Real | rho | 0.2 | Ground reflectance |
Connectors
Type | Name | Description |
Bus | weaBus | Weather data bus |
Modelica definition
Test model for diffuse solar irradiation on a tilted surface using the Perez model
Information
This model tests the implementation of Perez' model for diffuse solar radiation.
The three instances of Perez' model compute the diffuse solar
irradiation on a roof, a wall and a floor.
Since the floor only sees the ground but not the radiative heat flow that is
scattered in the atmosphere, it receives the lowest amount of
diffuse solar irradiation.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
Angle | lat | 37/180*Modelica.Constants.pi | Latitude [rad] |
Angle | azi | 0.3 | Azi angle [rad] |
Angle | til | 0.5 | Tilted angle [rad] |
Connectors
Type | Name | Description |
Bus | weaBus | |
Modelica definition
model DiffusePerez
extends Modelica.Icons.Example;
parameter Modelica.SIunits.Angle lat=37/180*Modelica.Constants.pi ;
parameter Modelica.SIunits.Angle azi=0.3 ;
parameter Modelica.SIunits.Angle til=0.5 ;
Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam=
"modelica://Buildings/Resources/weatherdata/USA_CA_San.Francisco.Intl.AP.724940_TMY3.mos");
Buildings.BoundaryConditions.WeatherData.Bus weaBus;
Buildings.BoundaryConditions.SolarIrradiation.DiffusePerez HDifRoo(
til=Buildings.Types.Tilt.Ceiling,
lat=0.6457718232379,
azi=0.78539816339745) ;
Buildings.BoundaryConditions.SolarIrradiation.DiffusePerez HDifFlo(
til=Buildings.Types.Tilt.Floor,
lat=0.6457718232379,
azi=0.78539816339745) ;
Buildings.BoundaryConditions.SolarIrradiation.DiffusePerez HDifWal(
til=Buildings.Types.Tilt.Wall,
lat=0.6457718232379,
azi=0.78539816339745) ;
equation
connect(weaDat.weaBus, weaBus);
connect(weaBus,HDifRoo. weaBus);
connect(weaBus, HDifFlo.weaBus);
connect(weaBus, HDifWal.weaBus);
end DiffusePerez;
Test model for direct solar irradiation on a tilted surface
Information
This model tests the direct solar irradiation received on a ceiling, a wall and a floor.
The assert statement will stop the simulation if the floor receives
any direct solar irradiation.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
Angle | lat | 37/180*Modelica.Constants.pi | Latitude [rad] |
Modelica definition
model DirectTiltedSurface
extends Modelica.Icons.Example;
parameter Modelica.SIunits.Angle lat=37/180*Modelica.Constants.pi ;
Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam=
"modelica://Buildings/Resources/weatherdata/USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.mos");
Buildings.BoundaryConditions.SolarIrradiation.DirectTiltedSurface HDirRoo(
til=Buildings.Types.Tilt.Ceiling,
lat=0.6457718232379,
azi=0.78539816339745) ;
Buildings.BoundaryConditions.SolarIrradiation.DirectTiltedSurface HDirFlo(
til=Buildings.Types.Tilt.Floor,
lat=0.6457718232379,
azi=0.78539816339745) ;
Buildings.BoundaryConditions.SolarIrradiation.DirectTiltedSurface HDirWal(
til=Buildings.Types.Tilt.Wall,
lat=0.6457718232379,
azi=0.78539816339745) ;
Buildings.Utilities.Diagnostics.AssertEquality assEqu ;
Modelica.Blocks.Sources.Constant const(k=0) ;
equation
connect(assEqu.u1, HDirFlo.H);
connect(const.y, assEqu.u2);
connect(weaDat.weaBus, HDirRoo.weaBus);
connect(HDirWal.weaBus, weaDat.weaBus);
connect(HDirFlo.weaBus, weaDat.weaBus);
end DirectTiltedSurface;
http://simulationresearch.lbl.gov/modelica