Grouping bad elements

Is there a way to create a group of elements that are below a certain quality metric? For example, I want to put all elements that are below a .4 scaled Jacobian.

You can use the “group quality” command to do this. Here is an example:

group ‘bad_mesh’ equals quality vol all scaled jacobian high .4

This command creates a new group called “bad_mesh” and adds all the mesh elements with a scaled Jacobian value of .4 or less.