|
ARTEMIS
|
#include <ParticleHistogram.H>
Public Member Functions | |
| ParticleHistogram (std::string rd_name) | |
| virtual void | ComputeDiags (int step) override final |
Public Member Functions inherited from ReducedDiags | |
| ReducedDiags (std::string rd_name) | |
| virtual | ~ReducedDiags ()=default |
| virtual void | InitData () |
| virtual void | LoadBalance () |
| virtual void | WriteToFile (int step) const |
| void | BackwardCompatibility () |
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... | |
Public Attributes inherited from ReducedDiags | |
| 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... | |
| int | m_IsNotRestart = 1 |
| check if it is a restart run More... | |
| std::string | m_sep = " " |
| separator 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 | ( | std::string | rd_name | ) |
constructor
| [in] | rd_name | reduced diags names |
|
finaloverridevirtual |
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