Buildings.Fluid.MixingVolumes.BaseClasses.Validation

Collection of validation models

Information

This package contains validation models for the classes in Buildings.Fluid.MixingVolumes.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.MixingVolumes.BaseClasses.Validation.MixingVolumeHeatMoisturePort MixingVolumeHeatMoisturePort Validation model for setting the initialization of the pressure for model with moisture port
Buildings.Fluid.MixingVolumes.BaseClasses.Validation.MixingVolumeHeatPortAir MixingVolumeHeatPortAir Validation model for setting the initialization of the pressure for air
Buildings.Fluid.MixingVolumes.BaseClasses.Validation.MixingVolumeHeatPortWater MixingVolumeHeatPortWater Validation model for setting the initialization of the pressure for water

Buildings.Fluid.MixingVolumes.BaseClasses.Validation.MixingVolumeHeatMoisturePort Buildings.Fluid.MixingVolumes.BaseClasses.Validation.MixingVolumeHeatMoisturePort

Validation model for setting the initialization of the pressure for model with moisture port

Buildings.Fluid.MixingVolumes.BaseClasses.Validation.MixingVolumeHeatMoisturePort

Information

Model that validates that the initial conditions are uniquely set and not overdetermined.

Extends from Buildings.Fluid.MixingVolumes.BaseClasses.Validation.MixingVolumeHeatPortWater (Validation model for setting the initialization of the pressure for water).

Parameters

TypeNameDefaultDescription
replaceable package MediumWaterMedium model
IntegernEle3Number of volumes

Connectors

TypeNameDescription
replaceable package MediumMedium model

Modelica definition

model MixingVolumeHeatMoisturePort "Validation model for setting the initialization of the pressure for model with moisture port" extends Buildings.Fluid.MixingVolumes.BaseClasses.Validation.MixingVolumeHeatPortWater ( redeclare package Medium = Buildings.Media.Air, redeclare Buildings.Fluid.MixingVolumes.BaseClasses.MixingVolumeHeatMoisturePort vol); Modelica.Blocks.Sources.Constant const[nEle](each k=0) "Zero input signal"; equation connect(const.y, vol.mWat_flow); end MixingVolumeHeatMoisturePort;

Buildings.Fluid.MixingVolumes.BaseClasses.Validation.MixingVolumeHeatPortAir Buildings.Fluid.MixingVolumes.BaseClasses.Validation.MixingVolumeHeatPortAir

Validation model for setting the initialization of the pressure for air

Buildings.Fluid.MixingVolumes.BaseClasses.Validation.MixingVolumeHeatPortAir

Information

Model that validates that the initial conditions are uniquely set and not overdetermined for water.

Extends from Buildings.Fluid.MixingVolumes.BaseClasses.Validation.MixingVolumeHeatPortWater (Validation model for setting the initialization of the pressure for water).

Parameters

TypeNameDefaultDescription
replaceable package MediumWaterMedium model
IntegernEle3Number of volumes
MixingVolumeHeatPortvol[nEle]redeclare Buildings.Fluid.Mi...Mixing volume

Connectors

TypeNameDescription
replaceable package MediumMedium model

Modelica definition

model MixingVolumeHeatPortAir "Validation model for setting the initialization of the pressure for air" extends Buildings.Fluid.MixingVolumes.BaseClasses.Validation.MixingVolumeHeatPortWater ( redeclare package Medium = Buildings.Media.Air); end MixingVolumeHeatPortAir;

Buildings.Fluid.MixingVolumes.BaseClasses.Validation.MixingVolumeHeatPortWater Buildings.Fluid.MixingVolumes.BaseClasses.Validation.MixingVolumeHeatPortWater

Validation model for setting the initialization of the pressure for water

Buildings.Fluid.MixingVolumes.BaseClasses.Validation.MixingVolumeHeatPortWater

Information

Model that validates that the initial conditions are uniquely set and not overdetermined.

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

Parameters

TypeNameDefaultDescription
replaceable package MediumBuildings.Media.WaterMedium model
IntegernEle3Number of volumes
MixingVolumeHeatPortvol[nEle]redeclare Buildings.Fluid.Mi...Mixing volume

Connectors

TypeNameDescription
replaceable package MediumMedium model

Modelica definition

model MixingVolumeHeatPortWater "Validation model for setting the initialization of the pressure for water" extends Modelica.Icons.Example; replaceable package Medium = Buildings.Media.Water constrainedby Modelica.Media.Interfaces.PartialMedium "Medium model"; parameter Integer nEle(min=2)= 3 "Number of volumes"; replaceable Buildings.Fluid.MixingVolumes.BaseClasses.MixingVolumeHeatPort vol[nEle] constrainedby Buildings.Fluid.MixingVolumes.BaseClasses.MixingVolumeHeatPort ( redeclare each package Medium = Medium, each energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial, final initialize_p={(i == 1 and not Medium.singleState) for i in 1:nEle}, each m_flow_nominal=1, each V=1, each nPorts=2) "Mixing volume"; Buildings.Fluid.FixedResistances.PressureDrop res( redeclare package Medium = Medium, m_flow_nominal=1, dp_nominal=1000) "Pressure drop"; Buildings.Fluid.Sources.Boundary_pT bou( redeclare package Medium = Medium, nPorts=1) "Boundary condition"; Buildings.Fluid.FixedResistances.PressureDrop res1( redeclare package Medium = Medium, m_flow_nominal=1, dp_nominal=1000) "Pressure drop"; Buildings.Fluid.Sources.Boundary_pT bou1( redeclare package Medium = Medium, nPorts=1) "Boundary condition"; equation connect(bou.ports[1], res.port_a); connect(res.port_b, vol[1].ports[1]); for i in 1:nEle-1 loop connect(vol[i].ports[2], vol[i+1].ports[1]); end for; connect(res1.port_b, vol[nEle].ports[2]); connect(bou1.ports[1], res1.port_a); end MixingVolumeHeatPortWater;