Solved by albanD in post #4 
              
              
                You cannot define gradients for discrete quantities. So tricky here mean not possible  
A trick that can be used to get around this is to make these quantities continuous. But this is not always possible and can have very weird interpretation depending on the application. For the connectivity here …