'm getting this error Warning: Unable to find explicit solution.
Mostrar comentarios más antiguos
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)
1 comentario
HZ
el 8 de En. de 2019
Respuestas (2)
madhan ravi
el 8 de En. de 2019
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
el 8 de En. de 2019
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 comentarios
madhan ravi
el 8 de En. de 2019
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
Categorías
Más información sobre Thermal Analysis en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!