tum-pbs / PhiFlow

A differentiable PDE solving framework for machine learning
MIT License
1.43k stars 193 forks source link

Higher-order differentiation schemes (periodic only) #80

Closed eliasdjo closed 1 year ago

eliasdjo commented 2 years ago

[field] extend spatial_gradient, laplace, divergence in _field_math to arbitrary finite difference schemes by adding the Scheme argument [field] introduce dyadic interpolation for resampling grids with an offset of exactly half a cell [math] add tensor implementation for dyadic interpolation in _nd [math] add ANTISYMMETRIC and ANTIREFLECT extrapolations for later use in higher order boundaries [physics] extend advect, diffuse by universal finite_difference implementations [physics] Add Scheme to make_incompressible()