|
WarpX
|
#include <ParticleHistogram.H>
Public Member Functions | |
| ParticleHistogram (const std::string &rd_name) | |
| void | ComputeDiags (int step) final |
Public Member Functions inherited from ReducedDiags | |
| 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 | ComputeDiagsMidStep (int step) |
| virtual void | WriteToFile (int step) const |
| bool | DoDiags (int step) const |
| virtual void | WriteCheckpointData (std::string const &dir) |
| Write out checkpoint related data. | |
| virtual void | ReadCheckpointData (std::string const &dir) |
| Read in checkpoint related data. | |
| void | BackwardCompatibility () const |
Public Attributes | |
| int | m_norm |
| normalization type | |
| int | m_bin_num |
| number of bins | |
| int | m_selected_species_id = -1 |
| selected species index | |
| amrex::Real | m_bin_max |
| max and min bin values | |
| amrex::Real | m_bin_min |
| amrex::Real | m_bin_size |
| bin size | |
| std::unique_ptr< amrex::Parser > | m_parser |
| std::unique_ptr< amrex::Parser > | m_parser_filter |
| Optional parser to filter particles before doing the histogram. | |
| bool | m_do_parser_filter = false |
| Whether the filter is activated. | |
Public Attributes inherited from ReducedDiags | |
| std::string | m_path = "./diags/reducedfiles/" |
| output path (default) | |
| std::string | m_extension = "txt" |
| output extension (default) | |
| std::string | m_rd_name |
| diags name | |
| utils::parser::IntervalsParser | m_intervals |
| output intervals | |
| bool | m_write_header = false |
| check if header should be written | |
| std::string | m_sep = " " |
| separator in the output file | |
| int | m_precision = 14 |
| precision for data in the output file | |
| std::vector< amrex::Real > | m_data |
| output data | |
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