I have a distributed pipe model connected to a hydraulic port with “potential” p (pressure), and mass flow rate as Flow.
So with two PDEs (one in pressure, one in mass flow rate) + some AEs, what is the correct way to connect the model to the ports at each end? For a well posed system, there should be one BC at each end.
-
Is this handled automatically when I connect the pipe model to other components, such as a reservoir (with a fixed pressure) or a valve (with an inlet pressure)?
-
Should I set the computed pressure in p[1] equal to the port pressure? And p[N] equal to the other port pressure?
-
Or should I set mass flow at cell center 1 equal to the inlet flow? Etc.?
-
Or something more intricate?