-
Notifications
You must be signed in to change notification settings - Fork 13
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
Spectral interpolation bugfix #128
base: psidm
Are you sure you want to change the base?
Spectral interpolation bugfix #128
Conversation
…pectral_interpolation_bugfix
@hyschive One thing that I still need to check is how to handle monotonicity: I know that monotonic interpolation introduces spurious oscillations for FDM which is why I never thought about how to properly enforce it in the spectral interpolation code. When interpolation density & phase, I manually check for negative densities and set them to 0. When interpolating RE/IM and if CONSERVE_MASS is on, DENS is interpolated separately and RE/IM are rescaled. But in this case, the spectral interpolation can introduce negative densities which cause the simulation to fail. I guess it would be possible to just carry order the monotonicity check from the quartic interpolation code and enable it when interpolating RE/IM and other fields that cannot become negative (like the density for the Poisson solver). What do you think? |
@KunkelAlexander Sorry for missing your message above. I agree with your suggestion. Do you prefer to apply the monotonic constraint everywhere or only for cells with negative values? |
@hyschive I am sorry for missing your message. Personally, I would prefer only applying the constraint to cells with negative values. Do you think that is okay? |
@KunkelAlexander Agree |
…pectral_interpolation_bugfix
XY interpolation and fix bug in spectral interpolation
XY Interpolation
Runtime parameter
Bug