source: flexpart.git/src/scalev.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: 1.8 KB
Line 
1real function scalev(ps,t,td,stress)
2
3  !********************************************************************
4  !                                                                   *
5  !                       Author: G. WOTAWA                           *
6  !                       Date:   1994-06-27                          *
7  !                       Update: 1996-05-21 A. Stohl                 *
8  !                                                                   *
9  !********************************************************************
10  !                                                                   *
11  !     This Programm calculates scale velocity ustar from surface    *
12  !     stress and air density.                                       *
13  !                                                                   *
14  !********************************************************************
15  !                                                                   *
16  !     INPUT:                                                        *
17  !                                                                   *
18  !     ps      surface pressure [Pa]                                 *
19  !     t       surface temperature [K]                               *
20  !     td      surface dew point [K]                                 *
21  !     stress  surface stress [N/m2]                                 *
22  !                                                                   *
23  !********************************************************************
24 
25  use par_mod
26
27  implicit none
28
29  real :: ps,t,td,e,ew,tv,rhoa,stress
30
31  e=ew(td)                       ! vapor pressure
32  tv=t*(1.+0.378*e/ps)           ! virtual temperature
33  rhoa=ps/(r_air*tv)              ! air density
34  scalev=sqrt(abs(stress)/rhoa)
35
36end function scalev
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG