Buildings.Fluid.Movers.BaseClasses.Validation

Collection of validation models

Information

This package contains validation models for the classes in Buildings.Fluid.Movers.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.Movers.BaseClasses.Validation.FlowMachineInterface FlowMachineInterface Simple model to validate FlowMachineInterface
Buildings.Fluid.Movers.BaseClasses.Validation.PowerInterface PowerInterface Simple model to validate PowerInterface

Buildings.Fluid.Movers.BaseClasses.Validation.FlowMachineInterface Buildings.Fluid.Movers.BaseClasses.Validation.FlowMachineInterface

Simple model to validate FlowMachineInterface

Buildings.Fluid.Movers.BaseClasses.Validation.FlowMachineInterface

Information

Simple validation model for the flow machine interface model.

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

Modelica definition

model FlowMachineInterface "Simple model to validate FlowMachineInterface" extends Modelica.Icons.Example; Buildings.Fluid.Movers.BaseClasses.FlowMachineInterface eff( per(pressure(V_flow={0,1}, dp={1000,0})), rho_default=1.2, haveVMax=true, V_flow_max=1, nOri=2, preVar=Buildings.Fluid.Movers.BaseClasses.Types.PrescribedVariable.Speed, computePowerUsingSimilarityLaws=true) "Flow machine interface model"; Modelica.Blocks.Sources.Constant y(k=1) "Control signal"; Modelica.Blocks.Sources.Constant rho(k=1.2) "Density"; Modelica.Blocks.Sources.Ramp m_flow(height=1.2, duration=1) "Mass flow rate"; equation connect(eff.rho, rho.y); connect(m_flow.y, eff.m_flow); connect(y.y, eff.y_in); end FlowMachineInterface;

Buildings.Fluid.Movers.BaseClasses.Validation.PowerInterface Buildings.Fluid.Movers.BaseClasses.Validation.PowerInterface

Simple model to validate PowerInterface

Buildings.Fluid.Movers.BaseClasses.Validation.PowerInterface

Information

Simple validation model for the power interface model.

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

Modelica definition

model PowerInterface "Simple model to validate PowerInterface" extends Modelica.Icons.Example; Buildings.Fluid.Movers.BaseClasses.PowerInterface powCoo( motorCooledByFluid=true, delta_V_flow=0.05) "Power interface model"; Modelica.Blocks.Sources.Constant WFlo(k=1*1000) "Flow work"; Modelica.Blocks.Sources.Ramp V_flow( duration=1, height=1) "Volume flow rate"; Modelica.Blocks.Sources.Constant etaHyd(k=0.8) "Efficiency"; Modelica.Blocks.Sources.Constant PEle(k=1*1000*4) "Electrical work"; Buildings.Fluid.Movers.BaseClasses.PowerInterface powNonCoo( motorCooledByFluid=false, delta_V_flow=0.05) "Power interface model"; equation connect(powCoo.etaHyd, etaHyd.y); connect(V_flow.y, powCoo.V_flow); connect(powCoo.WFlo, WFlo.y); connect(PEle.y, powCoo.PEle); connect(powNonCoo.etaHyd, etaHyd.y); connect(V_flow.y, powNonCoo.V_flow); connect(powNonCoo.WFlo, WFlo.y); connect(PEle.y, powNonCoo.PEle); end PowerInterface;