Use of iterative algorithms to calculate the softening curve in concrete