A framework for iterative numerical modeling