Model of a receiver for application in vapor-cycle systems.
It inherits the basic balance equations from the volume model.
The purpose of this model is to separate the phases and provide liquid phase to the expansion valve. The liquid is extracted through a pipe. The low and high end of the pipe can be set by the respective parameters. Depending on the liquid level of the receiver, the outlet enthalpy is set:
If the liquid level is higher than the upper end of the pipe, liquid is extracted.
If the liquid level is lower then the lower end of the pipe, the actual enthalpy of the medium in the receiver is extracted.
If the liquid level is between the lower and the upper end of the pipe, the outlet enthalpy is weighted on the liquid level in the pipe.
Known problems: full phaseSeparator is very stiff, therefore simulation might get slow then, especially at the moment when the separator fills up. Consider changing the timeconstant and check if the mass-flow dynamic is fast enough.