Numerically Integrating Engine P-v diagram

I am currently trying to find the net work out of an engine power stroke by numerically integrating a pressure vs volume diagram I have made. Currently, I belive the trapz function is not finding the net area/not subtracting the area as the integration sweeps back to towards the starting point since the value I am getting is much higher than my calculation using Mean Effective Pressure. Is there a easy way to numerically integrate to find net/enclosed area? Thanks!
p0apsi=p0a.*bar; %pressure 0 advance in psi
power0a=(trapz(V,p0apsi))/12; %net work out [ft-lb]
output:363.5378
MEP Calculation: 275.5214

2 件のコメント

David Goodmanson
David Goodmanson 2022 年 3 月 30 日
HI Evan,
Is the squished ellipse at the bottom of the plot an intentional part of the cycle?
Daniel Dos Santos
Daniel Dos Santos 2023 年 4 月 3 日
I believe that it is

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

リリース

R2020a

質問済み:

2022 年 3 月 26 日

コメント済み:

2023 年 4 月 3 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by