LBL logo

Buildings.Fluid.SolarCollectors.Validation

Collection of validation models

Information

This package contains validation models for the classes in Buildings.Fluid.SolarCollectors.

Note that most validation models contain simple input data which may not be realistic, but for which the correct output can be obtained through an analytic solution. The examples plot various outputs, which have been verified against these solutions. These model outputs are stored as reference data and used for continuous validation whenever models in the library change.

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

Package Content

Name Description
Buildings.Fluid.SolarCollectors.Validation.FlatPlate FlatPlate Validation model for FlatPlate

Buildings.Fluid.SolarCollectors.Validation.FlatPlate Buildings.Fluid.SolarCollectors.Validation.FlatPlate

Validation model for FlatPlate

Buildings.Fluid.SolarCollectors.Validation.FlatPlate

Information

This model was used to validate the Buildings.Fluid.SolarCollectors.ASHRAE93 solar collector model against TRNSYS data. Data files are used to ensure that the Buildings.Fluid.SolarCollectors.ASHRAE93 solar collector model and the TRNSYS model use the same inlet and weather conditions. The solar collector model must reference the Buildings.Fluid.SolarCollectors.Data.GlazedFlatPlate.FP_TRNSYSValidation data record when comparing model results to the stored TRNSYS results.

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

Parameters

TypeNameDefaultDescription
replaceable package MediumBuildings.Media.WaterMedium in the system

Connectors

TypeNameDescription
replaceable package MediumMedium in the system

Modelica definition

model FlatPlate "Validation model for FlatPlate" extends Modelica.Icons.Example; replaceable package Medium = Buildings.Media.Water "Medium in the system"; Buildings.Fluid.SolarCollectors.ASHRAE93 solCol( redeclare package Medium = Medium, shaCoe=0, azi=0, per=Buildings.Fluid.SolarCollectors.Data.GlazedFlatPlate.FP_TRNSYSValidation(), energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial, rho=0.2, nColType=Buildings.Fluid.SolarCollectors.Types.NumberSelection.Number, nPanels=1, nSeg=30, lat=0.6457718232379, til=0.78539816339745) "Flat plate solar collector model, has been modified for validation purposes"; Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam= "modelica://Buildings/Resources/weatherdata/USA_CA_San.Francisco.Intl.AP.724940_TMY3.mos") "Weather data file reader"; Buildings.Fluid.Sources.Boundary_pT sou( redeclare package Medium = Medium, use_p_in=false, p(displayUnit="Pa") = 101325, nPorts=1) "Outlet for water flow"; Buildings.Fluid.Sources.MassFlowSource_T bou( nPorts=1, redeclare package Medium = Medium, use_m_flow_in=true, use_T_in=true) "Inlet for water flow, at a prescribed flow rate and temperature"; Modelica.Blocks.Sources.CombiTimeTable datRea( tableOnFile=true, tableName="TRNSYS", columns=2:5, fileName=ModelicaServices.ExternalReferences.loadResource( "modelica://Buildings/Fluid/SolarCollectors/Examples/ValidationData/TRNSYSAnnualData.txt")) "Data reader with inlet conditions from TRNSYS"; Modelica.Blocks.Math.Add add "Converts TRNSYS data from degree Celsius to Kelving"; Modelica.Blocks.Sources.Constant const(k=273.15) "Used to convert TRNSYS data from degree Celsius to Kelving"; equation connect(weaDat.weaBus, solCol.weaBus); connect(bou.ports[1], solCol.port_a); connect(const.y, add.u2); connect(add.y, bou.T_in); connect(datRea.y[1], add.u1); connect(datRea.y[4], bou.m_flow_in); connect(sou.ports[1], solCol.port_b); end FlatPlate;

Automatically generated Mon May 4 10:22:24 2015.