Info
This question is closed. Reopen it to edit or answer.
bvpinit giving wrong behavior!
    2 views (last 30 days)
  
       Show older comments
    
I'm tryping to solve the following nonlinear Diff. Eq: 

, using the function bvp4c and the boundary conditions:  . After finding α, I need to use
 . After finding α, I need to use  and
 and  to model something. Also, t is used to help simplify the math, but it is related to distance r via:
 to model something. Also, t is used to help simplify the math, but it is related to distance r via:  . Here,
. Here,  is just some characteristic length scale for the system.
 is just some characteristic length scale for the system.  
 . After finding α, I need to use
 . After finding α, I need to use  and
 and  to model something. Also, t is used to help simplify the math, but it is related to distance r via:
 to model something. Also, t is used to help simplify the math, but it is related to distance r via:  . Here,
. Here,  is just some characteristic length scale for the system.
 is just some characteristic length scale for the system.  The issue is I expect linear behavior for  around
 around  (being
 (being  ) since α will be small here. This can be seen by realizing continuity of α and our boundary condition on the left implies this. Indeed, our differential equation reduces to (near this point):
) since α will be small here. This can be seen by realizing continuity of α and our boundary condition on the left implies this. Indeed, our differential equation reduces to (near this point): 
 around
 around  (being
 (being  ) since α will be small here. This can be seen by realizing continuity of α and our boundary condition on the left implies this. Indeed, our differential equation reduces to (near this point):
) since α will be small here. This can be seen by realizing continuity of α and our boundary condition on the left implies this. Indeed, our differential equation reduces to (near this point):  
 The plot I have included (r  
  ) illustrates the behavior is quadartic near
) illustrates the behavior is quadartic near  ... I can not figure out exactly why!
... I can not figure out exactly why! 
 
  ) illustrates the behavior is quadartic near
) illustrates the behavior is quadartic near  ... I can not figure out exactly why!
... I can not figure out exactly why! I included my code and setup as well. The only reason I can see something may go wrong is I mapped  to
 to  using tanh. I tried running bvp4c with
 using tanh. I tried running bvp4c with  something big, so I could still treat it numerically, but no luck... I kept getting a singular Jacobian.
 something big, so I could still treat it numerically, but no luck... I kept getting a singular Jacobian.
 to
 to  using tanh. I tried running bvp4c with
 using tanh. I tried running bvp4c with  something big, so I could still treat it numerically, but no luck... I kept getting a singular Jacobian.
 something big, so I could still treat it numerically, but no luck... I kept getting a singular Jacobian.Any help will be greatly appreciated!
0 Comments
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!