Research Article

Boolean-Based Surface Procedure for the External Heat Transfer Analysis of Dams during Construction

Algorithm 2

Recognition of the external surfaces.
(1) for     do    // Searching all the elements
(2)    Request the element type and the count of faces in one element is stored as .
(3)    for     do     // Searching all the faces
(4)       Obtain the minimum node number of the face nodes, labeled as .
(5)    end  loop  
(6) end  loop  
(7) Search for the faces with the same value of .
(8) Compare the topology of the faces. If two faces have the same nodes list, note them as internal faces.
(9) All the faces that have not been noted can be stored as the external surfaces.