DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
Loading...
Searching...
No Matches
ElementTraitsBase.hpp File Reference
#include <array>
#include <cstdint>
#include "DNDS/Defines.hpp"
#include "Geometric.hpp"
#include "ElemEnum.hpp"
Include dependency graph for ElementTraitsBase.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  DNDS
 the host side operators are provided as implemented
 
namespace  DNDS::Geom
 
namespace  DNDS::Geom::Elem
 

Macros

#define DNDS_ELEMENT_TRAITS_COMMON(ETYPE, DIM_, ORDER_, NV_, NN_, NF_, PSPACE_, PSVOL_)
 Common element trait definitions.
 

Typedefs

using DNDS::Geom::Elem::tElevSpan = std::array< t_index, elevSpanMaxWidth >
 Elevation span type: array of parent node indices.
 
using DNDS::Geom::Elem::tBisectSub = std::array< t_index, bisectSubMaxNodes >
 Bisection sub-element node array type.
 
using DNDS::Geom::Elem::tVTKNodeOrder = std::array< int, vtkNodeOrderMax >
 VTK node ordering permutation array type.
 

Macro Definition Documentation

◆ DNDS_ELEMENT_TRAITS_COMMON

#define DNDS_ELEMENT_TRAITS_COMMON (   ETYPE,
  DIM_,
  ORDER_,
  NV_,
  NN_,
  NF_,
  PSPACE_,
  PSVOL_ 
)
Value:
static constexpr ElemType elemType = ETYPE; \
static constexpr int dim = DIM_; \
static constexpr int order = ORDER_; \
static constexpr int numVertices = NV_; \
static constexpr int numNodes = NN_; \
static constexpr int numFaces = NF_; \
static constexpr ParamSpace paramSpace = PSPACE_; \
static constexpr t_real paramSpaceVol = PSVOL_;
double order
Definition test_ODE.cpp:257

Common element trait definitions.

Parameters
ETYPEElement type enum value (e.g., Line2, Tri3)
DIM_Spatial dimension (1, 2, or 3)
ORDER_Polynomial order of shape functions
NV_Number of vertices (corner nodes)
NN_Total number of nodes (including edge/face/internal)
NF_Number of faces
PSPACE_Parametric space type (LineSpace, TriSpace, etc.)
PSVOL_Volume of parametric space (length, area, or volume)

Definition at line 38 of file ElementTraitsBase.hpp.