modelMixingVolumeZeroFlow
Mixing volume verification around zero flow with heat exchange
Extends from Modelica.Icons.Example.
Information
This model verifies whether the equations in
BuildingSystems.Fluid.Interfaces.StaticTwoPortConservationEquation
are consisent for all foreseeable cases.
All MixingVolume instances contain the correct
setting for prescribedHeatFlowRate.
Switching the value will result in an error in each case.
This error either is a non-physical solution to the (non-)linear system
or a division by zero, which halts the simulation.
If you use Dymola, set Advanced.Define.AimForHighAccuracy = false to
increase the chance of the error being produced for this simple example.
Components
| Type | Name | Default | Description |
|---|---|---|---|
| BuildingSystems.Fluid.MixingVolumes.MixingVolume | volNonLinSys | Steady state mixing volume requiring solution of non-linear system | |
| BuildingSystems.Fluid.Sources.MassFlowSource_T | sou2 | Source | |
| BuildingSystems.Fluid.Sources.Boundary_pT | sin | Sink | |
| Modelica.Blocks.Sources.Ramp | ramp_m_flow | Mass flow rate ramp input | |
| Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow | preHea2 | Prescribed heat flow | |
| Modelica.Blocks.Sources.RealExpression | reaExp | Non-linear thermal resistance equation | |
| Modelica.Thermal.HeatTransfer.Sources.PrescribedTemperature | preTem | Prescribed temperature | |
| Modelica.Blocks.Sources.Cosine | cos1 | Cosine input | |
| BuildingSystems.Fluid.MixingVolumes.MixingVolume | volT | Steady state mixing volume with prescribed temperature input | |
| BuildingSystems.Fluid.Sources.MassFlowSource_T | sou3 | Source | |
| BuildingSystems.Fluid.MixingVolumes.MixingVolume | volLinSys | Steady state mixing volume requiring solution of linear system | |
| BuildingSystems.Fluid.Sources.MassFlowSource_T | sou4 | Source | |
| Modelica.Thermal.HeatTransfer.Components.ThermalResistor | theRes | Thermal resistor for creating linear system | |
| Modelica.Blocks.Sources.Ramp | ramp_T | Temperature ramp input | |
| Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlow | preHea1 | Prescribed heat flow | |
| BuildingSystems.Fluid.MixingVolumes.MixingVolume | volQflow | Steady state mixing volume with fixed heat flow rate input | |
| BuildingSystems.Fluid.Sources.MassFlowSource_T | sou1 | Source | |
| Modelica.Blocks.Routing.RealPassThrough | reaPasThr | Real pass through for unit conversion |
Contents
| Name | Description |
|---|---|
| Medium |
Revisions
-
January 27, 2016, by Filip Jorissen:
Changed heat flow rate at zero flow to avoid triggering of conservation of energy check. This is for issue 470. -
November 2, 2016, by Michael Wetter:
Removed assertion as the variable that are tested are already part of the regression test. Also, the previous implementation mixed graphical with textual programming, which we try to avoid.
This is for issue 441. -
January 27, 2016, by Michael Wetter:
Removed algorithm specification in experiment annotation. -
July 2, 2015 by Michael Wetter:
Revised example. -
June 30, 2015 by Filip Jorissen:
First implementation to test issue 282.