mesh class, automatic mesh generation, boundary conditions