How does the Positive-Displacement Compressor (2P) compute the fluid power?
Show older comments
What is the energy balance equation of the Positive-Displacement Compressor (2P) block to calculate the fluid power? The documentation says the fluid power is equal to Wc_dot in the polytropic case, yet the Wc_dot does not equal to the energy flow or the enthalpy change of the refrigerant through the block. Wc_dot actually equals to mechanical power * mechanical efficiency based on my calculation using a test model. And the fluid power is equal to the enthapy change of the refrigerant in my test model, which corresponds to the isentropic thermodynamics model in the document. However, I am using the polytropic thermodynamics model in my test model.
4 Comments
Yifeng Tang
on 28 Jan 2026
Question for you: how are you measureing the "energy flow" right now? Are you using the energy flow from the Flow Rate Sensor, or you are using the product of mass flow & specific enthalpy?

Could you try both and see if you get the same results?
Yingxuan
on 28 Jan 2026
Yifeng Tang
on 29 Jan 2026
Hi @Yingxuan, this is a good sign :) Is it possible for you to share your test model and point to the quantities that you were looking at and found mismatched?
Yingxuan
on 30 Jan 2026
Accepted Answer
More Answers (0)
Categories
Find more on Gas Models in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!