Simscape 2P energy conservation bug ?
Show older comments
Hello everyone,
I'd like to report something which I think could be a bug ?
I attached a very simple model showcasing the effect presented below.
I have a tank of steam discharging into a translation mechanical converter (so a piston), no heat losses/gains, no friction etc.. It is linked to a spring just so that it reaches an equilibrium after some time.
The piston moves just like expected but the enthalpy and temperature inside it does not: it actually goes higher than the supply !! Whereas initial conditions in the cylinder are colder than the supply.
I can't think of this being possible in real world physics or am I missing something ??
Thanks, have fun !

3 Comments
Joris Naudin
on 25 Mar 2021
Yifeng Tang
on 29 Apr 2021
Hi Joris,
This is indeed an interesting case. While I can confirm the "total" energy of the system didn't increase by looking into the simlog data, I too wonder whether the initial temperature and enthalpy jump is physical or just some numerical weirdness. Will follow up.
Joris Naudin
on 29 Apr 2021
Accepted Answer
More Answers (0)
Categories
Find more on Sources 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!


