Skip to content

Implement consistent handling of admittance for bare conductors #18

Description

@github-actions

# TODO: Implement consistent handling of admittance for bare conductors
# Issue URL: https://github.com/Electa-Git/LineCableModels.jl/issues/18

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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