inclusion gradB field and quickfix reading from array

This commit is contained in:
2024-06-25 10:08:12 +02:00
committed by csendlinger
parent f82cbf4c47
commit a1444bceaa
4 changed files with 14 additions and 5 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 {