OGS
GaussLegendreTri.cpp
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#include "GaussLegendreTri.h"
5
6namespace MathLib
7{
8template <>
9const std::array<std::array<double, 2>, GaussLegendreTri<1>::NPoints>
10 GaussLegendreTri<1>::X = {{{{1. / 3., 1. / 3.}}}};
11template <>
12double const GaussLegendreTri<1>::W[1] = {1.0};
13
14const std::array<std::array<double, 2>, GaussLegendreTri<2>::NPoints>
16 {{{1. / 6., 1. / 6.}}, {{2. / 3., 1. / 6.}}, {{1. / 6., 2. / 3.}}}};
17double const GaussLegendreTri<2>::W[3] = {1. / 3., 1. / 3., 1. / 3.};
18
19const std::array<std::array<double, 2>, GaussLegendreTri<3>::NPoints>
20 GaussLegendreTri<3>::X = {{{{1. / 3., 1. / 3.}},
21 {{1. / 5., 3. / 5.}},
22 {{1. / 5., 1. / 5.}},
23 {{3. / 5., 1. / 5.}}}};
24double const GaussLegendreTri<3>::W[4] = {-27. / 48., 25. / 48., 25. / 48.,
25 25. / 48.};
26
27const std::array<std::array<double, 2>, GaussLegendreTri<4>::NPoints>
28 GaussLegendreTri<4>::X = {{{{1. / 3., 1. / 3.}},
29 {{0.059715871789770, 0.470142064105115}},
30 {{0.470142064105115, 0.059715871789770}},
31 {{0.470142064105115, 0.470142064105115}},
32 {{0.797426985353087, 0.101286507323456}},
33 {{0.101286507323456, 0.797426985353087}},
34 {{0.101286507323456, 0.101286507323456}}}};
35double const GaussLegendreTri<4>::W[7] = {0.225,
36 0.132394152788506,
37 0.132394152788506,
38 0.132394152788506,
39 0.125939180544827,
40 0.125939180544827,
41 0.125939180544827};
42
43} // namespace MathLib
static MATHLIB_EXPORT const unsigned NPoints
static MATHLIB_EXPORT const unsigned NPoints
static MATHLIB_EXPORT const unsigned NPoints
static MATHLIB_EXPORT const double W[NPoints]
static MATHLIB_EXPORT const std::array< std::array< double, 2 >, NPoints > X
static MATHLIB_EXPORT const unsigned NPoints