I understand that the Comsol mesh quality parameter, represented by ale.qual or dg.qual, is some function of element aspect ratio that represents how stretched it is. However, I could not find the actual expression used to calculate it anywhere. Does anyone know what qual actually is?