-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdynam.f90
63 lines (37 loc) · 1.09 KB
/
dynam.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
!****************************************************************
! This module includes dynamical properties: vv and entrianment
!****************************************************************
MODULE dynamMD
use constant
use empirical
implicit none
CONTAINS
SUBROUTINE binnum(aerobin)
implicit none
real(RLK), intent(out) :: aerobin
aerobin=20
END SUBROUTINE binnum
SUBROUTINE vertvelo(ivv,v0)
implicit none
integer, intent(in) :: ivv
real(RLK), intent(out) :: v0
if (ivv.eq.1) then
v0=0
else if (ivv.eq.2) then
v0=200.0
endif
END SUBROUTINE vertvelo
SUBROUTINE entrain(ientr,temp,press,entrrt,entralpha,drytemp,dryvmr)
implicit none
integer, intent(in) :: ientr
real(RLK), intent(in) :: temp, press
real(RLK), intent(out) :: entrrt, entralpha,drytemp,dryvmr
real*8 :: dryrh,dryvpr
entrrt = 0.0 + 0.1 * ( real(ientr,8) - 1.0 )
entralpha = 0.0
drytemp = temp - 1.0
dryrh = 0.8
dryvpr=SVP(drytemp)*dryrh
dryvmr=dryvpr*eps/(press-dryvpr)
END SUBROUTINE entrain
END MODULE dynamMD