-
Notifications
You must be signed in to change notification settings - Fork 202
Add LabFrameParticleDiagnostic to picmi #4148
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 LabFrameParticleDiagnostic to picmi #4148
Conversation
@@ -2212,16 +2215,19 @@ class LabFrameFieldDiagnostic(picmistandard.PICMI_LabFrameFieldDiagnostic, | |||
|
|||
warpx_upper_bound: vector of floats, optional | |||
Passed to <diagnostic name>.upper_bound | |||
|
|||
warpx_write_species: bool, optional, default=True |
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.
In PICMI, I think it makes more sense to turn them off by default...
warpx_write_species: bool, optional, default=True | |
warpx_write_species: bool, optional, default=False |
warpx_buffer_size: integer, optional | ||
Passed to <diagnostic name>.buffer_size | ||
|
||
warpx_write_fields: bool, optional, default=True |
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.
warpx_write_fields: bool, optional, default=True | |
warpx_write_fields: bool, optional, default=False |
for more information. | ||
|
||
This will by default write out both field and particle data. This can be changed by setting warpx_write_fields. |
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.
for more information. | |
This will by default write out both field and particle data. This can be changed by setting warpx_write_fields. | |
for more information. |
for more information. | ||
|
||
This will by default write out both field and particle data. This can be changed by setting warpx_write_species. |
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.
for more information. | |
This will by default write out both field and particle data. This can be changed by setting warpx_write_species. | |
for more information. |
self.format = kw.pop('warpx_format', None) | ||
self.openpmd_backend = kw.pop('warpx_openpmd_backend', None) | ||
self.file_prefix = kw.pop('warpx_file_prefix', None) | ||
self.file_min_digits = kw.pop('warpx_file_min_digits', None) | ||
self.buffer_size = kw.pop('warpx_buffer_size', None) | ||
self.lower_bound = kw.pop('warpx_lower_bound', None) | ||
self.upper_bound = kw.pop('warpx_upper_bound', None) | ||
self.write_species = kw.pop('warpx_write_species', None) |
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.
self.write_species = kw.pop('warpx_write_species', None) | |
self.write_species = kw.pop('warpx_write_species', False) |
self.file_prefix = kw.pop('warpx_file_prefix', None) | ||
self.file_min_digits = kw.pop('warpx_file_min_digits', None) | ||
self.buffer_size = kw.pop('warpx_buffer_size', None) | ||
self.write_fields = kw.pop('warpx_write_fields', None) |
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.
self.write_fields = kw.pop('warpx_write_fields', None) | |
self.write_fields = kw.pop('warpx_write_fields', False) |
We can address my comments in #3207 |
Note that with
LabFrameParticleDiagnostic
orLabFrameFieldDiagnostic
, both the particles and fields will be written out. Each has a flag to turn the other off. This is the same way that the regular diagnostics are setup.