BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
fn_intpoints_gauss_pyra27.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_PYRA27_HPP
13#define BELFEM_FN_INTPOINTS_GAUSS_PYRA27_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
34 inline void
36 Vector <real> & aWeights,
37 Matrix <real> & aPoints )
38 {
39 aPoints.set_size( 3, 27 );
40 aWeights.set_size( 27 );
41
42 aPoints( 0, 0 ) = -0.71805574131988903 ;
43 aPoints( 1, 0 ) = -0.71805574131988903 ;
44 aPoints( 2, 0 ) = 0.072994024073149699 ;
45 aWeights( 0 ) = 0.04849887687187858 ;
46
47 aPoints( 0, 1 ) = 0 ;
48 aPoints( 1, 1 ) = -0.71805574131988903 ;
49 aPoints( 2, 1 ) = 0.072994024073149699 ;
50 aWeights( 1 ) = 0.077598202995005638 ;
51
52 aPoints( 0, 2 ) = 0.71805574131988903 ;
53 aPoints( 1, 2 ) = -0.71805574131988903 ;
54 aPoints( 2, 2 ) = 0.072994024073149699 ;
55 aWeights( 2 ) = 0.04849887687187858 ;
56
57 aPoints( 0, 3 ) = -0.71805574131988903 ;
58 aPoints( 1, 3 ) = 0 ;
59 aPoints( 2, 3 ) = 0.072994024073149699 ;
60 aWeights( 3 ) = 0.077598202995005638 ;
61
62 aPoints( 0, 4 ) = 0 ;
63 aPoints( 1, 4 ) = 0 ;
64 aPoints( 2, 4 ) = 0.072994024073149699 ;
65 aWeights( 4 ) = 0.1241571247920089 ;
66
67 aPoints( 0, 5 ) = 0.71805574131988903 ;
68 aPoints( 1, 5 ) = 0 ;
69 aPoints( 2, 5 ) = 0.072994024073149699 ;
70 aWeights( 5 ) = 0.077598202995005638 ;
71
72 aPoints( 0, 6 ) = -0.71805574131988903 ;
73 aPoints( 1, 6 ) = 0.71805574131988903 ;
74 aPoints( 2, 6 ) = 0.072994024073149699 ;
75 aWeights( 6 ) = 0.04849887687187858 ;
76
77 aPoints( 0, 7 ) = 0 ;
78 aPoints( 1, 7 ) = 0.71805574131988903 ;
79 aPoints( 2, 7 ) = 0.072994024073149699 ;
80 aWeights( 7 ) = 0.077598202995005638 ;
81
82 aPoints( 0, 8 ) = 0.71805574131988903 ;
83 aPoints( 1, 8 ) = 0.71805574131988903 ;
84 aPoints( 2, 8 ) = 0.072994024073149699 ;
85 aWeights( 8 ) = 0.04849887687187858 ;
86
87 aPoints( 0, 9 ) = -0.50580870785392507 ;
88 aPoints( 1, 9 ) = -0.50580870785392507 ;
89 aPoints( 2, 9 ) = 0.34700376603835181 ;
90 aWeights( 9 ) = 0.045137737425884644 ;
91
92 aPoints( 0, 10 ) = 0 ;
93 aPoints( 1, 10 ) = -0.50580870785392507 ;
94 aPoints( 2, 10 ) = 0.34700376603835181 ;
95 aWeights( 10 ) = 0.072220379881415345 ;
96
97 aPoints( 0, 11 ) = 0.50580870785392507 ;
98 aPoints( 1, 11 ) = -0.50580870785392507 ;
99 aPoints( 2, 11 ) = 0.34700376603835181 ;
100 aWeights( 11 ) = 0.045137737425884644 ;
101
102 aPoints( 0, 12 ) = -0.50580870785392507 ;
103 aPoints( 1, 12 ) = 0 ;
104 aPoints( 2, 12 ) = 0.34700376603835181 ;
105 aWeights( 12 ) = 0.072220379881415345 ;
106
107 aPoints( 0, 13 ) = 0 ;
108 aPoints( 1, 13 ) = 0 ;
109 aPoints( 2, 13 ) = 0.34700376603835181 ;
110 aWeights( 13 ) = 0.11555260781026443 ;
111
112 aPoints( 0, 14 ) = 0.50580870785392507 ;
113 aPoints( 1, 14 ) = 0 ;
114 aPoints( 2, 14 ) = 0.34700376603835181 ;
115 aWeights( 14 ) = 0.072220379881415345 ;
116
117 aPoints( 0, 15 ) = -0.50580870785392507 ;
118 aPoints( 1, 15 ) = 0.50580870785392507 ;
119 aPoints( 2, 15 ) = 0.34700376603835181 ;
120 aWeights( 15 ) = 0.045137737425884644 ;
121
122 aPoints( 0, 16 ) = 0 ;
123 aPoints( 1, 16 ) = 0.50580870785392507 ;
124 aPoints( 2, 16 ) = 0.34700376603835181 ;
125 aWeights( 16 ) = 0.072220379881415345 ;
126
127 aPoints( 0, 17 ) = 0.50580870785392507 ;
128 aPoints( 1, 17 ) = 0.50580870785392507 ;
129 aPoints( 2, 17 ) = 0.34700376603835181 ;
130 aWeights( 17 ) = 0.045137737425884644 ;
131
132 aPoints( 0, 18 ) = -0.22850430565396737 ;
133 aPoints( 1, 18 ) = -0.22850430565396737 ;
134 aPoints( 2, 18 ) = 0.70500220988849838 ;
135 aWeights( 18 ) = 0.0092440441384508461 ;
136
137 aPoints( 0, 19 ) = 0 ;
138 aPoints( 1, 19 ) = -0.22850430565396737 ;
139 aPoints( 2, 19 ) = 0.70500220988849838 ;
140 aWeights( 19 ) = 0.014790470621521336 ;
141
142 aPoints( 0, 20 ) = 0.22850430565396737 ;
143 aPoints( 1, 20 ) = -0.22850430565396737 ;
144 aPoints( 2, 20 ) = 0.70500220988849838 ;
145 aWeights( 20 ) = 0.0092440441384508461 ;
146
147 aPoints( 0, 21 ) = -0.22850430565396737 ;
148 aPoints( 1, 21 ) = 0 ;
149 aPoints( 2, 21 ) = 0.70500220988849838 ;
150 aWeights( 21 ) = 0.014790470621521336 ;
151
152 aPoints( 0, 22 ) = 0 ;
153 aPoints( 1, 22 ) = 0 ;
154 aPoints( 2, 22 ) = 0.70500220988849838 ;
155 aWeights( 22 ) = 0.023664752994434112 ;
156
157 aPoints( 0, 23 ) = 0.22850430565396737 ;
158 aPoints( 1, 23 ) = 0 ;
159 aPoints( 2, 23 ) = 0.70500220988849838 ;
160 aWeights( 23 ) = 0.014790470621521336 ;
161
162 aPoints( 0, 24 ) = -0.22850430565396737 ;
163 aPoints( 1, 24 ) = 0.22850430565396737 ;
164 aPoints( 2, 24 ) = 0.70500220988849838 ;
165 aWeights( 24 ) = 0.0092440441384508461 ;
166
167 aPoints( 0, 25 ) = 0 ;
168 aPoints( 1, 25 ) = 0.22850430565396737 ;
169 aPoints( 2, 25 ) = 0.70500220988849838 ;
170 aWeights( 25 ) = 0.014790470621521336 ;
171
172 aPoints( 0, 26 ) = 0.22850430565396737 ;
173 aPoints( 1, 26 ) = 0.22850430565396737 ;
174 aPoints( 2, 26 ) = 0.70500220988849838 ;
175 aWeights( 26 ) = 0.0092440441384508461 ;
176 }
177
178// ----------------------------------------------------------------------------
179 } /* namespace integration */
180} /* namespace belfem */
181
182#endif //BELFEM_FN_INTPOINTS_GAUSS_PYRA27_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_pyra27(Vector< real > &aWeights, Matrix< real > &aPoints)
Conical-product Gauss rule on the reference pyramid ( base [-1,1]^2 at zeta = 0, apex ( 0,...
Definition fn_intpoints_gauss_pyra27.hpp:35
USER GUIDES:
Definition cl_Capacitor.cpp:16