-
Notifications
You must be signed in to change notification settings - Fork 1
/
allocate_var.F90
59 lines (58 loc) · 1.68 KB
/
allocate_var.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
subroutine allocate_var
use mod_fluid
!grid variables
allocate(X(0:Nx+1))
allocate(Y(0:Ny+1))
allocate(Z(0:Nz+1))
!Physical variables
allocate(mu(0:Nx+1,0:Ny+1,0:Nz+1))
!Velocity field var
allocate(ux(0:Nx+1,0:Ny+1,0:Nz+1))
allocate(uy(0:Nx+1,0:Ny+1,0:Nz+1))
allocate(uz(0:Nx+1,0:Ny+1,0:Nz+1))
allocate(H_ux(0:Nx+1,0:Ny+1,0:Nz+1))
allocate(H_uy(0:Nx+1,0:Ny+1,0:Nz+1))
allocate(H_uz(0:Nx+1,0:Ny+1,0:Nz+1))
allocate(P_ux(0:Nx+1,0:Ny+1,0:Nz+1))
allocate(P_uy(0:Nx+1,0:Ny+1,0:Nz+1))
allocate(P_uz(0:Nx+1,0:Ny+1,0:Nz+1))
ALLOCATE(diff_x(0:Nx+1,0:Ny+1,0:Nz+1))
ALLOCATE(diff_y(0:Nx+1,0:Ny+1,0:Nz+1))
ALLOCATE(diff_z(0:Nx+1,0:Ny+1,0:Nz+1))
ALLOCATE(hx(0:Nx+1,0:Ny+1,0:Nz+1))
ALLOCATE(hy(0:Nx+1,0:Ny+1,0:Nz+1))
ALLOCATE(hz(0:Nx+1,0:Ny+1,0:Nz+1))
ALLOCATE(div_U(Nx,Ny,Nz))
ALLOCATE(vz(1:Nx,1:Ny,1))
!Viscous tensor var
allocate(Txx(0:Nx+1,0:Ny+1,0:Nz+1))
allocate(Tyy(0:Nx+1,0:Ny+1,0:Nz+1))
allocate(Tzz(0:Nx+1,0:Ny+1,0:Nz+1))
allocate(Txy(0:Nx+1,0:Ny+1,0:Nz+1))
allocate(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