WarpX
|
#include <ParticleHistogram2D.H>
Public Member Functions | |
ParticleHistogram2D (const std::string &rd_name) | |
void | ComputeDiags (int step) final |
void | WriteToFile (int step) const 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 () |
void | BackwardCompatibility () const |
Public Attributes | |
std::string | m_openpmd_backend {"default"} |
File type. More... | |
int | m_file_min_digits = 6 |
minimum number of digits for file suffix (file-based only supported now for now) */ More... | |
int | m_bin_num_abs |
number of bins on the abscissa and ordinate More... | |
int | m_bin_num_ord |
amrex::TableData< amrex::Real, 2 > | m_h_data_2D |
output data More... | |
int | m_selected_species_id = -1 |
selected species index More... | |
amrex::Real | m_bin_max_abs |
max and min bin values More... | |
amrex::Real | m_bin_min_abs |
amrex::Real | m_bin_max_ord |
amrex::Real | m_bin_min_ord |
amrex::Real | m_bin_size_abs |
bin sizes More... | |
amrex::Real | m_bin_size_ord |
std::string | function_string_abs |
functions More... | |
std::string | function_string_ord |
std::string | filter_string |
std::string | value_string |
std::unique_ptr< amrex::Parser > | m_parser_abs |
std::unique_ptr< amrex::Parser > | m_parser_ord |
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::unique_ptr< amrex::Parser > | m_parser_value |
Optional parser to filter particles before doing the histogram. More... | |
bool | m_do_parser_value |
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 = 8 |
7 elements are t, x, y, z, ux, uy, uz, w More... | |
Reduced diagnostics that computes a histogram over particles for a quantity specified by the user in the input file using the parser.
ParticleHistogram2D::ParticleHistogram2D | ( | 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.
|
finalvirtual |
std::string ParticleHistogram2D::filter_string |
std::string ParticleHistogram2D::function_string_abs |
functions
std::string ParticleHistogram2D::function_string_ord |
amrex::Real ParticleHistogram2D::m_bin_max_abs |
max and min bin values
amrex::Real ParticleHistogram2D::m_bin_max_ord |
amrex::Real ParticleHistogram2D::m_bin_min_abs |
amrex::Real ParticleHistogram2D::m_bin_min_ord |
int ParticleHistogram2D::m_bin_num_abs |
number of bins on the abscissa and ordinate
int ParticleHistogram2D::m_bin_num_ord |
amrex::Real ParticleHistogram2D::m_bin_size_abs |
bin sizes
amrex::Real ParticleHistogram2D::m_bin_size_ord |
bool ParticleHistogram2D::m_do_parser_filter = false |
Whether the filter is activated.
bool ParticleHistogram2D::m_do_parser_value |
Whether the filter is activated.
int ParticleHistogram2D::m_file_min_digits = 6 |
minimum number of digits for file suffix (file-based only supported now for now) */
amrex::TableData<amrex::Real,2> ParticleHistogram2D::m_h_data_2D |
output data
|
staticconstexpr |
7 elements are t, x, y, z, ux, uy, uz, w
Parser to read expression for particle quantity from the input file.
std::string ParticleHistogram2D::m_openpmd_backend {"default"} |
File type.
std::unique_ptr<amrex::Parser> ParticleHistogram2D::m_parser_abs |
std::unique_ptr<amrex::Parser> ParticleHistogram2D::m_parser_filter |
Optional parser to filter particles before doing the histogram.
std::unique_ptr<amrex::Parser> ParticleHistogram2D::m_parser_ord |
std::unique_ptr<amrex::Parser> ParticleHistogram2D::m_parser_value |
Optional parser to filter particles before doing the histogram.
int ParticleHistogram2D::m_selected_species_id = -1 |
selected species index
std::string ParticleHistogram2D::value_string |