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 · 2 comments
Open

Possible hard wall boundary condition for particle? #380

Ionizing opened this issue Feb 8, 2024 · 2 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.

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

No branches or pull requests

2 participants