source: flexpart.git/src/psim.f90 @ 3481cc1

10.4.1_peseiGFS_025bugfixes+enhancementsdevrelease-10release-10.4.1scaling-bug
Last change on this file since 3481cc1 was 3481cc1, checked in by Ignacio Pisso <ip@…>, 4 years ago

move license from headers to a different file

  • Property mode set to 100644
File size: 832 bytes
Line 
1real function psim(z,al)
2
3  !**********************************************************************
4  !                                                                     *
5  ! DESCRIPTION: CALCULATION OF THE STABILITY CORRECTION FUNCTION FOR   *
6  !              MOMENTUM AS FUNCTION OF HEIGHT Z AND OBUKHOV SCALE     *
7  !              HEIGHT L                                               *
8  !                                                                     *
9  !**********************************************************************
10
11  use par_mod
12
13  implicit none
14
15  real :: z,al,zeta,x,a1,a2
16
17  zeta=z/al
18  if(zeta.le.0.) then
19  ! UNSTABLE CASE
20    x=(1.-15.*zeta)**0.25
21    a1=((1.+x)/2.)**2
22    a2=(1.+x**2)/2.
23    psim=log(a1*a2)-2.*atan(x)+pi/2.
24  else
25  ! STABLE CASE
26    psim=-4.7*zeta
27  endif
28
29end function psim
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG