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

Generic source-to-disc flux #53

Merged
merged 19 commits into from
Oct 2, 2022
Merged

Generic source-to-disc flux #53

merged 19 commits into from
Oct 2, 2022

Conversation

fjebaker
Copy link
Member

@fjebaker fjebaker commented Oct 2, 2022

Implemented a model for calculating source to disc (reflected) flux for stationary lamp-posts that is metric generic, based off of the tetrad formalism from the previous commits.

It's worth noting that there are analytic LNR frames and bases that can be written in terms of the metric and inverse metric components analytically for stationary, axis-symmetric spacetimes, which will probably outperform the Gram-Schmidt algorithm I've written. These should seriously be added should this line become performance critical! I've left them out for now because I quite like the Gram-Schmidt process, and invested time getting it to work 👍

Once the isotropic angle mapping for other metrics is done (PR soon hopefully), then the 2d-transfer function calculations should be ready to work with any of our metrics!

@fjebaker fjebaker added enhancement New feature or request theory Related to mathematical theory geometry Relating to a geometrical problem analysis Issue or pull request related to an analysis technique or method labels Oct 2, 2022
@codecov-commenter
Copy link

codecov-commenter commented Oct 2, 2022

Codecov Report

Merging #53 (1c57f93) into main (3f5a548) will increase coverage by 1.71%.
The diff coverage is 44.82%.

@@            Coverage Diff             @@
##             main      #53      +/-   ##
==========================================
+ Coverage   59.46%   61.18%   +1.71%     
==========================================
  Files          37       38       +1     
  Lines        1083     1149      +66     
==========================================
+ Hits          644      703      +59     
- Misses        439      446       +7     
Impacted Files Coverage Δ
src/corona-to-disc/corona-models.jl 56.25% <0.00%> (-33.75%) ⬇️
src/corona-to-disc/flux-calculations.jl 0.00% <0.00%> (ø)
src/corona-to-disc/transfer-functions.jl 0.00% <0.00%> (ø)
src/orbits/orbit-interpolations.jl 0.00% <0.00%> (ø)
src/orbits/circular-orbits.jl 55.93% <46.87%> (+34.36%) ⬆️
src/GradusBase/geometry.jl 85.00% <82.14%> (+85.00%) ⬆️
src/corona-to-disc/disc-profiles.jl 68.93% <100.00%> (ø)
src/metrics/dilaton-axion-ad.jl 96.42% <100.00%> (ø)
src/redshift.jl 72.41% <100.00%> (ø)
src/tracing/method-implementations/auto-diff.jl 96.77% <100.00%> (ø)
... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@fjebaker fjebaker merged commit 15b0a5c into main Oct 2, 2022
@fjebaker fjebaker deleted the fergus/generic-reverberation branch October 2, 2022 17:39
fjebaker added a commit that referenced this pull request Aug 22, 2023
* julia formatting

* bugfixes in tetrad + new basis function

* formatting and clean

* LNRF test

Also removed Dilaton-Axion from tests (see issue #52).

* lnrf tests and correct domain

* use correct analytic expressions

* divide flux by time * energy bin size

* allow type to be inferred

* switch default solver + inference

* revert to Tsit5 since other default too noisy

* slightly altered api

* update exports

* fix tetrad tests

* voronoi disc profile stores geodesic points as well

* julia formatting

* source-to-disc flux model

* formatting

* bump version

* typo fixes, includes, and exports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analysis Issue or pull request related to an analysis technique or method enhancement New feature or request geometry Relating to a geometrical problem theory Related to mathematical theory
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants