This repository has been archived by the owner on Dec 22, 2021. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Here is the preliminary pull request for the prism Fourier calculations. This is wildly incomplete, but I wanted to put a pull request up so you could see the derivation and computations. Lots of messy comments right now.
I have a very peculiar issue that I'm working--the Fourier domain solution is offset from the space domain solution by (dx/2, dy/2). I THINK it has to do with how numpy computes the wavenumber vectors, but I'm not sure. Numpy returns a negative nyquist, which if not handled properly could result in this kind of shift in the phase spectrum. I thought everything was self consistent though. The following file demonstrates the issue.
utFourierGrav.pdf
If I write up everything manually, using my own wavenumber computation, folding routines, and only use the fft/ifft from Numpy, I don't think that error occurs.
Next steps (and thoughts):
You'll note that there is a general potential and a gravitational potential function. This is because both the mag and grav can use the general potential (1/r) formulation to construct their solutions.
Checklist:
doc/contributors.rst
(leave for last)