Macromolecular strain in periodic models of porous media flows