The construction of two- and three-dimensional computational grids using linear variational methods is analyzed. The generating equations include aspect ratios to prevent grid folding and stretching transformations to distribute grid points. Control functions for adaptive grids can also be included. In all cases, the grid points are determined by solving a diagonally dominant linear system of equations.