implementation of particle methods using FEniCS