6.2 The Fundamental Data Structures within SpatialDomains

As mentioned earlier, in almost all object-oriented languages (which includes C + +), there exists the concepts of class attributes and object attributes. For a summary of attributes and access patterns, please review Section 5.2. Within the SpatialDomains directory of the library, there exists a class inheritance hierarchy designed to try to encourage re-use of core algorithms (while simultaneously trying to minimize duplication of code). We present this class hierarchy in Figure 6.3.


pict

Figure 6.3 Class hierarchy derived from Geometry, the base class of the SpatialDomains Directory.


At its core, the items contained within SpatialDomains are meant to represent the mapping of StdRegion information into world-space. The various attributes contained herein related to this geometric (mesh, curvature and mapping) information. The various private, protected and public data members contained within StdRegions are provided in the subsequent sections.

6.2.1 Variables at the Level of Geometry

Private:

Protected:

Public:

6.2.2 Variables at the Level of Geometry$D for various Dimensions

Private:

Protected:

Public:

6.2.3 Variables at the Level of Shape-Specific Geometry Information

Private:

Protected:

Public:

6.2.4 Reference to World-Space Mapping

Geometry

GeomFactors

6.2.5 MeshGraph and MeshGraphIO

The MeshGraph class holds the geometric information about each element and the connectivity of these elements to form the domain, in arrays of Geometry objects. The MeshGraphIO classes handle MeshGraph’s reading and writing operations in the different file formats.

Since v5.7.0 (when MeshGraph’s input/output operations were moved to the separate MeshGraphIO classes) a MeshGraph is instantiated by calling a MeshGraphIO subclass’ Read method. Creating a MeshGraph object generates the hierarchical mesh entity data structures, constructing the domain Ω by instantiating a corresponding Geometry object for each element Ωe.