Yes, I have put a fair bit of effort into this (5-10 hours sofar), and hitting failure quite a bit more, than I had hoped for, but I am also learning a lot from it, so not everything is lost.
I did manage to isolate massflow, and end up with a calculation in the end, but as another poster have...