changa
3.5
Loading...
Searching...
No Matches
externalForce.h
1
#ifndef EXTERNALFORCE_HINCLUDED
2
#define EXTERNALFORCE_HINCLUDED
3
4
#include "parameters.h"
6
class
ExternalForce
{
7
public
:
8
int
bBodyForce
;
9
double
dBodyForceConst;
10
int
bPatch
;
11
double
dCentMass
;
12
double
dCentRad
;
13
double
dOrbDist
;
14
int
bCentralBody
;
15
double
dEqRad
;
16
double
dJ2
;
17
double
dJ4;
18
double
dJ6;
19
int
bLogarithmicHalo
;
20
int
bDoGasDrag;
/* Apply gas drag force to planetesimals */
21
double
dRadInfGas;
/* Inflation factor for radius of particles, used for gas drag calculations */
22
double
dSigma0;
/* Gas surface density at 1 AU */
23
int
bConstGasProf;
/* Ignore gas surface density and use a constant volume density */
24
double
dConstGasRho;
/* Value to use for constant gas volume density */
25
double
dP;
/* Power law slope of gas surface density profile */
26
double
dQ;
/* Power law slope of gas temperature profile */
27
double
dT0;
/* Gas temperature at 1 AU */
28
double
dMu;
/* Mean molecular weight of gas */
29
double
dCD;
/* Gas drag force coefficient */
30
31
void
AddParams(PRM prm);
32
void
CheckParams(PRM prm,
struct
parameters
¶m);
33
Vector3D<double> applyGravPotential(
GravityParticle
*p,
int
bKepStep)
const
;
34
void
applyGasDrag(
GravityParticle
*p)
const
;
35
inline
void
pup(PUP::er &p);
36
};
37
38
inline
void
ExternalForce::pup(PUP::er &p) {
39
p |
bBodyForce
;
40
p | dBodyForceConst;
41
p |
bPatch
;
42
p |
dCentMass
;
43
p |
dCentRad
;
44
p |
dOrbDist
;
45
p |
bCentralBody
;
46
p |
dEqRad
;
47
p |
dJ2
;
48
p | dJ4;
49
p | dJ6;
50
p |
bLogarithmicHalo
;
51
p | bDoGasDrag;
52
p | dSigma0;
53
p | bConstGasProf;
54
p | dConstGasRho;
55
p | dRadInfGas;
56
p | dP;
57
p | dQ;
58
p | dT0;
59
p | dMu;
60
p | dCD;
61
}
62
63
#endif
ExternalForce
External force parameters and routines.
Definition
externalForce.h:6
ExternalForce::dCentMass
double dCentMass
Central mass.
Definition
externalForce.h:11
ExternalForce::dCentRad
double dCentRad
Radius of central star.
Definition
externalForce.h:12
ExternalForce::dOrbDist
double dOrbDist
Distance of the patch from the center.
Definition
externalForce.h:13
ExternalForce::bLogarithmicHalo
int bLogarithmicHalo
Type of halo is logarithmic.
Definition
externalForce.h:19
ExternalForce::dJ2
double dJ2
Oblateness coefficients of central body.
Definition
externalForce.h:16
ExternalForce::bBodyForce
int bBodyForce
Constant acceleration.
Definition
externalForce.h:8
ExternalForce::dEqRad
double dEqRad
Equatorial radius of central body.
Definition
externalForce.h:15
ExternalForce::bCentralBody
int bCentralBody
Mass at the origin.
Definition
externalForce.h:14
ExternalForce::bPatch
int bPatch
Patch in a disk.
Definition
externalForce.h:10
GravityParticle
Fundamental type for a particle.
Definition
GravityParticle.h:364
parameters
Hold parameters of the run.
Definition
parameters.h:15
Generated by
1.13.2