43 #ifndef FIELDDIAGPLOT_HPP
44 #define FIELDDIAGPLOT_HPP 1
56 #define FIELDD_DIAG_NONE FIELD_NONE
57 #define FIELDD_DIAG_EPOT FIELD_EPOT
58 #define FIELDD_DIAG_SCHARGE FIELD_SCHARGE
59 #define FIELDD_DIAG_TRAJDENS FIELD_TRAJDENS
60 #define FIELDD_DIAG_EFIELD FIELD_EFIELD
61 #define FIELDD_DIAG_EFIELD_X FIELD_EFIELD_X
62 #define FIELDD_DIAG_EFIELD_Y FIELD_EFIELD_Y
63 #define FIELDD_DIAG_EFIELD_Z FIELD_EFIELD_Z
64 #define FIELDD_DIAG_BFIELD FIELD_BFIELD
65 #define FIELDD_DIAG_BFIELD_X FIELD_BFIELD_X
66 #define FIELDD_DIAG_BFIELD_Y FIELD_BFIELD_Y
67 #define FIELDD_DIAG_BFIELD_Z FIELD_BFIELD_Z
103 void build_data( std::vector<double> coord[4],
104 std::vector<double> fielddata[2] )
const;
167 const size_t &
N(
void ) {
199 void export_data(
const std::string &filename )
const;
void set_efield(const VectorField *efield)
Add pointer to electric field.
Definition: fielddiagplot.hpp:125
Abstract base class for vector field.
Definition: vectorfield.hpp:53
Definition: fielddiagplot.hpp:75
void export_data(const std::string &filename) const
Export plotted data as ASCII.
Three dimensional vectors.
const field_diag_type_e & get_diagnostic_type(int i)
Get diagnostic type for y-axis i.
Definition: fielddiagplot.hpp:187
Definition: fielddiagplot.hpp:74
FieldDiagPlot(Frame *frame, const Geometry *geom)
Constructor for field diagnostics plot.
Geometry defining class.
Definition: geometry.hpp:131
field_loc_type_e
Definition: fielddiagplot.hpp:70
Definition: fielddiagplot.hpp:72
Definition: fielddiagplot.hpp:71
void set_epot(const ScalarField *epot)
Add pointer to electric potential.
Definition: fielddiagplot.hpp:119
void set_scharge(const ScalarField *scharge)
Add pointer to space charge density map.
Definition: fielddiagplot.hpp:131
void set_bfield(const VectorField *bfield)
Add pointer to magnetic field.
Definition: fielddiagplot.hpp:137
Class for legend entry.
Definition: legend.hpp:93
field_type_e
Field type.
Definition: types.hpp:88
const Vec3D & end(void)
Get end coordinates of diagnostic line.
Definition: fielddiagplot.hpp:161
void set_diagnostic(const field_diag_type_e diag[2], const field_loc_type_e loc[2])
Set field and location plot types.
Definition: fielddiagplot.hpp:178
Class for XY-type simple graph plots.
Definition: xygraph.hpp:71
const Vec3D & start(void)
Get start coordinates of diagnostic line.
Definition: fielddiagplot.hpp:155
General purpose plotter frame for cairographics surfaces.
Definition: frame.hpp:107
void build_plot(void)
Rebuild plot.
void set_coordinates(size_t N, const Vec3D &x1, const Vec3D &x2)
Set coordinates for field diagnostics.
Definition: fielddiagplot.hpp:147
Definition: fielddiagplot.hpp:73
Three dimensional vector.
Definition: vec3d.hpp:58
const field_loc_type_e & get_location_type(int i)
Get location type for x-axis i.
Definition: fielddiagplot.hpp:193
~FieldDiagPlot()
Destructor for field diagnostics plot.
const size_t & N(void)
Get number of steps on diagnostic line.
Definition: fielddiagplot.hpp:167
Scalar field class.
Definition: scalarfield.hpp:70
Field diagnostics plot.
Definition: fielddiagplot.hpp:83