solsys

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
m (Removed 1.70 version)
(Updated to version 1.02)
Line 11: Line 11:
 
[[Syntax]]: solsys("field") or solsys("structure")
 
[[Syntax]]: solsys("field") or solsys("structure")
 
|
 
|
dv> Mars
 
struct, 18 elements
 
    M: 6.41850e+23
 
    R: 3.38950e+06
 
    rho: 3933.00
 
    aB: 0.250000
 
    aV: 0.150000
 
    H: -1.52000
 
    tr: 30000.0
 
    kI: 0.366000
 
    a: 2.27920e+11
 
    yr: 5.93551e+07
 
    e: 0.0935000
 
    srp: 88642.4
 
    day: 88774.9
 
    eps: 25.1900
 
    P: 636.000
 
    rhoa: 0.0200000
 
    T: 210.000
 
    mua: 43.3400
 
 
  dv> solsys()
 
  dv> solsys()
 
   
 
   
 
  solsys returns descriptions of solar system planet structures
 
  solsys returns descriptions of solar system planet structures
 
 
  solsys("fieldname") returns description of the input field
 
  solsys("fieldname") returns description of the input field
 
   e.g. solsys("M") returns "Mass (in kilograms)"
 
   e.g. solsys("M") returns "Mass (in kilograms)"
 
 
  solsys("structname") prints a full description of the specified structure
 
  solsys("structname") prints a full description of the specified structure
 
   e.g. solsys("Mars") explains every field in the Mars structure
 
   e.g. solsys("Mars") explains every field in the Mars structure
 
 
  Input must be a string
 
  Input must be a string
 
  Values in SI/mks units, from NASA planetary fact sheets:
 
  Values in SI/mks units, from NASA planetary fact sheets:
http://nssdc.gsfc.nasa.gov/planetary/planetfact.html
+
  http://nssdc.gsfc.nasa.gov/planetary/planetfact.html
+
  S.Marshall 02-18-2008
  S.Marshall 12-10-2007
+
 
   
 
   
 +
0
 
  dv> solsys("Mars")
 
  dv> solsys("Mars")
 
   
 
   
 
     Mars
 
     Mars
 
   
 
   
     M    =  6.418500e23 kg     Mass
+
     M    =  6.4185e+23 kg   Mass
     R    =  3.389500e6 m       Volumetric mean radius
+
     R    =  3.3895e+06 m   Volumetric mean radius
     rho  =  3933 kg/m^3       Mean mass density
+
     rho  =  3933 kg/m^3     Mean mass density
     aB  =  0.250000           Bond albedo
+
     aB  =  0.250           Bond albedo
     aV  =  0.150000           Visual geometric albedo
+
     aV  =  0.150           Visual geometric albedo
     H    = -1.520000          Absolute visual magnitude
+
     H    = -1.52            Absolute visual magnitude
     tr  =  30000 m           Topographic range
+
     tr  =  30000 m         Topographic range
     kI  =  0.366000           Moment of inertia coefficient (I/MR^2)
+
     kI  =  0.366           Moment of inertia coefficient (I/MR^2)
     a    =  2.279200e11 m     Semimajor axis of orbit
+
     a    =  2.2792e+11 m   Semimajor axis of orbit
     yr  =  5.935510e7 s       Sidereal year (revolution period)
+
     yr  =  5.93551e+07 s   Sidereal year (revolution period)
     e    =  0.093500          Orbital eccentricity
+
     e    =  0.0935          Orbital eccentricity
     srp  =  88642.398438 s     Sidereal rotation period
+
     srp  =  88642.4 s       Sidereal rotation period
     day  =  88774.898438 s     Length of day
+
     day  =  88774.9 s       Length of day
     eps  =  25.190001 degrees Rotation axial tilt
+
     eps  =  25.19 degrees   Rotation axial tilt
     P    =  636 Pa             Atmospheric pressure at surface
+
     P    =  636 Pa         Atmospheric pressure at surface
     rhoa =  0.020000 kg/m^3    Density of air at surface
+
     rhoa =  0.020 kg/m^3    Density of air at surface
     T    =  210 K             Average surface temperature
+
     T    =  210 K           Average surface temperature
     mua  =  43.340000 g/mol   Mean molecular weight of atmospheric air
+
     mua  =  43.34 g/mol     Mean molecular weight of atmospheric air
 
   
 
   
 
  0
 
  0
  dv> solsys("srp")
+
  dv> solsys("R")
  "Sidereal day / rotation period (in seconds;
+
  "Volumetric mean radius (for near-spherical objects;
   for the Sun, this is the rotation period at 16 degrees latitude)"
+
   median axis radius for irregular objects; in meters)"
dv> solsys("mua")
+
"Mean molecular weight/mass of atmospheric air (in grams per mole - NOT SI)"
+
 
|
 
|
 
|
 
|
Line 83: Line 58:
 
*[[conhelp]]
 
*[[conhelp]]
 
*constants.dvrc
 
*constants.dvrc
 +
|
 +
1.02
 
|
 
|
 
}}
 
}}
 
 
 
[[category:Functions]]
 
[[category:Functions]]
 
[[category:User Defined Functions]]
 
[[category:User Defined Functions]]
 
[[category:General_Science]]
 
[[category:General_Science]]

Revision as of 17:48, 18 February 2008


Description

Displays description of solar system structures (Sun, Earth, Moon, Mars, Phobos, Deimos) or a description of a field in those structures

This is a user-defined function from constants.dvrc

Arguments and Return Values

Arguments: A string with the name of the structure or field for which a description is needed

Return Value: When given the name of one of the solar system structures, the function prints a description of each element of the structure (but returns zero). When given the name of one of the fields in the structures, it returns a string with the description of the field.

If no arguments are input, solsys() prints its description, as shown below.

Usage

Syntax: solsys("field") or solsys("structure")

Examples

dv> solsys()

solsys returns descriptions of solar system planet structures
solsys("fieldname") returns description of the input field
 e.g. solsys("M") returns "Mass (in kilograms)"
solsys("structname") prints a full description of the specified structure
 e.g. solsys("Mars") explains every field in the Mars structure
Input must be a string
Values in SI/mks units, from NASA planetary fact sheets:
 http://nssdc.gsfc.nasa.gov/planetary/planetfact.html
S.Marshall 02-18-2008

0
dv> solsys("Mars")

    Mars

    M    =  6.4185e+23 kg   Mass
    R    =  3.3895e+06 m    Volumetric mean radius
    rho  =  3933 kg/m^3     Mean mass density
    aB   =  0.250           Bond albedo
    aV   =  0.150           Visual geometric albedo
    H    = -1.52            Absolute visual magnitude
    tr   =  30000 m         Topographic range
    kI   =  0.366           Moment of inertia coefficient (I/MR^2)
    a    =  2.2792e+11 m    Semimajor axis of orbit
    yr   =  5.93551e+07 s   Sidereal year (revolution period)
    e    =  0.0935          Orbital eccentricity
    srp  =  88642.4 s       Sidereal rotation period
    day  =  88774.9 s       Length of day
    eps  =  25.19 degrees   Rotation axial tilt
    P    =  636 Pa          Atmospheric pressure at surface
    rhoa =  0.020 kg/m^3    Density of air at surface
    T    =  210 K           Average surface temperature
    mua  =  43.34 g/mol     Mean molecular weight of atmospheric air

0
dv> solsys("R")
"Volumetric mean radius (for near-spherical objects;
 median axis radius for irregular objects; in meters)"

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Major Sub-Functions

Related Functions

Recent Library Changes

Created On: 12-12-2007
Modified On: 12-04-2010

Personal tools