home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 2 / goldfish_vol2_cd1.bin / files / misc / sci / accrete / src / structs.h < prev    next >
Encoding:
Text File  |  1992-06-12  |  1.8 KB  |  44 lines

  1. typedef struct planets_record  *planet_pointer;
  2.  
  3. typedef struct planets_record {
  4.     double a;            /* semi-major axis of the orbit (in AU)*/
  5.     double e;            /* eccentricity of the orbit         */
  6.     double mass;        /* mass (in solar masses)         */
  7.     int gas_giant;        /* TRUE if the planet is a gas giant */
  8.     int orbit_zone;             /* the 'zone' of the planet          */
  9.     double radius;        /* equatorial radius (in km)         */
  10.     double density;        /* density (in g/cc)             */
  11.     double orbital_period;    /* length of the local year (days)   */
  12.     double day;            /* length of the local day (hours)   */
  13.     int resonant_period;    /* TRUE if in resonant rotation   */
  14.     int axial_tilt;        /* units of degrees             */
  15.     double escape_velocity;    /* units of cm/sec             */
  16.     double surface_accel;    /* units of cm/sec2             */
  17.     double surface_grav;    /* units of Earth gravities         */
  18.     double rms_velocity;    /* units of cm/sec             */
  19.     double molecule_weight;    /* smallest molecular weight retained*/
  20.     double volatile_gas_inventory;
  21.     double surface_pressure;    /* units of millibars (mb)         */
  22.     int greenhouse_effect;    /* runaway greenhouse effect?    */
  23.     double boil_point;        /* the boiling point of water (Kelvin)*/
  24.     double albedo;        /* albedo of the planet             */
  25.     double surface_temp;    /* surface temperature in Kelvin     */
  26.     double hydrosphere;        /* fraction of surface covered         */
  27.     double cloud_cover;        /* fraction of surface covered         */
  28.     double ice_cover;        /* fraction of surface covered         */
  29.     planet_pointer first_moon;
  30.     planet_pointer next_planet;
  31.     } planets;
  32.  
  33.  
  34. typedef struct dust_bands_record  *dust_pointer;
  35.  
  36. typedef struct dust_bands_record {
  37.       double inner_edge;
  38.       double outer_edge;
  39.       int dust_present;
  40.       int gas_present;
  41.       dust_pointer next_band;
  42.      } dust_bands;
  43.  
  44.