![]() |
Sapphire++
v1.3.0-121-g2682132 |
Magnetic field. More...
#include <config.h>
Public Member Functions | |
| MagneticField (const PhysicalParameters &physical_parameters) | |
| Constructor. | |
| void | vector_value (const dealii::Point< dim > &point, dealii::Vector< double > &magnetic_field) const override |
| Evaluate the magnetic field at a point p. | |
Magnetic field.
| dim | Dimension of the reduced phase space \( (\mathbf{x}, p) \) |
|
inline |
Constructor.
| physical_parameters | User defined runtime parameters |
|
inlineoverride |
Evaluate the magnetic field at a point p.
Return a vector of values corresponding to the magnetic field \( \mathbf{B}(t, \mathbf{x}) \) at point in space.
Be aware that point is a point in reduced phase space \( (\mathbf{x}, p) \) and not in configuration space \( (\mathbf{x}) \). Therefore, the first dim_cs components correspond to the spatial coordinates \( \mathbf{x} \), while the last component corresponds to the momentum coordinate \( p \) and should not be used here (if the momentum term is activated).
The magnetic field has always three components, independent of the dimension of the configuration space. This allows to describe a magnetic field that is points out of the simulation plane.
| point | Point in reduced phase space |
| magnetic_field | Return vector \( \mathbf{B}(t, \mathbf{x}) \) |
[Magnetic field]
[Magnetic field]