da_radial_velocity.inc
References to this file elsewhere.
1 subroutine da_radial_velocity(rv,p,u,v,w,qrn,ps0,x,y,z)
2
3 !-----------------------------------------------------------------------
4 ! Purpose: TBD
5 !-----------------------------------------------------------------------
6
7 implicit none
8
9 real, intent(in) :: x, y, z
10 real, intent(in) :: p, u, v, w, qrn, ps0
11 real, intent(out) :: rv
12
13 real :: r, alpha, vt
14
15 r=sqrt(x*x+y*y+z*z)
16 alpha=(ps0/p)**0.4
17
18 if (qrn <= 0.0) vt=0.
19 if (qrn > 0.0) vt=5.4*alpha*qrn**0.125
20 rv=u*x+v*y+(w-vt)*z
21 rv=rv/r
22
23 end subroutine da_radial_velocity
24
25