Class RenormalizeMagneticField

Inheritance Relationships

Base Type

Class Documentation

class RenormalizeMagneticField : public MagneticField

Renormalize strength of a given field by expression in which B is the strength variable.

Public Functions

RenormalizeMagneticField(ref_ptr<MagneticField> field, std::string expression)

Constructor

Parameters:
  • field – magnetic field reference pointer

  • expression – muParser expression used to renormalize the field, e.g., “gauss”.

inline ~RenormalizeMagneticField()
Vector3d getField(const Vector3d &position)
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