Hi,
I've been trying to create a model of a pipe, ie something which has no volume in which I can extract a certain amount of substance. This may sound trivial but it become quite hard to come up with a description which is sufficiently robust for practical use. It has a singulirity when flow is zero, I find this difficult to understand as the amount consumed is the zero at this point, setting the consumption to zero as a parameter allows the pipe model to work in both directions and zero flow.
My requirements are:
1. the pipe must be bi-directional. It's not really quite a three port junction, flow can only pass from left to right or right to left.
2. Tthe amount of substance removed is constrained to be less than or equal to the amount of substance entering. It should be possible to add substance through this mechanism also.
3. Specific enthalpy at the exit port should equal the entry port.
4. It should be based on the Modelica.Media.* so it can work with multi species substances, in particular PartialMediumMixture.
Any thoughts, anyone tried something similar.
The main driver for this is avoid having many small volumes in my model as this inherently makes a model stiff.
Thanks in advance for any suggetsions/offerings.
Regards
Mark