Possible hard wall boundary condition for particle?
Ionizing opened this issue · 3 comments
This package is pretty nice for the demonstration of time of particle evolution in the model potential. Would it be possible to remove the periodic boundary condition? I mean, use the "hard wall" boundary condition during the calculation?
There's no out-of-the-box way to do this right now, but you can always define your own potential using e.g. the potentialoperator
function. Essentially, you could create a symmetric version of the potential used in this example https://docs.qojulia.org/examples/particle-into-barrier/ and make the potential high enough so it acts as a wall.
Thanks for the advice. I'll try it later.
If you have had success implementing it, do not hesitate to submit it as a pull request -- libraries like this really improve when users contribute back and we would be happy to help along the way.