netxsimdg
Loading...
Searching...
No Matches
ModelArrayDetails.hpp
Go to the documentation of this file.
1
8#ifndef MODELARRAYDETAILS_HPP
9#define MODELARRAYDETAILS_HPP
10
11// An inclusion file to detail the ModelArray dimensions and types for
12// Discontinuous Galerkin models.
13
14// Should be grouped with a consistent ModelArrayTypedefs.hpp and
15// ModelArrayDetails.cpp
16
17enum class Dimension { X, Y, Z, XVERTEX, YVERTEX, XCG, YCG, DG, DGSTRESS, NCOORDS, COUNT };
18
19enum class Type {
20 H,
21 VERTEX,
22 U,
23 V,
24 Z,
25 DG,
26 DGSTRESS,
27 CG,
28};
29
30static ModelArray HField() { return ModelArray(Type::H); }
31static ModelArray VertexField() { return ModelArray(Type::VERTEX); }
32static ModelArray UField() { return ModelArray(Type::U); }
33static ModelArray VField() { return ModelArray(Type::V); }
34static ModelArray ZField() { return ModelArray(Type::Z); }
35static ModelArray DGField() { return ModelArray(Type::DG); }
36static ModelArray DGSField() { return ModelArray(Type::DGSTRESS); }
37static ModelArray CGField() { return ModelArray(Type::CG); }
38
39const static size_t nCoords;
40
41#endif /* MODELARRAYDETAILS_HPP */