Continuum modeling of periodic brickwork