Metamaterial simulation methodology