You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ParameterTypes/passive_ren.jl
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Construct direct parameterisation of a passive REN.
25
25
- `ν::Number=0`: Passivity index. Use `ν > 0` for an incrementally strictly input passive model. Set both `ν = 0` and `ρ = 0` for incrementally passive model.
26
26
- `ρ::Number=0`: Passivity index. Use `ρ > 0` for an incrementally strictly output passive model.
27
27
28
-
Note that setting both `ν,ρ > 0` or both `ν,ρ < 0` is not currently supported and will throw an error.
28
+
Note that the product of passivity indices ρν has to be less than 1/4 for passive REN.
29
29
30
30
# Keyword arguments
31
31
@@ -55,8 +55,8 @@ function PassiveRENParams{T}(
55
55
end
56
56
57
57
# Check ρ and ν
58
-
if ρ*ν >0
59
-
error("If ρ and ν are both positive, passiveREN could produce incorrect results. Please set at least one of them as zero. ")
58
+
if ρ*ν >=1/4
59
+
error("ρ and ν can not be arbitrarily large for passiveREN models. Please make sure ρν < 1/4. ")
60
60
end
61
61
62
62
if ρ <0|| ν <0
@@ -114,7 +114,8 @@ function direct_to_explicit(ps::PassiveRENParams{T}, return_h=false) where T
114
114
H =x_to_h(X, ϵ, polar_param, ρ_polar) + Γ2
115
115
else
116
116
# For ρ!=0 case, ISOP model
117
-
D22 =_D22_pass(M, ρ)
117
+
D22 =_D22_pass(M, ρ)
118
+
118
119
C2_imp =_C2_pass(D22, C2, ρ)
119
120
D21_imp =_D21_pass(D22, D21, D12_imp, ρ)
120
121
@@ -132,8 +133,6 @@ function direct_to_explicit(ps::PassiveRENParams{T}, return_h=false) where T
0 commit comments