source: trunk/LMDZ.MARS/libf/phymars/orbite.F @ 3325

Last change on this file since 3325 was 3040, checked in by jbclement, 15 months ago

Mars PCM:
The variable 'timeperi' (defined in "planete_h.F90" and computed in "iniorbit.F") is renamed into 'lsperi' and thus slightly changed to be coherent to the solar longitude of perihelion in radian. It can now be used out of the box by other subroutines/programs like the PEM.
JBC

File size: 937 bytes
Line 
1      SUBROUTINE orbite(pls,pdist_sol,pdecli)
2      USE planete_h, ONLY: e_elips, p_elips, obliquit, lsperi
3      USE comcstfi_h, ONLY: pi
4      IMPLICIT NONE
5
6c=======================================================================
7c
8c   Compute distance to Sun and declination as a function of the solar
9c   longitude Ls
10c
11c   Arguments:
12c   ----------
13c
14c   Input:
15c   ------
16c   pls          Ls (radians)
17c
18c   Output:
19c   -------
20c   pdist_sol     Distance Sun-Planet in UA
21c   pdecli        Declinaison ( in radians )
22c
23c=======================================================================
24
25c arguments:
26c ----------
27
28      REAL,INTENT(IN)  :: pls
29      REAL,INTENT(OUT) :: pdist_sol, pdecli
30
31c-----------------------------------------------------------------------
32
33c Distance Sun-Planet
34      pdist_sol = p_elips/(1.+e_elips*cos(pls-lsperi))
35
36c Solar declination
37      pdecli = asin(sin(pls)*sin(obliquit*pi/180.))
38
39      END
Note: See TracBrowser for help on using the repository browser.