I'm working on a university project for my masters and am getting a recurring problem when using flow simulation.
My aim is to calculate the coefficient of performance for a spear valve under different flow rates and spear positions. I've set an inlet flow and outlet pressure of 1atm and asked solidworks to calculate the total inlet pressure, total outlet pressure as well as some other parameters. Each time I run the simulation my total outlet pressure is slightly higher than my total inlet pressure.
Aside from this obviously being impossible I've set equations to calculate the energy loss through heat by taking the mean inlet and outlet temperatures and am consistently getting an energy loss which must come (I think) from turning pressure energy into heat energy.
Has anyone encountered a similar problem before/has any ideas on what I might be doing wrong?