-
Notifications
You must be signed in to change notification settings - Fork 17
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
add the possibility to have a parabolic plasma profile #415
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR! See comments.
Should we consider finalising this PR? |
Did you check that this looks as expected? https://github.com/Hi-PACE/hipace/blob/f272837b1096bf09f55eb1e8e846233c748772b4/doc/source/run/parameters.rst |
Now it does! Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks! See minor suggestion
This PR adds a parabolic profile to the plasma.
The curvature is defined via
plasma.parabolic_curvature
.The plasma profile is set to
parabolic_curvature*r^2 + density
,Note, that very high density plasma particles at the boundary can cause problems and can cause the simulation to diverge.
Therefore, the curvature must be chosen with care.
const
isconst
)