Generate mesh for 2D composite material using MSHR https://bitbucket.org/fenics-project/mshr
Meshes generations in composite.py
Solve linear elasticity problem using FEniCS https://fenicsproject.org/
Three variants of solutions:
- fine - simple FEM solution on fine mesh
- coarse - solution using numerical homogenization
- sparse - partial fine and coarse meshes
Elasticity solution in elasticity.py
Tested on MSHR and FEniCS versions: 2017.2, 2018.1