This repository has been archived by the owner on Aug 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstructs.h
44 lines (40 loc) · 1.82 KB
/
structs.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
typedef struct dust_record *dust_pointer;
typedef struct planets_record *planet_pointer;
typedef struct planets_record {
double a; /* semi-major axis of the orbit (in AU)*/
double e; /* eccentricity of the orbit */
double mass; /* mass (in solar masses) */
int gas_giant; /* TRUE if the planet is a gas giant */
int orbit_zone; /* the 'zone' of the planet */
double radius; /* equatorial radius (in km) */
double density; /* density (in g/cc) */
double orbital_period; /* length of the local year (days) */
double day; /* length of the local day (hours) */
int resonant_period; /* TRUE if in resonant rotation */
int axial_tilt; /* units of degrees */
double escape_velocity; /* units of cm/sec */
double surface_accel; /* units of cm/sec2 */
double surface_grav; /* units of Earth gravities */
double rms_velocity; /* units of cm/sec */
double molecule_weight; /* smallest molecular weight retained*/
double volatile_gas_inventory;
double surface_pressure; /* units of millibars (mb) */
int greenhouse_effect; /* runaway greenhouse effect? */
double boil_point; /* the boiling point of water (Kelvin)*/
double albedo; /* albedo of the planet */
double surf_temp; /* surface temperature in Kelvin */
double hydrosphere; /* fraction of surface covered */
double cloud_cover; /* fraction of surface covered */
double ice_cover; /* fraction of surface covered */
#ifdef MOON
planet_pointer first_moon;
#endif /* MOON */
planet_pointer next_planet;
} planets;
typedef struct dust_record {
double inner_edge;
double outer_edge;
int dust_present;
int gas_present;
dust_pointer next_band;
} dust;