Error calculating specific heat and constant pressure

조회 수: 3 (최근 30일)
TiffyEng
TiffyEng 2021년 1월 31일
댓글: wwmathchat 2021년 7월 6일
I get an error when compiling my Simscape model using a real gas specification.
Elements of Specific heat at constant pressure table must be greater than (Temperature) * (Specific volume) * (Isothermal bulk modulus) * (Isobaric thermal expansion coefficient)^2.
I verified my real gas data using the expression:
cv_TLU2 = cp_TLU2 - repmat(T_TLU2(:), 1, n) .* alpha_TLU2.^2 .* beta_TLU2 ./ rho_TLU2;
In all cases the value that I get from this is positive and also in all cases Cp is greater than the product "(Temperature) * (Specific volume) * (Isothermal bulk modulus) * (Isobaric thermal expansion coefficient)^2".
In fact I checked the output of that expression against known Cv data for this gas and it it matches exactly so I can't understand how Simscape finds an error with this.

채택된 답변

TiffyEng
TiffyEng 2021년 2월 1일
This has been resolved. The wrong units were used to generate the Isobaric Thermal Expansion array.
  댓글 수: 1
wwmathchat
wwmathchat 2021년 7월 6일
I'm having the same problem. Could you clarify whether you fixed the problem by changing your inputs or the gas_properties.ssc file?
I'm using MPa for the Isothermal bulk modulus (beta_TLU2). From what I can tell, the units of this equation are not consistent, unless Isothermal bulk modulus is in kPA. Is this correct?
cv_TLU2 = cp_TLU2 - repmat(T_TLU2(:), 1, n) .* alpha_TLU2.^2 .* beta_TLU2 ./ rho_TLU2;

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Gas Models에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by