필터 지우기
필터 지우기

Solution to ODE in matlab or simulink

조회 수: 2 (최근 30일)
Soheil
Soheil 2019년 10월 4일
답변: darova 2019년 10월 5일
Hi,
I would be thankful if someone gives a comment on how to solve the following equation in MATLAB/Simulink with ODE45 or ODE15s...It's equation number 3 in this publication [Link]. (Picture of the equation is attached).
It's basically a material balance equation of solid particles in ractor.
Thanks in advance.
matlabequation.jpg
  댓글 수: 2
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2019년 10월 5일
Hi
Your equation as it does not appear to be correct. Could you please post the correct one?
Just a guess as it looks like a 1st order ODE BVP that means you'd need to employ bvp solver
Soheil
Soheil 2019년 10월 5일
Thanks for the comment; I will check the BVP solver.
I post a picture of equations from a paper below.
They've mentioned at the end that ODE45 is used.
A general guideline toward solving this would be super helpful.
matlabequation.jpg

댓글을 달려면 로그인하십시오.

답변 (1개)

darova
darova 2019년 10월 5일
I tried to solve this equation first
What are constants values?
% opengl software
G = 2;
V = 2.4;
Q = 5;
J = 1;
n0 = 1.1;
num1 = 30;
num2 = 40;
n = zeros(num1,num2);
L = linspace(0,30,num1);
t = linspace(0,100,num2);
dL = L(2) - L(1);
dt = t(2) - t(1);
for i = 1:100
n(end,:) = J/G;
n(:,1) = n0;
[dnt, dnL] = gradient(n,dt,dL);
n = -V/Q*(dnt+G*dnL);
surf(t,L,n)
pause(0.1)
end
The result
gif_animation.gif

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by