-
Notifications
You must be signed in to change notification settings - Fork 2
/
DrivingForce.h
executable file
·39 lines (31 loc) · 1.24 KB
/
DrivingForce.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
/**
* @file DrivingForce.h
* @brief Defines the data and methods of the DrivingForce class
*
* @license This file is distributed under the BSD Open Source License.
* See LICENSE.TXT for details.
**/
#ifndef DRIVINGFORCE_H
#define DRIVINGFORCE_H
#include "Force.h"
#include "VectorCompatibility.h"
class DrivingForce : public Force {
public:
DrivingForce(Cloud * const C, const double dampConst, const double amp, const double drivingShift)
: Force(C), amplitude(amp), driveConst(-dampConst), shift(drivingShift) {}
~DrivingForce() {}
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 * const file, int * const error) const;
void readForce(fitsfile * const file, int * const error);
private:
double amplitude; //!< Amplitude of driving force [N]
double driveConst; //!< [m^2]
double shift; //!< [m]
static const double waveNum; //!< [m^-1]
static const double angFreq; //!< [rad*Hz]
void force(const cloud_index currentParticle, const doubleV currentTime, const doubleV currentPositionX);
};
#endif // DRIVINGFORCE_H