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

Enhance user experience with aliasing + (fix bug in getaliasedwaveumbers) #285

Merged
merged 18 commits into from
Jun 4, 2021

Conversation

navidcy
Copy link
Member

@navidcy navidcy commented Jun 1, 2021

This PR adds a aliased_fraction field in grid. It also adds appropriate tests and updates the show(::AbstractGrid) methods.

Last, it fixes a bug in getaliasedwavenumbers() function in src/grids.jl.

Closes #284.

@navidcy navidcy changed the title adds aliased_fraction in grids + tests + update docs Enhance user experience with aliasing + (fix bug in getaliasedwaveumbers) Jun 1, 2021
@navidcy navidcy requested a review from glwagner June 1, 2021 08:40
@navidcy
Copy link
Member Author

navidcy commented Jun 1, 2021

I'm also motivated to add a section in the Docs about aliasing and demonstrating how a user can choose different aliased_fraction for different type of nonlinearities. But I'll leave this for another PR...

@glwagner
Copy link
Member

glwagner commented Jun 1, 2021

Are there any modules with nonlinearities higher than quadratic?

@navidcy
Copy link
Member Author

navidcy commented Jun 1, 2021

Not at the moment.

@navidcy
Copy link
Member Author

navidcy commented Jun 2, 2021

@glwagner, have a look now.
I rewrote the getaliasedwavenumbers function and I added another parameter in the AbstractGrid type for the aliasing. Now dealias! function dispatches and for AbstractGrid{T, A, Nothing} it does nothing, otherwise it dealiases.

Copy link
Member

@glwagner glwagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@navidcy navidcy merged commit 7a963c1 into master Jun 4, 2021
@navidcy navidcy deleted the ncc/aliased_fraction-part-of-grid branch June 4, 2021 03:50
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.

Bug in FourierFlows.getaliasedwavenumbers?
2 participants