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

Simplify spherical quick_index and kde reconstruction #1123

Merged
merged 4 commits into from
Aug 27, 2021

Conversation

clevelam
Copy link
Collaborator

@clevelam clevelam commented Aug 26, 2021

Background

  • The previous spherical implementation used for KDE was error prone and required some pretty complex logic from x,y-r,theta mapping. This PR simplifies the approach by translating all locations in the quick index into r,theta space. Additionally the coarse grid data stride is then stored in r,theta as well making it much simpler to do the data mapping. It only required a few motifications in spherical geometry (primarly to catch the possibility of overlapping boundaries at the theta=0,2Pi interface).

Purpose of Pull Request

Description of changes

  • quick_index now translates (x,y) or (r,z) coordinates into spherical (r,theta) coordinates directly
  • KDE only has a small dependency on the spherical quick index implementation (used for error checking)
  • KDE no-longer need special mapping from x,y->r,theta.
  • This allowed spherical and cartesian coordinates to share the KDE boundary condition treatments and other mapping functions.

Status

@codecov
Copy link

codecov bot commented Aug 26, 2021

Codecov Report

Merging #1123 (b41b77c) into develop (fc46b6d) will increase coverage by 0.0%.
The diff coverage is 96.6%.

@@           Coverage Diff            @@
##           develop   #1123    +/-   ##
========================================
  Coverage     89.0%   89.0%            
========================================
  Files          373     374     +1     
  Lines        19573   19261   -312     
========================================
- Hits         17420   17157   -263     
+ Misses        2153    2104    -49     

@KineticTheory
Copy link
Collaborator

LGTM.

@KineticTheory KineticTheory merged commit 39f9f38 into lanl:develop Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants