seemingly wrong power given by Simscape block Compressor(G) and Turbine(G)
40 views (last 30 days)
Show older comments
Hello. I am recently playing with the Brayton Cycle Gas Turbine example. After I entered the component maps and other inputs, the calculated dynamics seemed much off. In specific, I entered steady-state data with the fluid power of both the compressor and the turbine of about 300kW, but the gas generator speed dropped continuously. I then looked at the logged data and found that the power was much different: the fluid power of the turbine was lower than expected and even lower than that of the compressor. I checked other variables like pressures, temperatures, and isentropic efficiencies, but they all seemed correct, which should give correct powers in theory. I then calculated the fluid power using the mass flow rate times the specific enthalpy change across the component and found them correct and congruent with the temperature and specific heat capacity data, with the turbine fluid power higher than that of the compressor. However, the energy inflow and outflow (Phi_A and Phi_B in the block) were inconsistent with the enthalpy data, which are shown below. The above analysis led me to suspect that the problem is from the Simscape block itself. I performed the same procedure to the original example and observed that the fluid power was still lower than that calculated from enthalpy change, shown below. Could anybody provide some hints on this issue?


3 Comments
Yifeng Tang
on 29 Dec 2025 at 14:31
I see what you are asking now. Through a component like compressor or turbine, the change in the energy flow (Phi) is usually the same as shaft work, i.e. Phi_A + Phi_B + W = 0, with positive sign meaning energy flow or power into the component. The energy flow (Phi) is closely related to the mass flow (mdot), but NOT the same as mdot*H_A. There is an additional mdot*V^2/2 term, V being the bulk flow velocity at the port, to account for the kinetic energy term. To view this part of the code, you may go the the source code of foundation library components like flow resistance, local restriction, pipe, etc, and get the almost the very end. You may find some code like this:

The "founcation.gas.port_convection" subroutine defines the total energy flow Phi. You can select the whole string and right click to open it. Towards the end, you will see code that includes the V^2/2 term and the upwinding numerical scheme:

Hope this explains the difference you saw.
Answers (0)
See Also
Categories
Find more on Gas Library 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!