modelMassAccumulation
Validation model for conservation equation
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
Validation model that injects a constant mass flow rate of air into a control volume.
The model also computes the solution using a variable assignment to mWatExp
which can be compared to the actual water mass mWat.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.MassFraction | X_w | 0.01 | Water mass fraction |
| Real | C | 1e-3 | Trace substance |
| Modelica.Units.SI.MassFlowRate | m_flow | 0.01 | Mass flow rate |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Fluid.MixingVolumes.MixingVolume | vol | Fluid volume | |
| Buildings.Fluid.Sources.MassFlowSource_T | sou | Inflow with the same composition as the volume | |
| Modelica.Units.SI.Mass | mWat | vol.mXi[1] | Water mass in volume |
| Modelica.Units.SI.Mass | mAir | vol.mXi[1]/vol.Xi[1] | Air mass in volume |
| Modelica.Units.SI.Mass | mWatExp | vol.V*1.2*X_w + m_flow*X_w*time | Water that entered |
Contents
| Name | Description |
|---|---|
| Air media |
Revisions
-
October 9, 2026, by Michael Wetter:
First implementation, for IBPSA, #2186.