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
View File
@@ -6,15 +6,22 @@
#include "simulation/coordinates.h"
// class for a scalar field
class ScalarField {
public:
// returns the value of the scalar field at the Coordinate coordinate
virtual double value(const Coordinate& coordinate) const = 0;
};
// class for a scalar field that has an arbitrary form in longitudinal direction
// and is constant in radial in azimuthal directoin
class ScalarFieldFunctionInZ : public ScalarField {
public:
// Constructor: gets the function F_z defining the form of the scalar field
// in longitudinal direction
ScalarFieldFunctionInZ(std::function<double(double, double, double)> F_z);
// return the value of the scalar field at Coordinate coordinate
double value(const Coordinate& coordinate) const;
private: