KRC for Exoplanets

From krc
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
A user can define the orbital parameters of any body rotating around any star. PORB generates the rotation matrix accordingly.
 
A user can define the orbital parameters of any body rotating around any star. PORB generates the rotation matrix accordingly.
  
==Solar System-like==
+
First, run PORB to create a structure that can be ingested to generate the orbital rotation matrix. The following arguments are needed:
 
+
First, run PORB the orbital parameters of the body in a structure with:
+
  
 
:e: Eccentricity (Default=0)
 
:e: Eccentricity (Default=0)
Line 29: Line 27:
 
:name: Body name (default ="None")
 
:name: Body name (default ="None")
  
A user can define the orbital parameters of any body rotating around any star. PORB generates the rotation matrix accordingly.
+
Then run generic_porb() with these arguments, for example:
 
+
==Solar System-like==
+
 
+
First, run porb to define the orbital parameters of the body in a structure:
+
 
+
tmp=generic_porb(e=0, a=1.,i=1.30439695, node=100.47390909, peri=293.923, m=79.668,rot_per=200., polera=273.85,poledec=poledec, merid=7.7, period=4332.589, name="IdealJupiterTrojan")
+
 
+
Where
+
 
+
:e: Eccentricity (Default=0)
+
 
+
:a: Semi-Major Axis in AU (Default=1)
+
 
+
:i:  Inclination of mean orbit to ecliptic in degrees  (Default=0)
+
 
+
:node: Longitude of the asceding node in degrees (Default=0)
+
 
+
:per: Argument of perihelion in degrees (Default=0)
+
 
+
:m: Mean Anomaly at epoch in degrees (Default=0)
+
 
+
:rot_per: siderial rotation period in hours (Default=23.9345)
+
 
+
:polera: Right Ascension of the pole in degrees (Default=0)
+
 
+
:merid: Prime meridian at epoch in degrees (Default=0)
+
 
+
:poledec: Declination of the pole in degrees (Default=0)
+
 
+
:period: Sideral orbital period in Earth days (Default=365.256)
+
 
+
:name: Body name (default ="None")
+
 
+
 
+
 
+
 
+
printf("\nGenerate a generic PORB structure for use with the davinci porb function\n")
+
printf("This is formatted in the minor body style for porb and permits the following values described below\n\n")
+
printf("\tname = body name (Default=\"None\"\n")
+
printf("\tepoch = epoch in Julian Date (Default = 2451545.0, year 2000)\n")
+
printf("\ta = Semi-Major Axis in AU (Default=1)\n")
+
printf("\te = Eccentricity (Default=0)\n")
+
printf("\ti = Inclination of mean orbit to ecliptic in degrees  (Default=0)\n")
+
printf("\tnode = Longitude of the asceding node in degrees (Default=0)\n")
+
printf("\tperi = Argument of perihelion in degrees (Default=0)\n")
+
printf("\tm = Mean Anomoly at epoch in degrees (Default=0)\n")
+
printf("\tpolera = Right Ascention of the pole in degrees (Default=0)\n")
+
printf("\tpoledec = Declination of the pole in degrees (Default=0)\n")
+
printf("\tmerid = prime meridian at epoch in degrees (Default=0\n")
+
printf("\trot_per = siderial rotation period in hours (Default=23.9345)\n")
+
printf("\tperiod = siderial orbital period in days (Default=365.256)\n")
+
 
+
  
 +
tmp=generic_porb(e = 0, a = 1., i = 1.30439695, node = 100.47390909, peri = 293.923, m = 79.668, rot_per = 200., polera = 273.85, poledec = 0., merid = 7.7, period = 4332.589, name = "IdealJupiterTrojan")
  
 +
Then run KRC using this new body as the "body":
  
 +
out = krc( lat = 0., lon = 0, INERTIA = 20., ALBEDO =.05, LKofT = "F", body = tmp, bodytype="minor")
  
poledec=0; tmp=generic_porb(e=0, a=1.,i=1.30439695, node=100.47390909, peri=293.923, m=79.668,rot_per=200., polera=273.85,poledec=poledec, merid=7.7, period=4332.589, name="IdealJupiterTrojan")
+
This case above assumes the Sun as the central star. Any star can be defined by setting SOLCON (solar constant defined as the total stellar irradiance at 1AU in W/m^2. In the solar system, SOLCON ~ 1,361 W/m2.
  
  out=krc(lat=0.,lon=0,INERTIA=20.,ALBEDO=.05,LKofT="F",body=tmp,bodytype="minor")         #
+
  out = krc( lat = 0., lon = 0, INERTIA = 20., ALBEDO =.05, LKofT = "F", body = tmp, bodytype="minor", SOLCON = 2722.)
  
PLOTS AND EXPLANATION NEEDED HERE
+
The case above assumes a start outputting twice as much energy as the Sun.

Revision as of 20:51, 15 January 2019

A user can define the orbital parameters of any body rotating around any star. PORB generates the rotation matrix accordingly.

First, run PORB to create a structure that can be ingested to generate the orbital rotation matrix. The following arguments are needed:

e: Eccentricity (Default=0)
a: Semi-Major Axis in AU (Default=1)
i: Inclination of mean orbit to ecliptic in degrees (Default=0)
node: Longitude of the asceding node in degrees (Default=0)
per: Argument of perihelion in degrees (Default=0)
m: Mean Anomaly at epoch in degrees (Default=0)
rot_per: siderial rotation period in hours (Default=23.9345)
polera: Right Ascension of the pole in degrees (Default=0)
merid: Prime meridian at epoch in degrees (Default=0)
poledec: Declination of the pole in degrees (Default=0)
period: Sideral orbital period in Earth days (Default=365.256)
name: Body name (default ="None")

Then run generic_porb() with these arguments, for example:

tmp=generic_porb(e = 0, a = 1., i = 1.30439695, node = 100.47390909, peri = 293.923, m = 79.668, rot_per = 200., polera = 273.85, poledec = 0., merid = 7.7, period = 4332.589, name = "IdealJupiterTrojan")

Then run KRC using this new body as the "body":

out = krc( lat = 0., lon = 0, INERTIA = 20., ALBEDO =.05, LKofT = "F", body = tmp, bodytype="minor")

This case above assumes the Sun as the central star. Any star can be defined by setting SOLCON (solar constant defined as the total stellar irradiance at 1AU in W/m^2. In the solar system, SOLCON ~ 1,361 W/m2.

out = krc( lat = 0., lon = 0, INERTIA = 20., ALBEDO =.05, LKofT = "F", body = tmp, bodytype="minor", SOLCON = 2722.)

The case above assumes a start outputting twice as much energy as the Sun.

Personal tools