Modelling moiré superlattice and gap opening in graphene