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

TODO: Functional API #44

Open
jejjohnson opened this issue Jul 27, 2023 · 0 comments
Open

TODO: Functional API #44

jejjohnson opened this issue Jul 27, 2023 · 0 comments

Comments

@jejjohnson
Copy link
Owner

jejjohnson commented Jul 27, 2023

A functional API for the standard spatial operator types that we typically see in numerical methods. We will target the following methods:

  • Finite Difference - just a standard wrapper for FiniteDiffX
  • Finite Volume - needs interpolation and simple finite difference operators
  • Spectral Methods - just a standard wrapper for FiniteDiffX

——
Grid Operators

These are operators that are useful for finite volume methods to do grid to grid interpolation and gradients. It is also useful for finite difference/volume methods for padding and boundary conditions.

API

  • Grid.interp
  • Grid.diff
  • Grid.pad
  • (Grid.cumsum)
  • grid.boundary
u_avg = grid.interp(u, axis=0, method="mean", operation=linear”)

du_dx = grid.difference(u, step_size=dx, axis=0, method="")

u_pad = grid.pad(u, axis=0, method="constant", values=0)

u_dirichlet = grid.boundary(u, axis=0, method=dirichlet”)
@jejjohnson jejjohnson changed the title Tutorial: Grid Operations Tutorial: Grid Operators Jul 27, 2023
@jejjohnson jejjohnson changed the title Tutorial: Grid Operators Grid Operators - Functional API Aug 9, 2023
@jejjohnson jejjohnson changed the title Grid Operators - Functional API Functional API: TODO Aug 9, 2023
@jejjohnson jejjohnson changed the title Functional API: TODO TODO: Functional API Aug 26, 2023
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