The MeshFaceArray can either be a repository or a sequence of MeshFace objects depending on how it is accessed. If accessed using elemFaces it is a repository. Instead, if elementFaces is used, it is a sequence.
When accessing it as a repository, masked indices should be used. The masked index refers to a combination of an element and element face. Hence, these indices may not be in order and it may even be greater than the length of the MeshFaceArray. In addition, the length of this repository will contain an entry for an element face per element (i.e.,) if an element face is shared by two elements, there will be two entries to indicate this.
When accessing it as a sequence, regular indices can be used. If masked indices are preferred, use the getSequenceFromMask method available on elementFaces. The length of this sequence is unique. Shared element faces have only one entry in this sequence.
import part mdb.models[name].parts[name].elementFaces mdb.models[name].parts[name].elemFaces import assembly mdb.models[name].rootAssembly.instances[name].elementFaces mdb.models[name].rootAssembly.instances[name].elemFaces
This method returns the object or objects in the MeshFaceArray identified using the specified mask. When large number of objects are involved, this method is highly efficient.
Required argument
A String specifying the object or objects.
Optional arguments
Return value
A MeshFace object.
Exceptions
An exception occurs if the resulting sequence is empty.