Consistent particle-simulation approaches for fluid dynamics