Water Flow Sensor - MapleSim Help

Water Flow Sensor

Water rate sensor of Water

 Description The Water Flow Sensor component monitors the mass flow rate and other properties. This component assumes an ideal situation; no energy is lost between the ports.
 Equations Monitor definitions: $\mathrm{mflow}=\mathrm{port_a.mflow}$ $\mathrm{hflow}=\mathrm{actualStream}\left(\mathrm{port_a.hflow}\right)$ $\mathrm{ρ}=\mathrm{actualStream}\left(\mathrm{port_a.rho}\right)$ $T=\mathrm{actualStream}\left(\mathrm{port_a.T}\right)$ $v=\frac{\mathrm{mflow}}{\mathrm{actualStream}\left(\mathrm{port_a.rho}\right)\cdot A}$ Port's variable definitions: $\mathrm{port_a.p}=\mathrm{port_b.p}$ $\mathrm{port_a.mflow}+\mathrm{port_b.mflow}=0$ $\mathrm{port_a.hflow}=\mathrm{inStream}\left(\mathrm{port_b.hflow}\right)$ $\mathrm{port_b.hflow}=\mathrm{inStream}\left(\mathrm{port_a.hflow}\right)$ $\mathrm{port_a.rho}=\mathrm{inStream}\left(\mathrm{port_b.rho}\right)$ $\mathrm{port_b.rho}=\mathrm{inStream}\left(\mathrm{port_a.rho}\right)$ $\mathrm{port_a.T}=\mathrm{inStream}\left(\mathrm{port_b.T}\right)$ $\mathrm{port_b.T}=\mathrm{inStream}\left(\mathrm{port_a.T}\right)$

Variables

 Symbol Units Description Modelica ID $\mathrm{mflow}$ $\frac{\mathrm{kg}}{s}$ Mass flow rate mflow $v$ $\frac{m}{s}$ Velocity of flow v $\mathrm{hflow}$ $\frac{J}{\mathrm{kg}}$ Specific enthalpy hflow $\mathrm{ρ}$ $\frac{\mathrm{kg}}{{m}^{3}}$ Density rho $T$ $K$ Temperature T

Connections

 Name Units Condition Description Modelica ID $\mathrm{port__a}$  Water Port $\mathrm{port_a}$ $\mathrm{port__b}$  Water Port $\mathrm{port_b}$ $\mathrm{mflow}$  Monitor port of Mass flow rate $\mathrm{mflow}$ $\mathrm{ρ}$  Monitor port of Density $\mathrm{rho}$ $\mathrm{hflow}$  Monitor port of Specific enthalpy $\mathrm{hflow}$ $T$  Monitor port of Temperature $\mathrm{T}$ $v$  Monitor port of Velocity $\mathrm{v}$

Parameters

 Symbol Default Units Description Modelica ID $\mathrm{WaterSettings1}$ $-$ Specify a component of Water simulation settings Settings $\mathrm{Kelvin}$ $-$ Select unit of Temperature output T_UnitType $A$ $\frac{\mathrm{Pi}}{400}$ ${m}^{2}$ Flow area A