Off-center versions
- class glow.lenses.Psi_offcenterSIS(p_phys={}, p_prec={})
Bases:
PsiGeneral
Lens object for the singular isothermal sphere (SIS) centered at (xc1, xc2).
Additional information: theory, default parameters.
- Parameters:
- p_physdict
Physical parameters, with keys:
psi0
(float) – Normalization of the lens.xc1
(float) – Location in the x1 axis.xc2
(float) – Location in the x2 axis.
- Attributes:
- asymp_indexfloat
0.5
- asymp_amplitudefloat
\(\psi_0/\sqrt{2}\)
Methods
ddpsi_vec
(x1, x2)Second derivatives of the lensing potential.
Initialize the default parameters.
dpsi_vec
(x1, x2)First derivatives of the lensing potential.
psi
(x1, x2)Lensing potential.
- default_params()
Initialize the default parameters.
- Returns:
- p_physdict
Default physical parameters.
- p_precdict
Empty dictionary.
- class glow.lenses.Psi_offcenterCIS(p_phys={}, p_prec={})
Bases:
PsiGeneral
Lens object for the cored isothermal sphere (CIS) centered at (xc1, xc2).
Additional information: theory, default parameters.
- Parameters:
- p_physdict
Physical parameters, with keys:
psi0
(float) – Normalization of the lens.rc
(float) – Core radius.xc1
(float) – Location in the x1 axis.xc2
(float) – Location in the x2 axis.
- Attributes:
- asymp_indexfloat
0.5
- asymp_amplitudefloat
\(\psi_0/\sqrt{2}\)
Methods
ddpsi_vec
(x1, x2)Second derivatives of the lensing potential.
Initialize the default parameters.
dpsi_vec
(x1, x2)First derivatives of the lensing potential.
psi
(x1, x2)Lensing potential.
- default_params()
Initialize the default parameters.
- Returns:
- p_physdict
Default physical parameters.
- p_precdict
Empty dictionary.
- class glow.lenses.Psi_offcenterPointLens(p_phys={}, p_prec={})
Bases:
PsiGeneral
Lens object for the point lens centered at (xc1, xc2).
Additional information: theory, default parameters.
- Parameters:
- p_physdict
Physical parameters, with keys:
psi0
(float) – Normalization of the lens.xc1
(float) – Location in the x1 axis.xc2
(float) – Location in the x2 axis.
- p_precdict
Precision parameters, with keys:
xc
(float) – Point mass regularization (Plummer sphere).
- Attributes:
- asymp_indexfloat
- asymp_amplitudefloat
\(\psi_0/2\)
Methods
ddpsi_vec
(x1, x2)Second derivatives of the lensing potential.
Initialize the default parameters.
dpsi_vec
(x1, x2)First derivatives of the lensing potential.
psi
(x1, x2)Lensing potential.
- default_params()
Initialize the default parameters.
- Returns:
- p_physdict
Default physical parameters.
- p_precdict
Empty dictionary.
- psi(x1, x2)
Lensing potential.
Evaluate the equivalent method of
Psi_PointLens
at (x1-xc1, x2-xc2).
- dpsi_vec(x1, x2)
First derivatives of the lensing potential.
Evaluate the equivalent method of
Psi_PointLens
at (x1-xc1, x2-xc2).
- ddpsi_vec(x1, x2)
Second derivatives of the lensing potential.
Evaluate the equivalent method of
Psi_PointLens
at (x1-xc1, x2-xc2).
- class glow.lenses.Psi_offcenterBall(p_phys={}, p_prec={})
Bases:
PsiGeneral
Lens object for the uniform density sphere centered at (xc1, xc2).
Additional information: theory, default parameters.
- Parameters:
- p_physdict
Physical parameters, with keys:
psi0
(float) – Normalization of the lens.b
(float) – Radius of the sphere.xc1
(float) – Location in the x1 axis.xc2
(float) – Location in the x2 axis.
- Attributes:
- asymp_indexfloat
- asymp_amplitudefloat
\(\psi_0/2\)
Methods
Check that the radius is positive.
ddpsi_vec
(x1, x2)Second derivatives of the lensing potential.
Initialize the default parameters.
dpsi_vec
(x1, x2)First derivatives of the lensing potential.
psi
(x1, x2)Lensing potential.
- default_params()
Initialize the default parameters.
- Returns:
- p_physdict
Default physical parameters.
- p_precdict
Empty dictionary.
- check_input()
Check that the radius is positive.
- Raises:
- LensException
- class glow.lenses.Psi_offcenterNFW(p_phys={}, p_prec={})
Bases:
PsiGeneral
Lens object for the NFW lens centered at (xc1, xc2).
Additional information: theory, default parameters.
- Parameters:
- p_physdict
Physical parameters, with keys:
psi0
(float) – Normalization of the lens.xs
(float) – Rescaled NFW radius.xc1
(float) – Location in the x1 axis.xc2
(float) – Location in the x2 axis.
- p_precdict
Precision parameters, with keys:
eps_soft
(float) – Softening factor.eps_NFW
(float) – Switch on Taylor expansion when \(x/x_s < \epsilon_\text{NFW}\).
Methods
ddpsi_vec
(x1, x2)Second derivatives of the lensing potential.
Initialize the default parameters.
dpsi_vec
(x1, x2)First derivatives of the lensing potential.
psi
(x1, x2)Lensing potential.
- default_params()
Initialize the default parameters.
- Returns:
- p_physdict
Default physical parameters.
- p_precdict
Default precision parameters.