Buildings.Fluid.HeatPumps.BaseClasses.Validation

Collection of validation models

Information

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

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.HeatPumps.BaseClasses.Validation.EquationFitReversible EquationFitReversible Validation of the equation fit method implemented in the reversible heat pump model

Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible

Validation of the equation fit method implemented in the reversible heat pump model

Buildings.Fluid.HeatPumps.BaseClasses.Validation.EquationFitReversible

Information

This model implements a validation of the block Buildings.Fluid.HeatPumps.BaseClasses.EquationFitReversible that applies the equation fit method used for Buildings.Fluid.HeatPumps.EquationFitReversible.

Parameters

TypeNameDefaultDescription
MassFlowRatemSou_flow_nominalper.hea.mSou_flowSource heat exchanger nominal mass flow rate [kg/s]
MassFlowRatemLoa_flow_nominalper.hea.mLoa_flowLoad heat exchanger nominal mass flow rate [kg/s]
Trane_Axiom_EXW240per Performance data

Modelica definition

model EquationFitReversible "Validation of the equation fit method implemented in the reversible heat pump model" package Medium = Buildings.Media.Water "Medium model"; parameter Modelica.Units.SI.MassFlowRate mSou_flow_nominal=per.hea.mSou_flow "Source heat exchanger nominal mass flow rate"; parameter Modelica.Units.SI.MassFlowRate mLoa_flow_nominal=per.hea.mLoa_flow "Load heat exchanger nominal mass flow rate"; parameter Data.EquationFitReversible.Trane_Axiom_EXW240 per "Performance data"; BaseClasses.EquationFitReversible equFit( per=per, scaling_factor=1) "Performance model for equation fit"; Modelica.Blocks.Math.RealToInteger reaToInt "Real to integer conversion"; Modelica.Blocks.Sources.Sine uMod(amplitude=1, f=1/2600) "Heat pump operates in heating mode"; Modelica.Blocks.Sources.Sine Q_flow_set(amplitude=5000, f=1/2600) "Set point for heat flow rate"; Controls.OBC.CDL.Reals.Sources.Constant mLoa_flow(k=1.89) "Mass flow rate entering load heat exchanger side"; Controls.OBC.CDL.Reals.Sources.Sin TLoaEnt( amplitude=10, freqHz=1/2600, offset=25 + 273.15, startTime=0) "Load side entering water temperature"; Controls.OBC.CDL.Reals.Sources.Constant mSou_flow(k=1.89) "Mass flow rate entering source heat exchanger side"; Controls.OBC.CDL.Reals.Sources.Sin TSouEnt( amplitude=5, freqHz=1/2600, offset=15 + 273.15, startTime=0) "Source side entering water temperature"; equation connect(reaToInt.u,uMod. y); connect(reaToInt.y, equFit.uMod); connect(Q_flow_set.y, equFit.Q_flow_set); connect(mLoa_flow.y, equFit.mLoa_flow); connect(TLoaEnt.y, equFit.TLoaEnt); connect(mSou_flow.y, equFit.mSou_flow); connect(TSouEnt.y, equFit.TSouEnt); end EquationFitReversible;