Buildings.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 |
---|---|
IdealUser | Test model for the dummy user |
Buildings.DHC.Plants.Cooling.BaseClasses.Validation.IdealUser
Test model for the dummy user
Information
This is a simple test model for the ideal user.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Parameters
Type | Name | Default | Description |
---|---|---|---|
MassFlowRate | m_flow_nominal | 1 | Nominal mass flow rate [kg/s] |
PressureDifference | dp_nominal | 500000 | Nominal pressure difference [Pa] |
AbsolutePressure | p_Pressurisation | 300000 | Pressurisation point [Pa] |
Temperature | T_CHWR_nominal | 12 + 273.15 | Nominal temperature of CHW return [K] |
Temperature | T_CHWS_nominal | 7 + 273.15 | Nominal temperature of CHW supply [K] |
Boolean | allowFlowReversal | false | Flow reversal setting |
Power | QCooLoa_flow_nominal | 5*4200*0.9 | Nominal 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.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;