Added gradB as input, adjusted drift mover

to include gradB (not yet tested for correctness)
This commit is contained in:
2024-05-10 14:34:03 +02:00
parent 1f4314c527
commit dc226a8d53
4 changed files with 28 additions and 9 deletions
+4 -1
View File
@@ -23,12 +23,15 @@ class ElectricField {
class MagneticField {
public:
MagneticField(std::shared_ptr<VectorField> field);
MagneticField(std::shared_ptr<VectorField> field,
std::shared_ptr<VectorField> gradient);
CylinderVector value(const Coordinate& position) const;
CylinderVector gradientValue(const Coordinate& position) const;
private:
std::shared_ptr<VectorField> field_;
std::shared_ptr<VectorField> gradient_;
};
class GravityField {