Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples

Information

This package contains examples for the use of models that can be found in Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.

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

Package Content

Name Description
Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.Convector Convector  
Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline DerivateCubicSpline  
Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.ModificationFactor ModificationFactor  

Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.Convector Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.Convector


Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.Convector

Information

The example tests the implementation of Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Convector. The room air temperature and the water mass flow rate are constant while the air flow rate varys with a ramp.

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

Modelica definition

model Convector extends Modelica.Icons.Example; package Medium = Buildings.Media.Water "Water model"; Buildings.Fluid.Sources.MassFlowSource_T wat( redeclare package Medium = Medium, m_flow=0.094, T=288.15, nPorts=1); Buildings.Fluid.Sources.FixedBoundary bou( redeclare package Medium = Medium, nPorts=1) "Pressure boundary condition"; Modelica.Blocks.Sources.Ramp airFlo(height=0.0792, duration=4) "Air mass flow rate"; Modelica.Blocks.Sources.Constant rooTem(k=273.15 + 25) "Room air temperature"; Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Convector con( redeclare package Medium = Medium, nBeams=1, energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial, per( mAir_flow_nominal=0.0792, mWat_flow_nominal=0.094, dT_nominal=-10, Q_flow_nominal=1092, dpWat_nominal=10000, dpAir_nominal=100)) "Convector model"; Buildings.Fluid.Sensors.TemperatureTwoPort senTem( redeclare package Medium = Medium, m_flow_nominal=0.094) "Temperature sensor"; equation connect(airFlo.y, con.mAir_flow); connect(rooTem.y, con.TRoo); connect(con.port_b, senTem.port_a); connect(senTem.port_b, bou.ports[1]); connect(wat.ports[1], con.port_a); end Convector;

Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline


Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline

Information

The example tests the implementation of Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.DerivatesCubicSpline. Default vectors are: x=[0,0.5,1] and y=[0,0.75,1]. Input to the model is the simulation time.

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

Modelica definition

model DerivateCubicSpline extends Modelica.Icons.Example; Modelica.Blocks.Sources.Clock clock "Clock"; Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.DerivativesCubicSpline cubSpl "Derivatives of cubic spline"; equation connect(clock.y, cubSpl.u); end DerivateCubicSpline;

Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.ModificationFactor Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.ModificationFactor


Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.ModificationFactor

Information

This example tests the implementation of Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.ModificationFactor.

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

Modelica definition

model ModificationFactor extends Modelica.Icons.Example; Modelica.Blocks.Sources.Constant const1(k=20) "Constant input signal"; Modelica.Blocks.Sources.Ramp ramp(height=0.0792, duration=1) "Ramp input signal"; Modelica.Blocks.Sources.Ramp ramp1(height=0.094, duration=1) "Ramp input signal"; Modelica.Blocks.Sources.Ramp ramp2( height=27.8, duration=1, offset=20) "Ramp input signal"; Buildings.Fluid.HeatExchangers.ActiveBeams.BaseClasses.ModificationFactor mod( nBeams=1, per( Q_flow_nominal=0.094*2*4200, mAir_flow_nominal=0.0792, mWat_flow_nominal=0.094, dT_nominal=27.8, dpWat_nominal=10000, dpAir_nominal=100)) "Modification factor"; equation connect(ramp.y, mod.mAir_flow); connect(ramp1.y, mod.mWat_flow); connect(ramp2.y, mod.TWat); connect(const1.y, mod.TRoo); end ModificationFactor;