19#ifndef OPAL_BASICACTIONS_DUMPEMFIELDS_HH
20#define OPAL_BASICACTIONS_DUMPEMFIELDS_HH
26#include <unordered_set>
124 void print(std::ostream& os)
const;
136 static void checkInt(
double value, std::string name,
double tolerance = 1
e-9);
141 std::ofstream& fout)
const;
std::ostream & operator<<(std::ostream &os, const DumpEMFields &b)
constexpr double e
The value of.
Interface for a single beam element.
The base class for all OPAL actions.
DumpEMFields dumps the dynamically changing fields of a Ring in a user- defined grid.
virtual void writeFieldThis(Component *field)
void print(std::ostream &os) const
Print the attributes of DumpEMFields to standard out.
static std::unordered_set< DumpEMFields * > dumpsSet_m
void parseCoordinateSystem()
static void writeFields(Component *field)
Write the fields for all defined DumpEMFields objects.
DumpEMFields & operator=(const DumpEMFields &dump)
interpolation::NDGrid * grid_m
CoordinateSystem coordinates_m
void writeHeader(std::ofstream &fout) const
virtual void execute()
Builds the grid but does not write the field map.
static void checkInt(double value, std::string name, double tolerance=1e-9)
virtual DumpEMFields * clone(const std::string &name)
Make a clone (overloadable copy-constructor).
DumpEMFields()
Constructor.
virtual ~DumpEMFields()
Destructor deletes grid_m and if in the dumps set, take it out.
void writeFieldLine(Component *field, const Vector_t< double, 3 > &point, const double &time, std::ofstream &fout) const
DumpEMFields(const DumpEMFields &dump)
NDGrid holds grid information for a rectilinear grid in some arbitrary dimensional space.