Skip to content

Implement consistent handling of admittance for bare conductors #18

@github-actions

Description

@github-actions

# 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions