Files
karl/include/simulation/drift_velocity.h

26 lines
821 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);
// overload using both the cartesian and cylinder coordinate version of the position
CartesianVector driftVelocity(const CartesianCoordinate& cartpos,
const CylinderCoordinate& cylpos);
private:
std::shared_ptr<VectorField> drift_velocity_;
};
#endif /* DRIFT_VELOCITY_H */