-
Notifications
You must be signed in to change notification settings - Fork 23
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
Python: Init Beam Distributions #153
Conversation
9d594f7
to
7de11d5
Compare
7de11d5
to
bfd7bf8
Compare
Make sure that particles are initialized and otherwise error out cleanly with an exception.
Not needed here yet.
AMReX formatting with extra space
269f547
to
e5cd6c6
Compare
Add a variant for all distributions
e5cd6c6
to
c763527
Compare
@@ -267,6 +209,7 @@ namespace impactx | |||
refPart.z = 0.0; | |||
refPart.px = 0.0; | |||
refPart.py = 0.0; | |||
// make the next two lines a helper function? |
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.
@cemitch99 we could make this a helper member function in RefPart
, what do you think?
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.
Discussed on Slack: same for "set_energy_MeV", "get_beta", "get_gamma", etc.?
Yes, I agree this sounds good.
-> will be a separate PR
c763527
to
c1ccf7e
Compare
This makes scripting workflows less verbose. One can still manually initialize AMReX, but users can also rely on defaults now.
for more information, see https://pre-commit.ci
Add argument names to `distribution.generate_add_particles`
f43f679
to
74323c2
Compare
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 good to me.
Close #93
Follow up to #123
AddParticles