|
WarpX
|
#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 | WriteToFile (int step) 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< ParserWrapper< m_nvars > > | m_parser |
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... | |
| IntervalsParser | m_intervals |
| output frequency 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
| int ParticleHistogram::m_norm |
normalization type
|
static |
Parser to read expression for particle quantity from the input file. 7 elements are t, x, y, z, ux, uy, uz
| std::unique_ptr<ParserWrapper<m_nvars> > ParticleHistogram::m_parser |
| int ParticleHistogram::m_selected_species_id = -1 |
selected species index
1.8.13