a framework for CFD applications using dual resolution numerics