A homogenized model for size-effects in porous metals