Einasto lens
LensFactory.Lenses.init_EinastoLens — Type
init_EinastoLens(D_d::Real = NaN,
x_c::Real = 0.0,
y_c::Real = 0.0,
k_s::Real = NaN,
x_s::Real = NaN,
n::Real = 0.2)Initialize an Einasto lens with the given parameters. The lens model can be initialized with either the concentration c or the scale radius x_s. If both are provided, c will be used to calculate x_s and the input x_s will be overwritten. The parameter n defines the slope of the density profile.
Arguments
cosmology::AbstractCosmology: Cosmology object.z_d::Real: Redshift of the lens.
Keyword Arguments
x_c::Real = 0.0: x-coordinate of the lens (in $\rm \mathbf{arcseconds}$).y_c::Real = 0.0: y-coordinate of the lens (in $\rm \mathbf{arcseconds}$).mass::Real= NaN: Mass of the lens (in $\rm \mathbf{M_\odot}$).x_s::Real = NaN: Scale radius (in $\rm \mathbf{arcseconds}$).c::Real = NaN: Concentration of the lens.n::Real = 0.2: Slope parameter of the lens.
LensFactory.Lenses.EinastoLens.potential! — Function
potential!(ψ::U, θx::S, θy::S, D_d::T, θxc::T, θyc::T, k_s::T, θs::T, n::T) where {U<:Real, S<:Real, T<:Real}potential!(ψ::U, θx::S, θy::S, D_d::T, θxc::T, θyc::T, k_s::T, θs::T, n::T) where {U<:ROA, S<:ROA, T<:Real}LensFactory.Lenses.EinastoLens.deflection! — Function
deflection!(ψx::U, ψy::U, θx::S, θy::S, D_d::T, θxc::T, θyc::T, k_s::T, θs::T, n::T) where {U<:Real, S<:Real, T<:Real}deflection!(ψx::U, ψy::U, θx::S, θy::S, D_d::T, θxc::T, θyc::T, k_s::T, θs::T, n::T) where {U<:ROA, S<:ROA, T<:Real}LensFactory.Lenses.EinastoLens.jacobian! — Function
jacobian!(ψxx::U, ψyy::U, ψxy::U, θx::S, θy::S, D_d::T, θxc::T, θyc::T, k_s::T, θs::T, n::T) where {U<:Real, S<:Real, T<:Real}jacobian!(ψxx::U, ψyy::U, ψxy::U, θx::S, θy::S, D_d::T, θxc::T, θyc::T, k_s::T, θs::T, n::T) where {U<:ROA, S<:ROA, T<:Real}