-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_script.jl
More file actions
45 lines (33 loc) · 752 Bytes
/
test_script.jl
File metadata and controls
45 lines (33 loc) · 752 Bytes
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
include("tests.jl")
Nx1 = 32
Nx2 = 32
Nv1 = 64
Nv2 = 64
x1_min = 0.0
x2_min = 0.0
x1_max = 4.0*pi
x2_max = 4.0*pi
v1_min = -6.0
v2_min = -6.0
v1_max = 6.0
v2_max = 6.0
epsilon = 0.005
k_x1 = 0.5
k_x2 = 0.5
t_steps = 300
t_max = t_steps * 0.1
t = range(0, stop=t_max, length=t_steps)
meshX = UniformMesh2D(x1_min, x1_max,
x2_min, x2_max,
Nx1, Nx2)
meshV = UniformMesh2D(v1_min, v1_max,
v2_min, v2_max,
Nv1, Nv2)
f = zeros(Complex{Float64}, meshX.Nx1, meshX.Nx2,
meshV.Nx1, meshV.Nx2)
test_initLandau2D(f,
epsilon,
k_x1,
k_x2,
meshX,
meshV)