Class AMRMagneticField

Inheritance Relationships

Base Type

Class Documentation

class AMRMagneticField : public MagneticField

Wrapper for saga::MagneticField Can be found in github.com/rafaelab/saga.

Deprecation Warning: As SAGA (SQLite AMR Grid Application) is no longer supported, the AMRMagenticField class will be removed in the future.

Public Functions

inline AMRMagneticField(saga::ref_ptr<saga::MagneticField> field_, double convLength, double convDensity, double convMagneticField)

Constructor

Parameters
  • field_ – saga magnetic field

  • convLength – rescaling length

  • convDensity – rescaling density

  • convMagneticField – rescaling magnetic field strength

inline 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