why do i receive this statement is incomplete?

조회 수: 1 (최근 30일)
Priya M
Priya M 2021년 2월 2일
댓글: Jan 2021년 2월 18일
This is my code and I keep getting the error "This statement is incomplete." several times throughout but can't find the mistake. please find out my mistake...i have attached my equation file.
  댓글 수: 1
Stephen23
Stephen23 2021년 2월 2일
@Priya M: please show us the complete error message. This means all of the red text.

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

채택된 답변

Jan
Jan 2021년 2월 2일
I get this message, if I run your code:
Undefined function or variable 'Pr'.
Error in
odeequation>@(x,y)[y(2);y(3);((-(y(1)*y(3))+M*(y(2)-1)+y(2)^2-Gr*y(4)-Gc*y(6))/(1+1/beta));y(5);(-Pr*(y(1)*y(5))-Pr*Ec*(1+beta^-1)*y(3)^2-Pr*Ec*(y(2)-1)^2*M)/(1+(4/3)*R);y(7);-Sc*(y(1)*y(7))-Sc*K*y(6)]
Error in bvparguments (line 105)
testODE = ode(x1,y1,odeExtras{:});
Error in bvp4c (line 130)
bvparguments(solver_name,ode,bc,solinit,options,varargin);
Error in odeequation (line 12)
fsol = bvp4c(dydx,res,solinit);
This looks, like the problem is inside the function "Pr". Please look there or post this function.
  댓글 수: 15
Priya M
Priya M 2021년 2월 18일
sir , I need variation of M parameter on velocity , temperature and concentration profile..
The fixed values of the governing parameters are
beta=0.5, M=1.0,Pr=0.71,Gr=Gc=3.0,Sc=0.3,K=0.3,f_w=0.5,R=0.5,Ec=0.1...
Is there any mistake in my boundary condition ? if it is please correct me sir..
Jan
Jan 2021년 2월 18일
The boundary conditions contain the final time infinity. Of course you cannot integrate to infinity, because this would need an infinite amount of time. But a boundary at infinity is only meaningful, if the values are constant there. This means, that all derivatives must vanish at this point.
Can you transform the equations mathematically such, that knowing the values and vanishing derivatives at t=Inf allows to determine the corresponding missing initial conditions? Then you would get an initial value problem, which can be solved by an integrator instead of a BVP solver.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by