Strange chebmatrix BVP behavior

69 views
Skip to first unread message

Christopher Marcotte

unread,
Feb 10, 2017, 9:44:57 AM2/10/17
to chebfun-users
Hi everyone!

I've run into a strange issue with solving BVPs using the chebmatrix syntax. Rather, the BVP is solved fine (see demonstrative script below) but the solver fails when checking the boundary residuals. The error is "Too many input arguments."

Is this a known issue? I could't find anything quite matching the description in the group or in the open issues on Github.

The reason I'd like to cast the problem as a chebmatrix is because eventually I'd like to use the followpath functions to do some simple continuation, alternatively if you know how to use this function with the first form, I'd love to see it.

CM
bvp_for_cont.m

Nick Hale

unread,
Feb 10, 2017, 10:10:37 AM2/10/17
to Christopher Marcotte, chebfun-users
I think the offending line needs to be replaced with 
        if ( cellArg )
            bcU = N.bc(x, u);
        else
            bcU = N.bc(x, uBlocks{:});
        end
(see the similar sections for N.rbc and N.lbc.)

I've issued a pull request:

N


--
You received this message because you are subscribed to the Google Groups "chebfun-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chebfun-users+unsubscribe@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/chebfun-users/8d4b8b63-0bf9-4ca4-ae39-6f65210c487a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Christopher Marcotte

unread,
Feb 10, 2017, 10:15:56 AM2/10/17
to chebfun-users, christophe...@gmail.com
Thank you, Nick!


On Friday, February 10, 2017 at 3:10:37 PM UTC, Nick Hale wrote:
I think the offending line needs to be replaced with 
        if ( cellArg )
            bcU = N.bc(x, u);
        else
            bcU = N.bc(x, uBlocks{:});
        end
(see the similar sections for N.rbc and N.lbc.)

I've issued a pull request:

N

On 10 February 2017 at 16:44, Christopher Marcotte <christophe...@gmail.com> wrote:
Hi everyone!

I've run into a strange issue with solving BVPs using the chebmatrix syntax. Rather, the BVP is solved fine (see demonstrative script below) but the solver fails when checking the boundary residuals. The error is "Too many input arguments."

Is this a known issue? I could't find anything quite matching the description in the group or in the open issues on Github.

The reason I'd like to cast the problem as a chebmatrix is because eventually I'd like to use the followpath functions to do some simple continuation, alternatively if you know how to use this function with the first form, I'd love to see it.

CM

--
You received this message because you are subscribed to the Google Groups "chebfun-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chebfun-user...@googlegroups.com.
Message has been deleted

Ron Shvartsman

unread,
Jul 19, 2023, 3:16:43 PM7/19/23
to chebfun-users
Hi everyone,

I'm having the same issue, but the proposed fix hasn't helped. I've attached below my super short script, which attempts to perform continuation on a chebmatrix, but I get the same issue as Christopher when declaring my boundary conditions. I'd appreciate it if someone could take a look!!

Ron
continuation_attempt.m

Nick Hale

unread,
Jul 20, 2023, 6:47:21 AM7/20/23
to chebfun-users
Hi Ron

I've had a look, but I do not think there is a quick fix here. followpath() 
does not seem to currently support systems of ODEs.

(For anyone wishing to investigate further, it seems that a) the way 
followpath concatenates the dependent variable with the bifurcation
parameter breaks a lot of things in linearize and feval, b) much of
followpath and tangentBVP seem to be written with only scalar
problems in mind.)
 
Sorry that I can't be more of more help.

Nick

Ron Shvartsman

unread,
Jul 20, 2023, 10:35:08 AM7/20/23
to chebfun-users
Thank you for the response Nick!
Reply all
Reply to author
Forward
0 new messages