source: trunk/LMDZ.MARS/libf/phymars/call_dayperi.F @ 3026

Last change on this file since 3026 was 2963, checked in by romain.vande, 20 months ago

Mars PEM :

Adapt PEM to the subslope PCM configuration, it is now fully compatible.

Create a PEM folder in deftank that contains:

run_pem1: a bash file that runs chained simulation of PEM as well as running a parameterizable number of PCM simulation in between.

It also takes care of reshaping XIOS output as well as renaming outputs etc… in the spirit of run_month1.

It is written for Irene machine and the header needs to be adapted for other machines.

run_PEM.def: A text file that shows the possible parameters to choose before a PEM simulation.

It should be included at the end of run.def just like callphys.def

ob_ex_lsp.asc: An ascii file containing the obliquity, eccentricity, ls_peri data from Laskar in Martian year.
README: A txt file explaining the content of the folder

Adapt field_def_physics_mars.xml to consider the case with 7 subslopes in the PCM.
Change context_lmdz_physics.xml to be able to output the file needed by the PEM.

Correct a few other minor bugs.

RV

File size: 1.1 KB
RevLine 
[2448]1c *******************************************************
[2228]2      subroutine call_dayperi(Lsperi,e_elips,dayperi,year_day)
3      IMPLICIT NONE
4
5c=======================================================================
6c
7c   Objet:
8c   ------
9c   Computing the Martian date (number of sols since Ls=0 = spring
10c   equinox) at perihelion
11c
12c   Arguments:
13c   ----------
14c
15c   Input:
16c   ------
17c   Lsperi      solar longitude (Ls) of perohelion (rad)
18c   e_elips       Excentricity
[2963]19c   real year_day      ! number of sols per Mars yar
[2228]20c
21c   output
22c   ------
23c   dayperi       Martian date at perihelion (sol)
[2963]24
[2228]25c-----------------------------------------------------------------------
26
27c arguments:
28c ----------
29       real Lsperi,e_elips,dayperi
30       real year_day      ! number of sols per Mars yar
31
32
33c      Local
34       real x1, x2,pi
35
36
37       pi=2.*asin(1.)
38
39       x1 = sqrt( (1-e_elips)/(1+e_elips) )
40       x2 = e_elips*sqrt(1-e_elips**2)
41
42       dayperi = 0.5*(year_day/pi)*
43     &   ( 2*atan(x1*tan(0.5*Lsperi))
44     &     -x2*sin(Lsperi)/(1+e_elips*cos(Lsperi)) )
45       if(dayperi.lt.0) dayperi=dayperi+year_day
46       return
47       end
Note: See TracBrowser for help on using the repository browser.