-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCloud_Shock_functions.f90
117 lines (76 loc) · 1.7 KB
/
Cloud_Shock_functions.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
function rhoC(x,y)
real x,y,r,r0
real rhoC
r = ((x - 1.4)**2 + (y - 0.5)**2)**0.5
r0 = 0.18
if (x <= 1.2) then ! Omega1
rhoC = 3.88968
else if (x > 1.2 .and. r >= r0) then ! Omega2
rhoC = 1
else ! Omega3
rhoC = 5
end if
end
function u1C(x,y)
real x,y
real u1C
if (x <= 1.2) then ! Omega1
u1C = 0
else ! Omega2 & Omega3
u1C = -3.3156
end if
end
function u2C(x,y)
real x,y
real u2C
if (x <= 1.2) then ! Omega1
u2C = 0
else ! Omega2 & Omega3
u2C = 0
end if
end
function u3C(x,y)
real x,y
real u3C
if (x <= 1.2) then ! Omega1
u3C = -0.05234
else ! Omega2 & Omega3
u3C = 0
end if
end
function pC(x,y)
real x,y
real pC
if (x <= 1.2) then ! Omega1
pC = 14.2641
else ! Omega2 & Omega3
pC = 0.04
end if
end
function B1C(x,y)
real x,y
real B1C
if (x <= 1.2) then ! Omega1
B1C = 1
else ! Omega2 & Omega3
B1C = 1
end if
end
function B2C(x,y)
real x,y
real B2C
if (x <= 1.2) then ! Omega1
B2C = 0
else ! Omega2 & Omega3
B2C = 0
end if
end
function B3C(x,y)
real x,y
real B3C
if (x <= 1.2) then ! Omega1
B3C = 3.9353
else ! Omega2 & Omega3
B3C = 1
end if
end