@@ -2,8 +2,8 @@ using RigorousCoupledWaveAnalysis,LinearAlgebra
2
2
using Test
3
3
include (" analytical.jl" )
4
4
@testset " VerticalIncidence" begin
5
- n1= rand ()* 10 + 10im * rand ()
6
- n2= rand ()* 10 + 10im * rand ()
5
+ n1= rand ()* 10
6
+ n2= rand ()* 10
7
7
mdl= RCWAModel ([],ConstantPerm (n1^ 2 ),ConstantPerm (n2^ 2 ))
8
8
grd= rcwagrid (0 ,0 ,100 ,100 ,1E-3 ,rand ()* 360 ,1000 ,ConstantPerm (n1^ 2 ))
9
9
ψte,~ = rcwasource (grd,n1)
@@ -15,8 +15,8 @@ R0,~,T0,~=fresnelPower(n1,n2,0)
15
15
end
16
16
17
17
@testset " GrazingIncidence" begin
18
- n1= rand ()* 10 + 10im * rand ()
19
- n2= n1+ rand ()* 10 + 10im * rand ()
18
+ n1= rand ()* 10
19
+ n2= n1+ rand ()* 10
20
20
θ= 1 + 88 rand ()
21
21
mdl= RCWAModel ([],ConstantPerm (n1^ 2 ),ConstantPerm (n2^ 2 ))
22
22
grd= rcwagrid (0 ,0 ,100 ,100 ,θ,rand ()* 360 ,1000 ,ConstantPerm (n1^ 2 ))
@@ -33,9 +33,9 @@ R0s,R0p,T0s,T0p=fresnelPower(n1,n2,θ)
33
33
end
34
34
35
35
@testset " Fabryperot" begin
36
- n1= 1 + 1 rand ()+ 1im * rand ()
36
+ n1= 1 + 1 rand ()
37
37
n2= n1+ rand ()+ 1im * rand () # n2>n1 against TIR
38
- n3= n1+ rand ()+ 1im * rand () # n3>n1 against TIR
38
+ n3= n1+ rand () # n3>n1 against TIR
39
39
θ= 88 rand ()+ 1
40
40
λ= 1000 rand ()
41
41
thickness= 100 rand ()
@@ -54,7 +54,7 @@ R0s,R0p,T0s,T0p=fabryperot(n1,n2,n3,2π/λ,thickness,θ)
54
54
end
55
55
56
56
@testset " unitySource" begin
57
- n1= 1 + 10 rand ()+ 10 rand () * 1im
57
+ n1= 1 + 10 rand ()
58
58
λ= 1000 rand ()
59
59
θ= 88 rand ()+ 1
60
60
α= 360 rand ()
88
88
89
89
90
90
@testset " RT_ScatVSETM_conservation_simple" begin
91
- eps1= 10 rand ()+ 10im * rand ()
91
+ eps1= 10 rand ()
92
92
eps2= 10 rand ()
93
93
eps3= 10 rand ()
94
- eps4= 10 rand ()+ 10im * rand ()
94
+ eps4= 10 rand ()
95
95
λ= 1000 rand ()
96
96
mdl= RCWAModel ([PatternedLayer (100 rand (),[ConstantPerm (eps2),ConstantPerm (eps3)],[Circle (rand ())])],ConstantPerm (eps1),ConstantPerm (eps4))
97
97
grd= rcwagrid (1 ,1 ,100 rand (),100 rand (),88 rand ()+ .1 ,360 rand (),λ,ConstantPerm (eps1))
0 commit comments