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

New method for computing optical depths #93

Merged
merged 20 commits into from
Jul 20, 2022
Merged

Conversation

ThomasCeulemans
Copy link
Collaborator

Implemented a new way of computing the optical depth by integrating the opacity over an individual line. This changes the way how rays need to be handled (no longer do we need to add ghost points in between if the doppler shift is too large). For models with moderate shifts, this can be about 10% slower, however, for larger doppler shifts, this results in a massive performance increase (no longer does the computation time scale with the total shift on the ray). On the plus side, the optical depth should be computed more accurately. For playing around with speed vs accuracy, one can always change the parameter max_width_fraction (higher->less accurate, but faster).

Practically, most solvers just have some minor code changed to use the new method. However, the short-characteristics method has been (lazily) rewritten to use the source function and optical depth instead of emissivity and opacity. The inspection function for the feautrier solver has also been slightly changed and now no longer returns the emissivity and opacity (instead return the source function).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants