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

sin(0) mode is not always 0 in the disk if Nphi=2 #304

Open
csskene opened this issue Aug 20, 2024 · 0 comments
Open

sin(0) mode is not always 0 in the disk if Nphi=2 #304

csskene opened this issue Aug 20, 2024 · 0 comments

Comments

@csskene
Copy link
Contributor

csskene commented Aug 20, 2024

If the phi resolution in a disk is exactly 2 then the sin(0) mode is not zeroed.
For example if I set Nr=1 and Nphi=2 and make a field f initialised with f['c'][:2]=1, then after transforming to grid space and back it is still the case that f['c'][:2]=1. If Nphi=4 then doing the same procedure results in f['c'][1] as 0. Attached is a small script that demonstrates this as Nphi is changed.

disk_nphi2.txt

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

No branches or pull requests

1 participant