-
Notifications
You must be signed in to change notification settings - Fork 2
/
ElectricForce.h
executable file
·35 lines (27 loc) · 1.13 KB
/
ElectricForce.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
* @file ElectricForce.h
* @brief Defines the data and methods of the ElectricForce class
*
* @license This file is distributed under the BSD Open Source License.
* See LICENSE.TXT for details.
**/
#ifndef ELECTRICFORCE_H
#define ELECTRICFORCE_H
#include "Force.h"
class ElectricForce : public Force {
public:
ElectricForce(Cloud * const C, double electricField, double plasmaRad)
: Force(C), electric(electricField), radius(plasmaRad) {}
~ElectricForce() {}
virtual void force1(const double currentTime); // rk substep 1
virtual void force2(const double currentTime); // rk substep 2
virtual void force3(const double currentTime); // rk substep 3
virtual void force4(const double currentTime); // rk substep 4
virtual void writeForce(fitsfile * const file, int * const error) const;
virtual void readForce(fitsfile * const file, int * const error);
private:
double electric; //!< Strength of the electric force [V/m^2]
double radius; //!< Decay constant of the electric force [m]
void force(const cloud_index currentParticle, const doubleV currentPositionX, const doubleV currentPositionY);
};
#endif // ELECTRICFORCE_H