Simple control volume for vle fluids. The volume has a heat port and variable number of fluid ports.
L2: Model ist based on law of conservation of mass or volume. Fluid in the volume is assumed to be idaelly stirred, so the fluid in the volume has one temperature and one pressure. Kinetic energy and potential energy are neglected.
Model is only valid for single phase fluids and nor pressure losses are included.
heatPort: model gives temperature and may get heat flow
ports[nPorts]: a variable number of fluid ports
nPorts: number of fluid connections to the volume
V_const: Volume of Fluid
The governing equations are law of conservation of mass or volume and the conservation of energy. The balance of mass is described in tne formula below. You can choose to use a steady state mass balance. In this case the sum of entering and leaving mass flow is to be zero.
The conservation of energy is shown in the following formula. The kinetic and potential energy are neglected. The amount of energy in the volume can be changed due to heat transfer or mass transfer (konvektive energy). There is no possibilty to add direct electrical or mechanical energy.
Image at src="Sketchbook/tr/Thermal/Images/equations/energy_balance.png" missing
The simulation should be performed with steady mass balance. The inflowing an outflowing mass has always the same amount. On the other hand the simulation could also be performed with assuming constant fluid volume. The mass increases or decreases due to temperature
(no validation)
(no remarks)
Model created by Tobias Ramm (tobias.ramm@tuhh.de) on Fri Mar 20 2015
Revised and edited by Lisa Andresen (andresen@tuhh.de), Jun 2015