Dislocation-based plasticity model by analysis of discrete dislocation dynamics