An Efficient Computational Frameworks For Design And Analysis Of Metamaterials