Composite lenses

class glow.lenses.CombinedLens(p_phys={}, p_prec={})

Bases: PsiAxisym

Create a composite lens.

Parameters:
p_physdict

Physical parameters, with keys:

  • lenses (list) – List of lens objects.

Attributes:
asymp_index, asymp_amplitudefloat

If the attributes asymp_index, asymp_amplitude are defined for all the lenses, we assign to the composite lens the following values:

  • asymp_index = minimum of all the indices

  • asymp_amplitude = sum of all the amplitudes

Methods

check_input()

If the composite lens contains a combination of composite lenses, we flatten them to create a single composite lens.

ddpsi_ddx(x)

Second derivatives of the lensing potential for axisymmetric lenses.

ddpsi_vec(x1, x2)

Second derivatives of the lensing potential.

default_params()

Initialize the default parameters.

display_info()

Print internal information in human-readable form.

dpsi_dx(x)

First derivatives of the lensing potential for axisymmetric lenses.

dpsi_vec(x1, x2)

First derivatives of the lensing potential.

psi(x1, x2)

Lensing potential.

psi_x(x)

Lensing potential for axisymmetric lenses.

default_params()

Initialize the default parameters.

Returns:
p_physdict

Default physical parameters.

p_precdict

Default precision parameters.

check_input()

If the composite lens contains a combination of composite lenses, we flatten them to create a single composite lens.

display_info()

Print internal information in human-readable form.

psi_x(x)

Lensing potential for axisymmetric lenses.

Sum over all the lenses.

dpsi_dx(x)

First derivatives of the lensing potential for axisymmetric lenses.

Sum over all the lenses.

ddpsi_ddx(x)

Second derivatives of the lensing potential for axisymmetric lenses.

Sum over all the lenses.

psi(x1, x2)

Lensing potential.

Sum over all the lenses.

dpsi_vec(x1, x2)

First derivatives of the lensing potential.

Sum over all the lenses.

ddpsi_vec(x1, x2)

Second derivatives of the lensing potential.

Sum over all the lenses.