However, I need a very high resolution in some specific part of my domain, while other parts can be resolved coarsely. Therefore, I would like to prescribe the cell size as a function of the coordinates, for instance.
thank you for your answer. Refine is roughly dividing the cell size by two, I guess? So I would need to apply the refine method iteratively with a varying mesh function…
Yeah, I’ve done that before when I needed significant refinement in a specific region. It’s a bit tedious, but, for simple geometries, still may be easier than using a “real” mesh generator (e.g., Gmsh).