How to solve equation in which output variable is dependent on input variable with iterations?
Show older comments

this is the equation i need to solve. I have all the constant values of Ts,Cv,b,Bo,Co,c,gamma. I also have the value of v (volume) with respect to time v(t). So i have to find the value of T but the formula also has T which means i need to iterate to find answers. Here the value of T changes with v so i need to iterate to find the T everytime v chnages. Since i find it difficult to create matlab code where i want T with accuracy of with 2 decimal point. can anybody help me with the code?
5 Comments
Torsten
on 3 Apr 2022
What was the equation for v ?
Sam Chak
on 3 Apr 2022
The ODE is not difficult to be typed out in MATLAB code. After all, the terms involve only elementary arithmetic operations and some exponentiation operations. If this involves the Ideal Gas Law, then there should be dynamical changes in not only the Temperature
, but also the Pressure
and the Volume
:
There should be some governing laws for the Pressure
and the Volume
. Please check.
Siva P M
on 4 Apr 2022
Torsten
on 4 Apr 2022
You don't need iteration.
You have a differential equation for T with v and vdot as time-dependent functions on the right-hand side.
Look at the example "ODE with Time-Dependent Terms" under
on how to solve such problems.
Answers (0)
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
