CREATING QUADRATIC TETRAHEDRAL ELEMENTS.

Linear tetrahedral elements usually perform not very well, unless you have an extremely dense mesh. Therefore, it is much better to resort to 10-node quadratic elements by inserting middle nodes on each edge. The external middle nodes have to be projected onto the external surface, which requires special attention. The following routines are dedicated to this job: