Buildings.Fluid.BaseClasses.Validation

Collection of validation models

Information

This package contains validation models for the classes in Buildings.Fluid.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.BaseClasses.Validation.ActuatorFilter ActuatorFilter Validation model for the actuator filter
Buildings.Fluid.BaseClasses.Validation.MassFlowRateMultiplier MassFlowRateMultiplier Example use of MassFlowRateMultiplier

Buildings.Fluid.BaseClasses.Validation.ActuatorFilter Buildings.Fluid.BaseClasses.Validation.ActuatorFilter

Validation model for the actuator filter

Buildings.Fluid.BaseClasses.Validation.ActuatorFilter

Information

This example validates Buildings.Fluid.BaseClasses.ActuatorFilter. The validation is done for different settings of u_nominal and for different start values of the filter output.

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

Parameters

TypeNameDefaultDescription
TimeriseTime10Cut-off frequency of filter [s]

Modelica definition

model ActuatorFilter "Validation model for the actuator filter" extends Modelica.Icons.Example; parameter Modelica.Units.SI.Time riseTime=10 "Cut-off frequency of filter"; final parameter Modelica.Units.SI.Frequency fCut=5/(2*Modelica.Constants.pi* riseTime) "Cut-off frequency of filter"; Buildings.Fluid.BaseClasses.ActuatorFilter act_1(f=fCut, initType=Modelica.Blocks.Types.Init.InitialState) "Filter with u_nominal not set"; Buildings.Fluid.BaseClasses.ActuatorFilter act_2(f=fCut, initType=Modelica.Blocks.Types.Init.InitialState) "Filter with u_nominal set to 100"; Modelica.Blocks.Math.Gain gain(k=100) "Gain for input signal"; Modelica.Blocks.Sources.Step step(startTime=0); Buildings.Fluid.BaseClasses.ActuatorFilter act_y_start05( f=fCut, initType=Modelica.Blocks.Types.Init.InitialOutput, y_start=0.5) "Filter with initial start value for output"; Buildings.Fluid.BaseClasses.ActuatorFilter act_y_start1( f=fCut, initType=Modelica.Blocks.Types.Init.InitialOutput, y_start=1) "Filter with initial start value for output"; equation connect(act_2.u, gain.y); connect(step.y, act_1.u); connect(step.y, gain.u); connect(act_y_start05.u, step.y); connect(act_y_start1.u, step.y); end ActuatorFilter;

Buildings.Fluid.BaseClasses.Validation.MassFlowRateMultiplier Buildings.Fluid.BaseClasses.Validation.MassFlowRateMultiplier

Example use of MassFlowRateMultiplier

Buildings.Fluid.BaseClasses.Validation.MassFlowRateMultiplier

Information

This example demonstrates the use of Buildings.Fluid.BaseClasses.MassFlowRateMultiplier.

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

Modelica definition

model MassFlowRateMultiplier "Example use of MassFlowRateMultiplier" extends Modelica.Icons.Example; package Medium = Buildings.Media.Water; Buildings.Fluid.BaseClasses.MassFlowRateMultiplier massFlowRateMultiplier( redeclare package Medium = Medium, k=5) "Mass flow rate multiplier"; Modelica.Blocks.Sources.Ramp ram_m_flow( height=10, duration=10, offset=0) "Mass flow rate ramp"; Buildings.Fluid.Sources.MassFlowSource_T sou( redeclare package Medium = Medium, use_m_flow_in=true, nPorts=1) "Mass flow source"; Buildings.Fluid.Sources.Boundary_pT sin( redeclare package Medium = Medium, nPorts=1) "Mass flow sink"; equation connect(ram_m_flow.y, sou.m_flow_in); connect(sou.ports[1], massFlowRateMultiplier.port_a); connect(massFlowRateMultiplier.port_b, sin.ports[1]); end MassFlowRateMultiplier;