Modeling microstructures and microstructural effects on macroscopic and intragranular mechanical behavior