Research Article

Finite Element Assembly Using an Embedded Domain Specific Language

Table 5

Assembly and solution times for the coupled PSPG/SUPG stabilized Navier-Stokes equations (Listing 18) on a 3D channel flow with 128 hexahedra (tetrahedralized in the tetra cases) in each direction.

# CPU Element Assembly Solution

32 Hexa 8.97 s 90.90 s 10.14
Tetra 7.69 s 73.06 s 9.51
Tetra specialized 2.73 s 70.95 s 25.99

64 Hexa 4.89 s 48.33 s 9.88
Tetra 4.14 s 40.59 s 9.81
Tetra specialized 1.45 s 40.15 s 27.67

128 Hexa 3.05 s 32.91 s 10.47
Tetra 2.58 s 54.53 s 21.13
Tetra specialized 0.99 s 46.32 s 46.70