Energy Balance Differential Equation

10 次查看(过去 30 天)
What would be the best way to solve the equation as shown in the attached PDF please?
  2 个评论
darova
darova 2020-1-17
YOu have two undefined functions T and P but only one equation. SOmething is wrong
Peter Vella
Peter Vella 2020-1-17
You are right. Let me check again ...

请先登录,再进行评论。

回答(2 个)

Peter Vella
Peter Vella 2020-1-20
P and T are dependent on each other .. as per the ideal gas equations in themrodynamics ..

Guru Mohanty
Guru Mohanty 2020-1-22
Hi, I understand you are trying to solve the equation. You can do this using dsolve. Here is a sample code.
clc;
clear all;
syms rho cp T(t) mn V Tin P(t) heff Tamb k
P=k*T; % Ideal Gas Equation
eqn= rho*cp*diff(T,1) + mn*cp*(T-Tin)/V - diff(P,1) + heff*(T-Tamb) ==0;
T_sol=dsolve(eqn);
disp(T_sol);
  1 个评论
Nicola De Noni
Nicola De Noni 2022-8-22
Hello @Guru Mohanty, I have a similar problem, can you help me?
cp*M*(dT/dt)= - U*A*(T-T_out(t))
In this energy balance I want to plot the temperature profile.
How can I manage the temperature T_out that changes in time?
Thanks!

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Linear Algebra 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by