23 lines
601 B
C++
Executable File
23 lines
601 B
C++
Executable File
#ifndef DRIFT_VELOCITY_H
|
|
#define DRIFT_VELOCITY_H
|
|
|
|
#include <memory>
|
|
|
|
#include "simulation/coordinates.h"
|
|
#include "simulation/vector_field.h"
|
|
|
|
// class to handle the drift veloctiy
|
|
class DriftVelocity {
|
|
public:
|
|
// Constructor: takes a VectorField that describes the direction of the drift velocity
|
|
DriftVelocity(std::shared_ptr<VectorField> drift_velocity);
|
|
|
|
// returns the drift velocity value at the Coordinate position as a CartesianVector
|
|
CartesianVector driftVelocity(const Coordinate& position);
|
|
|
|
private:
|
|
std::shared_ptr<VectorField> drift_velocity_;
|
|
};
|
|
|
|
#endif /* DRIFT_VELOCITY_H */
|