Numerical determination of J-R curve using void model