Evaporator heat-flow reversed in refrigerant loop model (Simscape)

5 Commenti
Hi @Aiden,
I took a close look at your block diagram screenshot and went through your comments, then dug into the Simscape Two-Phase Fluid documentation to figure out what's going on with your evaporator.
Your evaporator temperature behavior (T_B > T_A) is totally normal! Refrigerant enters at saturation temperature and leaves superheated, so temperature naturally rises as heat is absorbed. Heat is flowing in correctly and the temperature rise is what should happen when refrigerant evaporates and superheats.
The problem is the superheat decreasing when you close the valve. This is most likely because:
- You're calculating superheat wrong (using T_B - T_A instead of T_B - T_sat)
- Or you're seeing transient pressure effects
- Or there's thermal lag in your system
- Or maybe your thermal boundary connections are backwards
Next steps:
1. Add a Saturation Properties Sensor at the evaporator inlet 2. Calculate superheat properly: T_outlet - T_sat(P_inlet) 3. Monitor through valve transients and check steady-state behavior 4. Verify your thermal boundary conditions are hooked up right
Once you add those sensors and check the actual superheat calculation, let me know what you see. If it's still decreasing when the valve closes (after reaching steady state), then we can dig deeper into the dynamics.
Hi @Aiden,
Thanks for the update and glad my earlier comments helped you narrow this down.
What you’re seeing fits well with how the Two-Phase Fluid and Thermal Liquid libraries work:
- The Two-Phase Fluid model captures phase change and saturation, so it’s expected that the outlet temperature is higher than the inlet due to superheating as the refrigerant absorbs heat and evaporates.
- The Thermal Liquid model, however, does *not*model phase changes or saturation. Because of that, it’s normal for the outlet temperature to be lower than the inlet, even though heat transfer direction is the same. Since it’s simulating a single-phase fluid, the temperature behaves differently compared to the two-phase refrigerant.
This means superheat calculations only make sense for the Two-Phase model. Using superheat in Thermal Liquid won’t give physically meaningful results, so control signals based on that may behave unexpectedly.
I tried to open your GitHub model, but I don’t have Simulink access to inspect the .slx files directly. If you can share a simplified version — maybe just the screenshot of Simscape blocks without the configuration scripts — or a MATLAB-only representation, I’d be happy to take a closer look and help suggest how to approximate evaporator-like temperature rise in the Thermal Liquid model. This would help you validate your controller before migrating fully to the Two-Phase Fluid library.
Let me know what you think!
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Two-Phase Fluid Library in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!