Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refractive metric #22

Merged
merged 3 commits into from
Apr 29, 2022
Merged

Refractive metric #22

merged 3 commits into from
Apr 29, 2022

Conversation

fjebaker
Copy link
Member

Added the BoyerLindquist + Refraction metric from Chainakun et al. (2022) with the AD backend.

There exists an issue with this 2nd order approach, namely that a direct discontinuity between the region of n > 1 and n = 1 means the AD has no gradient to compute, and the trajectories lose energy. To avoid this, I added an interpolated region which uses an arctan function to very closly mimic the shape of a step function, and provide a steep gradient along the corona membrane. This method keeps energy constant, and seems to yield good results.

Colouring by radial coordinate, a=1, n=1.1

m = KerrRefractiveAD(M=1.0, a=0.998, n=1.1, corona_radius=20.0)

which may be rendered as usual:
ref-n-1 1

For a=1, n=0.95:
ref-n-0 95

@fjebaker
Copy link
Member Author

Also closes #20 by using the correct metric components in the impact parameter mapping.

@fjebaker fjebaker linked an issue Apr 29, 2022 that may be closed by this pull request
@fjebaker fjebaker added enhancement New feature or request metrics Issue or pull request related to a metric or metric implementation labels Apr 29, 2022
@fjebaker fjebaker merged commit b78ca86 into main Apr 29, 2022
@fjebaker fjebaker deleted the fergus/refractive-metric branch April 29, 2022 09:38
fjebaker added a commit that referenced this pull request Aug 22, 2023
* fixed impact parameter mapping in second order

* added metric with refractive index

* added exports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request metrics Issue or pull request related to a metric or metric implementation
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Second order method is mapping impact parameters badly
1 participant