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

Reference Particle: Store Charge & Mass #229

Merged
merged 4 commits into from
Aug 31, 2022

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Aug 31, 2022

Store the mass and charge of the reference particle.
This simplifies init logic and is useful for later I/O tasks of meta data.

Needed for #162 and #214.

@ax3l ax3l added enhancement New feature or request changes input scripts / defaults Changes the syntax or meaning of input scripts and/or defaults component: python Python bindings labels Aug 31, 2022
@ax3l ax3l requested review from n01r and cemitch99 August 31, 2022 01:29
@ax3l ax3l force-pushed the topic-store-ref-charge-mass branch 3 times, most recently from f27b206 to 587b8c2 Compare August 31, 2022 01:42
Store the mass and charge of the reference particle.
This simpliifes init logic and is useful for later I/O
tasks of meta data.
@ax3l ax3l force-pushed the topic-store-ref-charge-mass branch 2 times, most recently from dec4453 to 9ab0898 Compare August 31, 2022 03:50
@ax3l ax3l force-pushed the topic-store-ref-charge-mass branch from 9ab0898 to cb56292 Compare August 31, 2022 03:52
Copy link
Member

@n01r n01r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty nice. I like that the reference particle parameters are set first now. 👍

}
else {
qm = 0.0;
else { // default to electron
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't I be able to set up muons, for instance, if I provided a name and qe and massE for them?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we did not add that case yet but could issue a warning, for instance.

@ax3l ax3l merged commit 4483972 into ECP-WarpX:development Aug 31, 2022
@ax3l ax3l deleted the topic-store-ref-charge-mass branch August 31, 2022 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes input scripts / defaults Changes the syntax or meaning of input scripts and/or defaults component: python Python bindings enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants