OGS
ShapeLine2.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{
20{
21public:
28 template <class T_X, class T_N>
29 static void computeShapeFunction(const T_X& r, T_N& N);
30
37 template <class T_X, class T_N>
38 static void computeGradShapeFunction(const T_X& r, T_N& dN);
39
40 static constexpr std::array reference_element_centre = {0.0};
41
43 static const unsigned DIM = MeshElement::dimension;
44 static const unsigned NPOINTS = MeshElement::n_all_nodes;
45 static constexpr int ORDER = 1;
46};
47
48} // namespace NumLib
49
50#include "ShapeLine2-impl.h"
MeshLib::Line MeshElement
Definition ShapeLine2.h:42
static const unsigned NPOINTS
Definition ShapeLine2.h:44
static const unsigned DIM
Definition ShapeLine2.h:43
static constexpr std::array reference_element_centre
Definition ShapeLine2.h:40
static void computeShapeFunction(const T_X &r, T_N &N)
static void computeGradShapeFunction(const T_X &r, T_N &dN)
static constexpr int ORDER
Definition ShapeLine2.h:45
TemplateElement< MeshLib::LineRule2 > Line
Definition Line.h:14