Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

RobinBC order #345

@valentinsulzer

Description

@valentinsulzer

I am trying to fix the automatic discretization of the RobinBC and have pinpointed the error.
Currently MOL_discretization.get_bcs assumes a form a*u + b*Dx(u), but it seems that the bc expressions are now getting automatically shuffled around:

a*u + b*Dx(u) # --> b * Dx(u) + a* u
b*Dx(u) + u # --> u + b * Dx(u)

This means there are more cases to consider when unpacking a RobinBC.

Firstly, is this a reasonable thing to try to fix or are there plans to do a big rewrite?
Secondly, should the fix be to somehow avoid the reshuffling (I guess in a different package) or to consider all the possible combinations for a RobinBC here in DiffEqOperators?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions