River morphodynamics with creation/consumption of grain size stratigraphy 2: numerical model