ndiffusion.validate_mesh¶
- ndiffusion.validate_mesh(mesh: ndiffusion._core.UnstructuredMesh2D) None¶
Raise ValueError unless the mesh connectivity is structurally sound: matching vx/vy lengths, cell_offsets starting at 0 and stepping by at least 3 per cell up to len(cell_vertices), vertex indices in range, paired bface_v0/bface_v1, and no zero-area cells. The solver constructors call this themselves.