Many, many more comments

This commit is contained in:
2024-12-04 17:15:04 +01:00
parent 8696517336
commit 03854339ca
100 changed files with 1702 additions and 49 deletions
@@ -7,13 +7,20 @@
#include "simulation/scalar_field.h"
#include "simulation/vector_field.h"
// class for an electric field; consists of two VectorField objects
// one for the dynamic electric field, i.e. calculated during the simulation (not yet implemented, right now behaves the same as the background field)
// one for the background field, i.e. a field read in from an input file
class ElectricField {
public:
// Constructor: setting the background and dynamic field to the provided VectorFields
ElectricField(std::shared_ptr<VectorField> background,
std::shared_ptr<VectorField> dynamic);
// return the value of the electric field at the Coordinate position (sum of the background and dynamic field values)
// as a CylinderVector
CylinderVector value(const Coordinate& position) const;
// set the dynamic field to the provided field
void updateDynamicField(std::shared_ptr<VectorField> field);
private:
@@ -21,10 +28,13 @@ class ElectricField {
std::shared_ptr<VectorField> dynamic_;
};
// class for a magnetic field
class MagneticField {
public:
// Constructor: takes the VectorField describing the magnetic field
MagneticField(std::shared_ptr<VectorField> field);
// return the value of the magnetic field at Coordinate position as a CylinderVector
CylinderVector value(const Coordinate& position) const;
private: