Classes | |
struct | Parameters |
Functions | |
template<typename Vec3 > | |
constexpr float | B0Z (Vec3 const &vec) |
template<typename Vec3 > | |
constexpr bool | isValid (Vec3 const &vec) |
template<typename Vec3 > | |
constexpr float | Kr (Vec3 const &vec) |
template<typename Vec3 > | |
constexpr float | magneticFieldAtPoint (Vec3 const &vec) |
Description: Utility function to calculate the Magnetic Field on the GPU. The Vec3 argument of the functions must support access to its components via (), note that e.g. Eigen::Matrix provides such an interface.
constexpr float magneticFieldParabolicPortable::B0Z | ( | Vec3 const & | vec | ) |
Definition at line 27 of file ParabolicParametrizedMagneticField.h.
References magneticFieldParabolicPortable::Parameters::b0, magneticFieldParabolicPortable::Parameters::b1, and magneticFieldParabolicPortable::Parameters::c1.
Referenced by magneticFieldAtPoint().
constexpr bool magneticFieldParabolicPortable::isValid | ( | Vec3 const & | vec | ) |
Definition at line 32 of file ParabolicParametrizedMagneticField.h.
References magneticFieldParabolicPortable::Parameters::max_radius2, and magneticFieldParabolicPortable::Parameters::max_z.
Referenced by magneticFieldAtPoint().
constexpr float magneticFieldParabolicPortable::Kr | ( | Vec3 const & | vec | ) |
Definition at line 22 of file ParabolicParametrizedMagneticField.h.
References magneticFieldParabolicPortable::Parameters::a, and f.
Referenced by magneticFieldAtPoint().
constexpr float magneticFieldParabolicPortable::magneticFieldAtPoint | ( | Vec3 const & | vec | ) |
Definition at line 37 of file ParabolicParametrizedMagneticField.h.
References B0Z(), isValid(), and Kr().