.StreamConnectors.Interfaces.FluidPort

Information

The simples possible stream connector using

Specific enthalpy vs. temperature

Why use specific enthalpy instead of temperature as stream variable when temperature seems more intuitive?


The answer is "automatic mixing equation": When you connect more than two stream connectors, the Modelica tool can automatically calculate the mixing enthalpy from knowledge of the flow directions, since m1*h1 + m2*h2 + ... + mN*hN = 0. This also means that it is not strictly necessary to create specific mixer/splitter components.

Why 'h_outflow'

Why is the enthalpy named h_outflow and not just h?

The reason is, that the variable is only relevant when the flow 'goes out' of the component to which the connector is attached.

Yes, really. If you want to know the value of the ingoing enthalpy after a simulation, you shold look at the value of h_outflow of the adjacent component (from which the mass flow 'goes out').

If a component needs to access the ingoing enthalpy it should use one of the functions inStream() or actualStream().


Generated at 2024-12-26T19:25:54Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos