A General Computational Formalism for Networks of Structured Grids