
modelNJunction
Splitting/joining component with static balances for an infinitesimal control volume
Extends from OpenHydraulics.Interfaces.PartialFluidComponent (Base model for any component involving fluid).
Information
This model is the simplest implementation for a splitting/joining component for
N flows. Its use is not required. It just formulates the balance
equations in the same way that the connect symmantics would formulate them anyways.
The main advantage of using this component is, that the user does not get
confused when looking at the specific enthalpy at each port which might be confusing
when not using a splitting/joining component. The reason for the confusion is that one exmanins the mixing
enthalpy of the infinitesimal control volume introduced with the connect statement when
looking at the specific enthalpy in the connector which
might not be equal to the specific enthalpy at the port in the "real world".
Parameters
| Type | Name | Default | Description |
| Integer | n_ports | 3 | Number of ports (min=1) |
| Sizing |
| SI.Volume | V | 1e-6 | Volume of junction |
| Initialization |
| Boolean | fixPressure | false | True if pressure at junction is fixed |
| Initialization › Fluid |
| SI.AbsolutePressure | p_init (from PartialFluidComponent) | environment.p_ambient | Initial temperature of the component |