-
Notifications
You must be signed in to change notification settings - Fork 2
/
RotationalForce.h
executable file
·46 lines (36 loc) · 1.33 KB
/
RotationalForce.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
36
37
38
39
40
41
42
43
44
45
46
/**
* @file RotationalForce.h
* @brief Defines the data and methods of the RotationalForce class
*
* @license This file is distributed under the BSD Open Source License.
* See LICENSE.TXT for details.
**/
#ifndef ROTATIONALFORCE_H
#define ROTATIONALFORCE_H
#include "Force.h"
class RotationalForce : public Force {
public:
/**
* @brief Constructor for the RotationalForce class
**/
RotationalForce(Cloud * const C, const double rmin, const double rmax, const double rotConst)
: Force(C), innerRad(rmin), outerRad(rmax), rotationalConst(rotConst) {}
/**
* @brief Destructor for the RotationalForce class
**/
~RotationalForce() {}
void force1(const double currentTime); // rk substep 1
void force2(const double currentTime); // rk substep 2
void force3(const double currentTime); // rk substep 3
void force4(const double currentTime); // rk substep 4
void writeForce(fitsfile *file, int *error) const;
void readForce(fitsfile *file, int *error);
private:
double innerRad; //<! F=0 if radius is less than this value [m]
double outerRad; //<! F=0 if radius is less than this value [m]
double rotationalConst; //<! Strength of rotational force [N]
void force(const cloud_index currentParticle,
const doubleV currentPositionX,
const doubleV currentPositionY);
};
#endif // ROTATIONALFORCE_H