changa 3.5
Loading...
Searching...
No Matches
externalForce.h
1#ifndef EXTERNALFORCE_HINCLUDED
2#define EXTERNALFORCE_HINCLUDED
3
4#include "parameters.h"
7public:
9 double dBodyForceConst;
10 int bPatch;
11 double dCentMass;
12 double dCentRad;
13 double dOrbDist;
15 double dEqRad;
16 double dJ2;
17 double dJ4;
18 double dJ6;
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 &param);
33 Vector3D<double> applyGravPotential(GravityParticle *p, int bKepStep) const;
34 void applyGasDrag(GravityParticle *p) const;
35 inline void pup(PUP::er &p);
36 };
37
38inline 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;
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
External force parameters and routines.
Definition externalForce.h:6
double dCentMass
Central mass.
Definition externalForce.h:11
double dCentRad
Radius of central star.
Definition externalForce.h:12
double dOrbDist
Distance of the patch from the center.
Definition externalForce.h:13
int bLogarithmicHalo
Type of halo is logarithmic.
Definition externalForce.h:19
double dJ2
Oblateness coefficients of central body.
Definition externalForce.h:16
int bBodyForce
Constant acceleration.
Definition externalForce.h:8
double dEqRad
Equatorial radius of central body.
Definition externalForce.h:15
int bCentralBody
Mass at the origin.
Definition externalForce.h:14
int bPatch
Patch in a disk.
Definition externalForce.h:10
Fundamental type for a particle.
Definition GravityParticle.h:364
Hold parameters of the run.
Definition parameters.h:15