MATLAB Answers

Energy Balance Differential Equation

22 views (last 30 days)
Peter Vella
Peter Vella on 17 Jan 2020
Answered: Guru Mohanty on 22 Jan 2020
What would be the best way to solve the equation as shown in the attached PDF please?

  2 Comments

darova
darova on 17 Jan 2020
YOu have two undefined functions T and P but only one equation. SOmething is wrong
Peter Vella
Peter Vella on 17 Jan 2020
You are right. Let me check again ...

Sign in to comment.

Answers (2)

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

  0 Comments

Sign in to comment.


Guru Mohanty
Guru Mohanty on 22 Jan 2020
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);

  0 Comments

Sign in to comment.

Sign in to answer this question.


Translated by