-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCloud_Shock_functions2.f90
116 lines (76 loc) · 1.75 KB
/
Cloud_Shock_functions2.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
function rhoC2(x,y)
real x,y,r,r0
real rhoC2
r = ((x - 0.25)**2 + (y - 0.5)**2)**0.5
r0 = 0.15
if (x <= 0.05) then ! Omega1
rhoC2 = 3.88968
else if (x > 0.05 .and. r >= r0) then ! Omega2
rhoC2 = 1
else ! Omega3
rhoC2 = 10
end if
end
function u1C2(x,y)
real x,y
real u1C2
if (x <= 0.05) then ! Omega1
u1C2 = 11.2536
else ! Omega2 & Omega3
u1C2 = 0
end if
end
function u2C2(x,y)
real x,y
real u2C2
if (x <= 0.05) then ! Omega1
u2C2 = 0
else ! Omega2 & Omega3
u2C2 = 0
end if
end
function u3C2(x,y)
real x,y
real u3C2
if (x <= 0.05) then ! Omega1
u3C2 = 0
else ! Omega2 & Omega3
u3C2 = 0
end if
end
function pC2(x,y)
real x,y
real pC2
if (x <= 0.05) then ! Omega1
pC2 = 167.345
else ! Omega2 & Omega3
pC2 = 1
end if
end
function B1C2(x,y)
real x,y
real B1C2
if (x <= 0.05) then ! Omega1
B1C2 = 0
else ! Omega2 & Omega3
B1C2 = 0
end if
end
function B2C2(x,y)
real x,y
real B2C2
if (x <= 0.05) then ! Omega1
B2C2 = 0.21826182
else ! Omega2 & Omega3
B2C2 = 0.56418958
end if
end
function B3C2(x,y)
real x,y
real B3C2
if (x <= 0.05) then ! Omega1
B3C2 = -0.21826182
else ! Omega2 & Omega3
B3C2 = 0.56418958
end if
end