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

Python: Init Beam Distributions #153

Merged
merged 10 commits into from
Jul 23, 2022

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Jun 27, 2022

Close #93
Follow up to #123

@ax3l ax3l added the component: python Python bindings label Jun 27, 2022
@ax3l ax3l mentioned this pull request Jun 27, 2022
9 tasks
@ax3l ax3l requested a review from RTSandberg June 27, 2022 23:18
@ax3l ax3l force-pushed the py-beam-distribution branch 2 times, most recently from 9d594f7 to 7de11d5 Compare June 28, 2022 12:05
@ax3l ax3l force-pushed the py-beam-distribution branch from 7de11d5 to bfd7bf8 Compare July 22, 2022 16:59
ax3l added 3 commits July 22, 2022 10:35
Make sure that particles are initialized and otherwise error out
cleanly with an exception.
AMReX formatting with extra space
@ax3l ax3l force-pushed the py-beam-distribution branch 2 times, most recently from 269f547 to e5cd6c6 Compare July 22, 2022 18:46
Add a variant for all distributions
@ax3l ax3l changed the title [WIP] Python: Init Beam Distributions Python: Init Beam Distributions Jul 22, 2022
@ax3l ax3l force-pushed the py-beam-distribution branch from e5cd6c6 to c763527 Compare July 22, 2022 19:17
@ax3l ax3l requested a review from cemitch99 July 22, 2022 19:19
@@ -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?
Copy link
Member Author

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?

Copy link
Member Author

@ax3l ax3l Jul 22, 2022

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

@ax3l ax3l force-pushed the py-beam-distribution branch from c763527 to c1ccf7e Compare July 22, 2022 19:21
ax3l and others added 5 commits July 22, 2022 16:30
This makes scripting workflows less verbose. One can still manually
initialize AMReX, but users can also rely on defaults now.
Add argument names to `distribution.generate_add_particles`
@ax3l ax3l force-pushed the py-beam-distribution branch from f43f679 to 74323c2 Compare July 23, 2022 01:05
@ax3l ax3l merged commit f3a2dde into BLAST-ImpactX:development Jul 23, 2022
@ax3l ax3l deleted the py-beam-distribution branch July 23, 2022 01:44
Copy link
Member

@cemitch99 cemitch99 left a 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.

@ax3l ax3l mentioned this pull request Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: python Python bindings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python Bindings
3 participants