Version 2, position dependent E/B, kinetic ions, boris mover, terminator
This commit is contained in:
Executable
+34
@@ -0,0 +1,34 @@
|
||||
#ifndef ELECTROMAGNETIC_FIELD_H
|
||||
#define ELECTROMAGNETIC_FIELD_H
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "simulation/coordinates.h"
|
||||
#include "simulation/scalar_field.h"
|
||||
#include "simulation/vector_field.h"
|
||||
|
||||
class ElectricField {
|
||||
public:
|
||||
ElectricField(std::shared_ptr<VectorField> background,
|
||||
std::shared_ptr<VectorField> dynamic);
|
||||
|
||||
CylinderVector value(const Coordinate& position) const;
|
||||
|
||||
void updateDynamicField(std::shared_ptr<VectorField> field);
|
||||
|
||||
private:
|
||||
std::shared_ptr<VectorField> background_;
|
||||
std::shared_ptr<VectorField> dynamic_;
|
||||
};
|
||||
|
||||
class MagneticField {
|
||||
public:
|
||||
MagneticField(std::shared_ptr<VectorField> field);
|
||||
|
||||
CylinderVector value(const Coordinate& position) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<VectorField> field_;
|
||||
};
|
||||
|
||||
#endif /* ELECTROMAGNETIC_FIELD_H */
|
||||
Reference in New Issue
Block a user