Modeling Thermal Stresses in Periodic Structures: Some Observations Regarding the Boundary Conditions