|
Celeritas 0.7.0-dev.305+develop.e69b8227
|
Linear magnetic field functor. More...
#include <LinearMagFieldTestBase.hh>
Public Member Functions | |
| Real3 | operator() (Real3 const &pos) const |
| Calculate field at the given position. | |
Public Attributes | |
| LinearMagFieldData const & | data |
Linear magnetic field functor.
Returns a field value that is zero at origin and increases linearly:
\[ \vec{B}(\vec{r}) = s \cdot (\vec{r} - \vec{r}_0) \]
where s is the scale factor and \( \vec{r}_0 \) is the origin.