OGS
ShapeTri3.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5#include <array>
6
8
9namespace NumLib
10{
25{
26public:
33 template <class T_X, class T_N>
34 static void computeShapeFunction(const T_X& r, T_N& N);
35
43 template <class T_X, class T_N>
44 static void computeGradShapeFunction(const T_X& r, T_N& dN);
45
46 static constexpr std::array reference_element_centre = {1. / 3., 1. / 3.};
47
49 static const unsigned DIM = MeshElement::dimension;
50 static const unsigned NPOINTS = MeshElement::n_all_nodes;
51 static constexpr int ORDER = 1;
52};
53
54} // namespace NumLib
55
56#include "ShapeTri3-impl.h"
static void computeShapeFunction(const T_X &r, T_N &N)
static void computeGradShapeFunction(const T_X &r, T_N &dN)
static const unsigned NPOINTS
Definition ShapeTri3.h:50
static const unsigned DIM
Definition ShapeTri3.h:49
static constexpr int ORDER
Definition ShapeTri3.h:51
static constexpr std::array reference_element_centre
Definition ShapeTri3.h:46
MeshLib::Tri MeshElement
Definition ShapeTri3.h:48
TemplateElement< MeshLib::TriRule3 > Tri
Definition Tri.h:15