Many, many more comments
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user