Celeritas 0.7.0-dev.305+develop.e69b8227
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
celeritas::test::LinearMagField Struct Reference

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 constdata
 

Detailed Description

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.


The documentation for this struct was generated from the following file: