ABSTRACT

In this chapter, we introduce the reader to our 2D hp code. The logic of the code is very much the same as for the 1D hp code, so we will not discuss everything in such great detail as we have done in 1D. We shall review the content of the code and discuss the 2D data structure. After a short explanation of the graphics package, we review the fundamental routines performing the tasks discussed in the previous chapter — computation of element matrices, modifications to account for node orientations, and Dirichlet BC. We provide the information on the interface with the frontal solver and discuss the next assignment — writing your own processor. Discussion on initial mesh generation is postponed to the following chapter.