'm getting this error Warning: Unable to find explicit solution.
이전 댓글 표시
syms To
dT_log=((To-Tg)-(Ti-Tg))/log((To-Tg)/(Ti-Tg)) %%%%%% log mean temperature
Q=m_dot*cp*(Ti-To) %%%%%Total heat transfer of water
Q2=dT_log/Rtotal%%%%% Total heat transfer of pipe
q=Q-Q2
solve(q,To)
답변 (2개)
madhan ravi
2019년 1월 8일
syms To
Ti=30; % example datas
Tg=50;
cp=20;
m_dot=5;
Rtotal=50;
dT_log=((To-Tg)-(Ti-Tg))/log((To-Tg)/(Ti-Tg)) %%%%%% log mean temperature
Q=m_dot*cp*(Ti-To) %%%%%Total heat transfer of water
Q2=dT_log/Rtotal%%%%% Total heat transfer of pipe
q=Q-Q2
vpasolve(q,To)
madhan ravi
2019년 1월 8일
syms To Ti Tg m_dot real
dT_log=((To-Tg)-(Ti-Tg))/log((To-Tg)/(Ti-Tg)) %%%%%% log mean temperature
Q=m_dot*cp*(Ti-To) %%%%%Total heat transfer of water
Q2=dT_log/Rtotal%%%%% Total heat transfer of pipe
q=Q-Q2
Result=solve(q,To)
Gives:
dT_log =
-(Ti - To)/log((Tg - To)/(Tg - Ti))
Q =
20*m_dot*(Ti - To)
Q2 =
-(Ti - To)/(50*log((Tg - To)/(Tg - Ti)))
q =
(Ti - To)/(50*log((Tg - To)/(Tg - Ti))) + 20*m_dot*(Ti - To)
Result =
Tg - Tg*exp(-1/(1000*m_dot)) + Ti*exp(-1/(1000*m_dot))
댓글 수: 3
madhan ravi
2019년 1월 8일
Result=fsolve(matlabFunction(q),[0 50]) % change your last line to this
Gives:
Solver stopped prematurely.
fsolve stopped because it exceeded the function evaluation limit,
options.MaxFunctionEvaluations = 200 (the default value).
Result =
1.0e+02 *
3.0000 + 0.0000i 3.0000 - 0.0001i
Note: The results are complex because
q =
1463/2 - (1152921504606846976*(To - 350))/(6160701922836979*log(To/50 - 6)) - (209*To)/100
^^^^^---- is obviously less than 6 so the result
카테고리
도움말 센터 및 File Exchange에서 Thermal Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!