BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
fn_intpoints_gauss_tri15.hpp
Go to the documentation of this file.
1/*
2 * BELFEM -- The Berkeley Lab Finite Element Framework
3 * Copyright (c) 2026, The Regents of the University of California,
4 * through Lawrence Berkeley National Laboratory (subject to receipt of any required
5 * approvals from the U.S. Dept. of Energy). All rights reserved.
6 *
7 * Developers: Christian Messe, Gregory Giard
8 *
9 * See the top-level LICENSE file for the complete license and disclaimer.
10 */
11
12#ifndef BELFEM_FN_INTPOINTS_GAUSS_TRI15_HPP
13#define BELFEM_FN_INTPOINTS_GAUSS_TRI15_HPP
14
15#include "typedefs.hpp"
16#include "cl_Vector.hpp"
17#include "cl_Matrix.hpp"
18
19namespace belfem
20{
21 namespace integration
22 {
23// ----------------------------------------------------------------------------
24
33 inline void
35 Vector< real > & aWeights,
36 Matrix< real > & aPoints )
37 {
38 aPoints.set_size( 3, 15 );
39
40 aPoints( 0, 0 ) = 0.06493051315916486;
41 aPoints( 1, 0 ) = 0.06493051315916486;
42
43 aPoints( 0, 1 ) = 0.06493051315916486;
44 aPoints( 1, 1 ) = 0.8701389736816703;
45
46 aPoints( 0, 2 ) = 0.8701389736816703;
47 aPoints( 1, 2 ) = 0.06493051315916486;
48
49 aPoints( 0, 3 ) = 0.2845755842491703;
50 aPoints( 1, 3 ) = 0.517039939069323;
51
52 aPoints( 0, 4 ) = 0.3135591843849315;
53 aPoints( 1, 4 ) = 0.04386347179237249;
54
55 aPoints( 0, 5 ) = 0.19838447668150672;
56 aPoints( 1, 5 ) = 0.2845755842491703;
57
58 aPoints( 0, 6 ) = 0.642577343822696;
59 aPoints( 1, 6 ) = 0.3135591843849315;
60
61 aPoints( 0, 7 ) = 0.517039939069323;
62 aPoints( 1, 7 ) = 0.19838447668150672;
63
64 aPoints( 0, 8 ) = 0.04386347179237249;
65 aPoints( 1, 8 ) = 0.642577343822696;
66
67 aPoints( 0, 9 ) = 0.517039939069323;
68 aPoints( 1, 9 ) = 0.2845755842491703;
69
70 aPoints( 0, 10 ) = 0.04386347179237249;
71 aPoints( 1, 10 ) = 0.3135591843849315;
72
73 aPoints( 0, 11 ) = 0.19838447668150672;
74 aPoints( 1, 11 ) = 0.517039939069323;
75
76 aPoints( 0, 12 ) = 0.642577343822696;
77 aPoints( 1, 12 ) = 0.04386347179237249;
78
79 aPoints( 0, 13 ) = 0.2845755842491703;
80 aPoints( 1, 13 ) = 0.19838447668150672;
81
82 aPoints( 0, 14 ) = 0.3135591843849315;
83 aPoints( 1, 14 ) = 0.642577343822696;
84
85 for( uint k=0; k<15; ++k )
86 {
87 aPoints( 2, k ) = 1.0
88 - aPoints( 0, k )
89 - aPoints( 1, k );
90 }
91
92 aWeights.set_size( 15 );
93
94 aWeights( 0 ) = 0.026538900895116242;
95 aWeights( 1 ) = 0.026538900895116242;
96 aWeights( 2 ) = 0.026538900895116242;
97 aWeights( 3 ) = 0.03542654184606683;
98 aWeights( 4 ) = 0.0346373410397085;
99 aWeights( 5 ) = 0.03542654184606683;
100 aWeights( 6 ) = 0.0346373410397085;
101 aWeights( 7 ) = 0.03542654184606683;
102 aWeights( 8 ) = 0.0346373410397085;
103 aWeights( 9 ) = 0.03542654184606683;
104 aWeights( 10 ) = 0.0346373410397085;
105 aWeights( 11 ) = 0.03542654184606683;
106 aWeights( 12 ) = 0.0346373410397085;
107 aWeights( 13 ) = 0.03542654184606683;
108 aWeights( 14 ) = 0.0346373410397085;
109 }
110
111// ----------------------------------------------------------------------------
112 } /* namespace integration */
113} /* end namespace belfem */
114
115#endif // BELFEM_FN_INTPOINTS_GAUSS_TRI15_HPP
void set_size(const size_t aNumRows, const size_t aNumCols)
Definition cl_AR_Matrix.hpp:186
void set_size(const size_t aNumRows)
change the size of the vector
Definition cl_AR_Vector.hpp:237
Definition fn_intpoints.cpp:576
void gauss_tri15(Vector< real > &aWeights, Matrix< real > &aPoints)
7th order interpolation
Definition fn_intpoints_gauss_tri15.hpp:34
USER GUIDES:
Definition cl_Capacitor.cpp:16
unsigned int uint
Definition typedefs.hpp:30