Derived ScalarField class: one can now use Periodic and Null flux, which are automatically aware of the bondary conditions (respectively periodic and null).