source: flexpart.git/src/scalev.f90

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

add SPDX-License-Identifier to all .f90 files

  • Property mode set to 100644
File size: 1.9 KB
Line 
1! SPDX-FileCopyrightText: FLEXPART 1998-2019, see flexpart_license.txt
2! SPDX-License-Identifier: GPL-3.0-or-later
3
4real function scalev(ps,t,td,stress)
5
6  !********************************************************************
7  !                                                                   *
8  !                       Author: G. WOTAWA                           *
9  !                       Date:   1994-06-27                          *
10  !                       Update: 1996-05-21 A. Stohl                 *
11  !                                                                   *
12  !********************************************************************
13  !                                                                   *
14  !     This Programm calculates scale velocity ustar from surface    *
15  !     stress and air density.                                       *
16  !                                                                   *
17  !********************************************************************
18  !                                                                   *
19  !     INPUT:                                                        *
20  !                                                                   *
21  !     ps      surface pressure [Pa]                                 *
22  !     t       surface temperature [K]                               *
23  !     td      surface dew point [K]                                 *
24  !     stress  surface stress [N/m2]                                 *
25  !                                                                   *
26  !********************************************************************
27 
28  use par_mod
29
30  implicit none
31
32  real :: ps,t,td,e,ew,tv,rhoa,stress
33
34  e=ew(td)                       ! vapor pressure
35  tv=t*(1.+0.378*e/ps)           ! virtual temperature
36  rhoa=ps/(r_air*tv)              ! air density
37  scalev=sqrt(abs(stress)/rhoa)
38
39end function scalev
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG