SciML / MethodOfLines.jl

Automatic Finite Difference PDE solving with Julia SciML
https://docs.sciml.ai/MethodOfLines/stable/
MIT License
166 stars 31 forks source link

Interpolate grid values for staggered grid discretization #351

Open cmhyett opened 10 months ago

cmhyett commented 10 months ago

Currently staggered grid uses a single index of the "other" variable from default implementation of valmaps. We should enrich this to use interpolations - lowest bar is centered average to achieve 2nd-order accuracy for non-homogeneous equations. Specialize valmaps on discretization, map index to output of user-specified interpolation scheme.