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

Incorporating compact finite difference #93

Open
sijiehuang23 opened this issue Dec 29, 2024 · 2 comments
Open

Incorporating compact finite difference #93

sijiehuang23 opened this issue Dec 29, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@sijiehuang23
Copy link

High-fidelity simulation of PDEs.
Solving PDEs that exhibit multi-scale behaviors (e.g., Burgers equation) requires high-fidelity numerics, preferrably with spectral-like resolution. Compact finite difference (see e.g., Lele, 1992) is one of those schemes designed for this purpose.

Incorporating compact finite difference into the findiff package
I'm wondering if it is possible, or if your team is interested in, implementing and incorporating such a scheme into the current findiff package.

The boundary points might be a little bit tricky, but still solvable. For periodic boundary condition, the scheme can easily adapt. For non-periodic condition, maybe switch to regular one-sided finite difference.

@maroba
Copy link
Owner

maroba commented Dec 30, 2024

Sounds like an interesting new feature. At first glance, it should not be too much work. I will have a closer look and see if I have time to implement it in January.

@maroba maroba self-assigned this Dec 30, 2024
@maroba maroba added the enhancement New feature or request label Dec 30, 2024
@maroba
Copy link
Owner

maroba commented Jan 1, 2025

Interim report: I implemented compact differences on branch "compact-differences" for periodic boundary conditions with equidistant grids according to Lele 1992.

To do's for myself:

  • Adapt accuracy calculation in case of compact schemes
  • Implement non-periodic case
  • Implement non-uniform cases
  • documentation

maroba added a commit that referenced this issue Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants