MulensModel.binarylenswithshear module¶
- class MulensModel.binarylenswithshear.BinaryLensWithShear(mass_1=None, mass_2=None, separation=None, convergence_K=None, shear_G=None)¶
Bases:
MulensModel.binarylens.BinaryLens
The binary lens with shear and convergence: solutions, images, parities, magnifications, etc.
The binary lens with shear and convergence equation is the 9th order complex polynomial.
- Attributes :
- mass_1: float
mass of the primary (left-hand object) as a fraction of the total mass.
- mass_2: float
mass of the secondary (right-hand object) as a fraction of the total mass.
- separation: float
separation between the two bodies as a fraction of the Einstein ring.
- convergence_K: float
External mass sheet convergence.
- shear_G: complex
External mass sheat shear.
Note: mass_1 and mass_2 may be defined as a fraction of some other mass than the total mass. This is possible but not recommended - make sure you know what you’re doing before you start using this possibility.
If you’re using this class, then please cite Peirson et al. (2022; ApJ 927, 24).
- point_source_magnification(source_x, source_y, vbbl_on=True)¶
Calculate point source magnification for given position. The origin of the coordinate system is at the center of mass and both masses are on X axis with higher mass at negative X; this means that the higher mass is at (X, Y)=(-s*q/(1+q), 0) and the lower mass is at (s/(1+q), 0).
- Parameters :
- source_x: float
X-axis coordinate of the source.
- source_y: float
Y-axis coordinate of the source.
- Returns :
- magnification: float
Point source magnification.