-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
LineCableModels.jl/src/engine/insulationimpedance/lossless.jl
Lines 13 to 14 in 5b0d0af
| # TODO: Implement consistent handling of admittance for bare conductors | |
| # Issue URL: https://github.com/Electa-Git/LineCableModels.jl/issues/18 |
struct Lossless <: InsulationImpedanceFormulation end
get_description(::Lossless) = "Lossless insulation (ideal dielectric)"
@inline function (f::Lossless)(
r_in::T,
r_ex::T,
mur_i::T,
jω::Complex{T},
) where {T <: REALSCALAR}
if isapprox(r_in, 0.0, atol = eps(T)) || isapprox(r_in, r_ex, atol = eps(T))
# TODO: Implement consistent handling of admittance for bare conductors
# Issue URL: https://github.com/Electa-Git/LineCableModels.jl/issues/18
return zero(Complex{T})
end
# Constants
mu_i = T(μ₀) * mur_i
return Complex{T}(jω * mu_i * log(r_ex / r_in) / 2π)
end
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels