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

Add note in docs for array slices that output is always centered on the Yee cell #2605

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

oskooi
Copy link
Collaborator

@oskooi oskooi commented Aug 9, 2023

In the documentation for output_dft, it is mentioned that:

Note that although the various field components are stored at different places in
the Yee lattice, when they are outputted they are all linearly interpolated to the 
same grid: to the points at the centers of the Yee cells, i.e. (i+0.5,j+0.5,k+0.5)⋅Δ
in 3d.

However, there is no such description for the array-slice routines get_array and get_dft_array. This interpolation feature is an important part of Meep's design philosophy of ensuring (for the user) an illusion of continuity.

@oskooi oskooi merged commit 4ec4292 into NanoComp:master Aug 9, 2023
5 checks passed
@oskooi oskooi deleted the array_slice_interp branch August 9, 2023 13:32
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.

1 participant