-
-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"spherical polar" coordinates ignore left boundary condition #1174
Comments
Thanks for pointing out - seems to be something do with with the multiplication by |
Hi @bessman! I think that for spherical (and cylindrical coordinates) the condition at r=0 should always be a no-flux condition (note that, in reality, this is an artificial boundary that arises due to the parameterization of the domain). What problem are you trying to solve that gives you a BC other than no-flux? |
I noticed it while working through some of the example notebooks. Specifically, in "Creating Models/2-a-pde-model.ipynb", the left boundary condition type is given as Dirichlet in the code. This should result in an incorrect result, but does not, because the boundary condition is ignored. As you say, that's not typically going to be a problem when dealing with spherical particles. I just think the behavior should be clearly documented if it is intentional, to avoid surprising the user. |
thanks @bessman, it looks like this was a typo in the notebook. as discussed, symmetry always gives no flux at r=0 in spherical polars, but it would be good to add a warning if people try to use a different condition |
Cool, I will modify the code so it throws an error if a "left" bc is passed that it is not a no-flux condition. |
@all-contributors add @bessman for bugs, examples |
@tinosulzer This project's configuration file has malformed JSON: .all-contributorsrc. Error:: Unexpected token ] in JSON at position 895 |
@all-contributors add @bessman for bugs, examples |
@tinosulzer I've put up a pull request to add @bessman! 🎉 |
Good bot |
Describe the bug
When using "spherical polar" coordinates, the left boundary condition seems to always be zero flux, regardless of what the user specifies.
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
The left boundary condition should be user-changeable. Alternatively, if zero flux is intentionally enforced on the left boundary in spherical coordinates, the user should be warned of this fact if they request something else.
The text was updated successfully, but these errors were encountered: