Finding difficult to solve this coupled ode equations using ode45
이전 댓글 표시
I have been solving this two coupled ODE equations using ode45... Please find the attached files....
Even after defining the variable 'P'...,
I am getting an error
Undefined
function or
variable 'P'.
Error in
pair1 (line
5)
dy(1)=(P*(b^2)*v*sigma_e*((y(2)^2*sigma_e).^(-1/3))/(M^2))*exp(-Q/K*T)*sinh((sigma_e)/((M*K*T)*(b^3))*(Q/((y(2)).^2*sigma_e)).^(1/3));
Error in
@(t,y)pair1(t,y)
Error in
odearguments
(line 87)
f0 =
feval(ode,t0,y0,args{:});
% ODE15I sets
args{1} to
yp0.
Error in
ode45 (line
113)
[neq, tspan,
ntspan, next,
t0, tfinal,
tdir, y0, f0,
odeArgs,
odeFcn, ...
Error in
ruban (line
13)
[t,y]=ode45(@(t,y)pair1(t,y),tspan,initial_conditions)
%function
call
Please help me to sort out this problem by modifying the code or providing the hints...
Any help will be appreciated
채택된 답변
추가 답변 (1개)
madhan ravi
2018년 12월 21일
편집: madhan ravi
2018년 12월 21일
Corrected equations , please clarify if something is not clear:
% y(1)=>epsilon
% y(2)=>sigma
%dy(1)=>equation2
%dy(2)=>equation1
dy(1)=(1./(y(2)*epsilon_c))*(sigma_is.^2-y(2).^2)*y(1);
dy(2)=((rho_m.*b.^2.*V_D.*sigma_e.*(y(2).^2.*sigma_e).^(-1/3))...
./M.^2).*exp(-Q/R.*T).*(sinh(sigma_e/(M*K*T).*b.*(G/(y(2).^2.*sigma_e).^(1/3))));
댓글 수: 6
ruban ramalingam
2018년 12월 22일
ruban ramalingam
2018년 12월 22일
편집: madhan ravi
2018년 12월 22일
madhan ravi
2018년 12월 22일
Ruban Ruban slow down.. alright! first verify the equations properly in this answer with lates equations that you attached.
ruban ramalingam
2018년 12월 22일
madhan ravi
2018년 12월 22일
편집: madhan ravi
2018년 12월 22일
To avoid confusions further let me rephrase.
- Please see this answer (the equations) and create a pdf with all the necessary details (meaning the datas) of the variables according to the answer provided.
- Let know of the intial conditions.
- Let know of the time span.
- Upload the latex form of the equations which is elligible to read unlike now.
If you fulfill all the above requirements then a well suitable solution can be attained sooner than expected.
ruban ramalingam
2018년 12월 23일
카테고리
도움말 센터 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!