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 Grid3f to serve as a MagneticField.

Public Functions

MagneticFieldGrid(ref_ptr<Grid3f> grid)

Constructor

Parameters:

grid – Grid3f storing the magnetic field vectors

void setGrid(ref_ptr<Grid3f> grid)
ref_ptr<Grid3f> getGrid()
virtual Vector3d getField(const Vector3d &position) const
inline virtual Vector3d getField(const Vector3d &position, double z) const
inline size_t addReference() const
inline size_t removeReference() const
inline int removeReferenceNoDelete() const
inline size_t getReferenceCount() const

Protected Attributes

mutable size_t _referenceCount