How to create an integral function? Trying to solve Cp_b between 2 numbers

%%Calculate Benzene Duty Q
%From Perry's table 2-153 values for Benzene
C1_b = 162940; %in J/kmol*K
C2_b = -344.94; %in J/kmol*K^2
C3_b = 0.85562; %in J/kmol*K^3
funcCp_b = @(T) (C1_b) + (C2_b*T) + (C3_b*T^2);
Cp_b = int(funcCp_b,T, 379.25, 286.15)

답변 (1개)

madhan ravi
madhan ravi 2020년 2월 22일
편집: madhan ravi 2020년 2월 22일
clear all
%%Calculate Benzene Duty Q
%From Perry's table 2-153 values for Benzene
C1_b = 162940; %in J/kmol*K
C2_b = -344.94; %in J/kmol*K^2
C3_b = 0.85562; %in J/kmol*K^3
funcCp_b = @(T) (C1_b) + (C2_b*T) + (C3_b*T.^2);
Cp_b = integral(funcCp_b, 379.25, 286.15)

댓글 수: 4

displays this error when i tried your code;
Error: File: HeatExchangerDesignEX3503.m Line: 19 Column: 60
Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.
I have this at the end, i do not understand why this isnt working also? Trying to solve for T2
syms T2
TempCumene = vpasolve ((((281.4749/3600)*Cp_b)*(T2-414.95) = Q_b),T2) %temp for cumene outlet in K
The answer I get is
Cp_b = -1.3360e+07
As the error message says use == Q_b

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

카테고리

도움말 센터File Exchange에서 Mathematics에 대해 자세히 알아보기

질문:

2020년 2월 22일

댓글:

2020년 2월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by