Class MagneticFieldGrid

Inheritance Relationships

Base Type

Class Documentation

class MagneticFieldGrid : public MagneticField

Magnetic field on a periodic (or reflective), cartesian grid with trilinear interpolation.

This class wraps a VectorGrid to serve as a MagneticField.

Public Functions

MagneticFieldGrid(std::shared_ptr<VectorGrid> grid)
void setGrid(std::shared_ptr<VectorGrid> grid)
std::shared_ptr<VectorGrid> getGrid()
Vector3d getField(const Vector3d &position) const
virtual Vector3QMField getField(const Vector3QLength &position) const