Field diagnostics plot.
More...
#include <fielddiagplot.hpp>
Field diagnostics plot.
A class for building xy-plots of various fields in simulations.
◆ FieldDiagPlot()
FieldDiagPlot::FieldDiagPlot |
( |
Frame & |
frame, |
|
|
const Geometry & |
geom |
|
) |
| |
Constructor for field diagnostics plot.
◆ ~FieldDiagPlot()
FieldDiagPlot::~FieldDiagPlot |
( |
| ) |
|
Destructor for field diagnostics plot.
◆ build_plot()
void FieldDiagPlot::build_plot |
( |
void |
| ) |
|
◆ end()
const Vec3D& FieldDiagPlot::end |
( |
void |
| ) |
|
|
inline |
Get end coordinates of diagnostic line.
◆ export_data()
void FieldDiagPlot::export_data |
( |
const std::string & |
filename | ) |
const |
Export plotted data as ASCII.
◆ get_diagnostic_type()
Get diagnostic type for y-axis i.
◆ get_location_type()
Get location type for x-axis i.
◆ N()
const size_t& FieldDiagPlot::N |
( |
void |
| ) |
|
|
inline |
Get number of steps on diagnostic line.
◆ set_bfield()
void FieldDiagPlot::set_bfield |
( |
const VectorField * |
bfield | ) |
|
|
inline |
Add pointer to magnetic field.
◆ set_coordinates()
void FieldDiagPlot::set_coordinates |
( |
size_t |
N, |
|
|
const Vec3D & |
x1, |
|
|
const Vec3D & |
x2 |
|
) |
| |
|
inline |
Set coordinates for field diagnostics.
The fields to be plotted are evaluated at N steps from x1 to x2. The first point of the plot is exactly at x1 and the last at x2.
◆ set_diagnostic()
Set field and location plot types.
The plot can have two x-axes and two y-axes. The diagnostic for y1-axis is set by diag[0] and the diagnostic for y2-axis by diag[1]. The x1-axis is defined by loc[0] and x2-axis by loc[1].
◆ set_efield()
void FieldDiagPlot::set_efield |
( |
const VectorField * |
efield | ) |
|
|
inline |
Add pointer to electric field.
◆ set_epot()
void FieldDiagPlot::set_epot |
( |
const ScalarField * |
epot | ) |
|
|
inline |
Add pointer to electric potential.
◆ set_scharge()
void FieldDiagPlot::set_scharge |
( |
const ScalarField * |
scharge | ) |
|
|
inline |
Add pointer to space charge density map.
◆ set_trajdens()
void FieldDiagPlot::set_trajdens |
( |
const ScalarField * |
trajdens | ) |
|
|
inline |
Add pointer to trajectory density map.
◆ start()
const Vec3D& FieldDiagPlot::start |
( |
void |
| ) |
|
|
inline |
Get start coordinates of diagnostic line.
The documentation for this class was generated from the following files: