Skip to content
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

Possible hard wall boundary condition for particle? #380

Open
Ionizing opened this issue Feb 8, 2024 · 3 comments
Open

Possible hard wall boundary condition for particle? #380

Ionizing opened this issue Feb 8, 2024 · 3 comments

Comments

@Ionizing
Copy link

Ionizing commented Feb 8, 2024

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?

@david-pl
Copy link
Member

david-pl commented Feb 9, 2024

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.

@Ionizing
Copy link
Author

Thanks for the advice. I'll try it later.

@Krastanov
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants