David vizard has a theory and is developing some software for calculating port energy. Which talks about a lot of the issues in your post. Lot of discussion on the speedtalk forum

https://www.pistonheads.com/gassing/topic.asp?t=1096171