Buildings.Experimental.DHC.Plants.Cooling.BaseClasses.Validation

Package containing validation models

Information

Package containing validation models for the base classes.

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

Package Content

Name Description
Buildings.Experimental.DHC.Plants.Cooling.BaseClasses.Validation.IdealUser IdealUser Test model for the dummy user

Buildings.Experimental.DHC.Plants.Cooling.BaseClasses.Validation.IdealUser Buildings.Experimental.DHC.Plants.Cooling.BaseClasses.Validation.IdealUser

Test model for the dummy user

Buildings.Experimental.DHC.Plants.Cooling.BaseClasses.Validation.IdealUser

Information

This is a simple test model for the ideal user.

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

Parameters

TypeNameDefaultDescription
MassFlowRatem_flow_nominal1Nominal mass flow rate [kg/s]
PressureDifferencedp_nominal500000Nominal pressure difference [Pa]
AbsolutePressurep_Pressurisation300000Pressurisation point [Pa]
TemperatureT_CHWR_nominal12 + 273.15Nominal temperature of CHW return [K]
TemperatureT_CHWS_nominal7 + 273.15Nominal temperature of CHW supply [K]
BooleanallowFlowReversalfalseFlow reversal setting
PowerQCooLoa_flow_nominal5*4200*0.9Nominal cooling load of one consumer [W]

Modelica definition

model IdealUser "Test model for the dummy user" extends Modelica.Icons.Example; package Medium = Buildings.Media.Water "Medium model"; parameter Modelica.Units.SI.MassFlowRate m_flow_nominal=1 "Nominal mass flow rate"; parameter Modelica.Units.SI.PressureDifference dp_nominal=500000 "Nominal pressure difference"; parameter Modelica.Units.SI.AbsolutePressure p_Pressurisation=300000 "Pressurisation point"; parameter Modelica.Units.SI.Temperature T_CHWR_nominal( final displayUnit="degC")=12+273.15 "Nominal temperature of CHW return"; parameter Modelica.Units.SI.Temperature T_CHWS_nominal( final displayUnit="degC")=7+273.15 "Nominal temperature of CHW supply"; parameter Boolean allowFlowReversal=false "Flow reversal setting"; parameter Modelica.Units.SI.Power QCooLoa_flow_nominal=5*4200*0.9 "Nominal cooling load of one consumer"; Buildings.Experimental.DHC.Plants.Cooling.BaseClasses.IdealUser ideUse( redeclare final package Medium = Medium, final m_flow_nominal=m_flow_nominal, T_CHWR_nominal=T_CHWR_nominal, final dp_nominal=dp_nominal) "Ideal user"; Buildings.Fluid.Sources.Boundary_pT sin( redeclare final package Medium = Medium, final p=p_Pressurisation, final T=T_CHWR_nominal, nPorts=1) "Sink representing CHW return line"; Buildings.Fluid.Sources.Boundary_pT sou( redeclare final package Medium = Medium, final p=p_Pressurisation+dp_nominal, final T=T_CHWS_nominal, nPorts=1) "Source representing CHW supply line"; Modelica.Blocks.Sources.TimeTable mPre_flow(table=[0*3600,0; 0.5*3600,0; 0.5* 3600,m_flow_nominal; 0.75*3600,m_flow_nominal; 0.75*3600,0; 1*3600,0]) "Prescribed flow rate representing cooling load"; equation connect(sou.ports[1],ideUse. port_a); connect(ideUse.port_b, sin.ports[1]); connect(mPre_flow.y, ideUse.mPre_flow); end IdealUser;