Computational Method for Stress Analysis of Structures with Global and Local Heterogeneity