WarpX
|
#include <ParticleHistogram.H>
Public Member Functions | |
ParticleHistogram (const std::string &rd_name) | |
void | ComputeDiags (int step) final |
![]() | |
ReducedDiags (const std::string &rd_name) | |
virtual | ~ReducedDiags ()=default |
ReducedDiags (const ReducedDiags &)=default | |
ReducedDiags & | operator= (const ReducedDiags &)=default |
ReducedDiags (ReducedDiags &&)=default | |
ReducedDiags & | operator= (ReducedDiags &&)=default |
virtual void | InitData () |
virtual void | LoadBalance () |
virtual void | WriteToFile (int step) const |
void | BackwardCompatibility () const |
Public Attributes | |
int | m_norm |
normalization type More... | |
int | m_bin_num |
number of bins More... | |
int | m_selected_species_id = -1 |
selected species index More... | |
amrex::Real | m_bin_max |
max and min bin values More... | |
amrex::Real | m_bin_min |
amrex::Real | m_bin_size |
bin size More... | |
std::unique_ptr< amrex::Parser > | m_parser |
std::unique_ptr< amrex::Parser > | m_parser_filter |
Optional parser to filter particles before doing the histogram. More... | |
bool | m_do_parser_filter = false |
Whether the filter is activated. More... | |
![]() | |
std::string | m_path = "./diags/reducedfiles/" |
output path (default) More... | |
std::string | m_extension = "txt" |
output extension (default) More... | |
std::string | m_rd_name |
diags name More... | |
utils::parser::IntervalsParser | m_intervals |
output intervals More... | |
bool | m_write_header = false |
check if header should be written More... | |
std::string | m_sep = " " |
separator in the output file More... | |
int | m_precision = 14 |
precision for data in the output file More... | |
std::vector< amrex::Real > | m_data |
output data More... | |
Static Public Attributes | |
static constexpr int | m_nvars = 7 |
Reduced diagnostics that computes a histogram over particles for a quantity specified by the user in the input file using the parser.
ParticleHistogram::ParticleHistogram | ( | const std::string & | rd_name | ) |
constructor
[in] | rd_name | reduced diags names |
|
finalvirtual |
This function computes a histogram of user defined quantity.
[in] | step | current time step |
Implements ReducedDiags.
amrex::Real ParticleHistogram::m_bin_max |
max and min bin values
amrex::Real ParticleHistogram::m_bin_min |
int ParticleHistogram::m_bin_num |
number of bins
amrex::Real ParticleHistogram::m_bin_size |
bin size
bool ParticleHistogram::m_do_parser_filter = false |
Whether the filter is activated.
int ParticleHistogram::m_norm |
normalization type
|
staticconstexpr |
Parser to read expression for particle quantity from the input file. 7 elements are t, x, y, z, ux, uy, uz
std::unique_ptr<amrex::Parser> ParticleHistogram::m_parser |
std::unique_ptr<amrex::Parser> ParticleHistogram::m_parser_filter |
Optional parser to filter particles before doing the histogram.
int ParticleHistogram::m_selected_species_id = -1 |
selected species index