Failure analysis and mechanical behaviors of metamaterials