Last change
on this file since 1655 was
1368,
checked in by emillour, 10 years ago
|
Mars GCM:
Some cleanup in orbit.F
EM
|
File size:
939 bytes
|
Rev | Line | |
---|
[38] | 1 | SUBROUTINE orbite(pls,pdist_sol,pdecli) |
---|
[1368] | 2 | USE planete_h, ONLY: e_elips, p_elips, obliquit, timeperi |
---|
| 3 | USE comcstfi_h, ONLY: pi |
---|
[38] | 4 | IMPLICIT NONE |
---|
| 5 | |
---|
| 6 | c======================================================================= |
---|
| 7 | c |
---|
[1368] | 8 | c Compute distance to Sun and declination as a function of the solar |
---|
[38] | 9 | c longitude Ls |
---|
| 10 | c |
---|
| 11 | c Arguments: |
---|
| 12 | c ---------- |
---|
| 13 | c |
---|
| 14 | c Input: |
---|
| 15 | c ------ |
---|
[1368] | 16 | c pls Ls (radians) |
---|
[38] | 17 | c |
---|
| 18 | c Output: |
---|
| 19 | c ------- |
---|
| 20 | c pdist_sol Distance Sun-Planet in UA |
---|
[1368] | 21 | c pdecli declinaison ( in radians ) |
---|
[38] | 22 | c |
---|
| 23 | c======================================================================= |
---|
| 24 | |
---|
| 25 | c arguments: |
---|
| 26 | c ---------- |
---|
| 27 | |
---|
[1368] | 28 | REAL,INTENT(IN) :: pls |
---|
| 29 | REAL,INTENT(OUT) :: pdist_sol,pdecli |
---|
[38] | 30 | |
---|
| 31 | c----------------------------------------------------------------------- |
---|
| 32 | |
---|
| 33 | c Distance Sun-Planet |
---|
| 34 | |
---|
| 35 | pdist_sol=p_elips/(1.+e_elips*cos(pls+timeperi)) |
---|
| 36 | |
---|
| 37 | c Solar declination |
---|
| 38 | |
---|
| 39 | pdecli= asin (sin(pls)*sin(obliquit*pi/180.)) |
---|
| 40 | |
---|
| 41 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.