BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
fn_intpoints_gauss_quad8.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_QUAD8_HPP
13#define BELFEM_FN_INTPOINTS_GAUSS_QUAD8_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
25 // doi.org/10.1016/j.camwa.2015.03.017
26 inline void
28 Vector <real> & aWeights,
29 Matrix <real> & aPoints )
30 {
31 aPoints.set_size( 2, 8 ) ;
32 aWeights.set_size( 8 ) ;
33
34 aPoints( 0, 0 ) = 0.6831300510639732 ;
35 aPoints( 1, 0 ) = 0.0000000000000000 ;
36
37 aPoints( 0, 1 ) = -0.6831300510639732 ;
38 aPoints( 1, 1 ) = 0.0000000000000000 ;
39
40 aPoints( 0, 2 ) = 0.0000000000000000 ;
41 aPoints( 1, 2 ) = 0.6831300510639732 ;
42
43 aPoints( 0, 3 ) = 0.0000000000000000 ;
44 aPoints( 1, 3 ) = -0.6831300510639732 ;
45
46 aPoints( 0, 4 ) = 0.8819171036881969 ;
47 aPoints( 1, 4 ) = 0.8819171036881969 ;
48
49 aPoints( 0, 5 ) = 0.8819171036881969 ;
50 aPoints( 1, 5 ) = -0.8819171036881969 ;
51
52 aPoints( 0, 6 ) = -0.8819171036881969 ;
53 aPoints( 1, 6 ) = 0.8819171036881969 ;
54
55 aPoints( 0, 7 ) = -0.8819171036881969 ;
56 aPoints( 1, 7 ) = -0.8819171036881969 ;
57
58 aWeights( 0 ) = 0.8163265306122449 ;
59 aWeights( 1 ) = 0.8163265306122449 ;
60 aWeights( 2 ) = 0.8163265306122449 ;
61 aWeights( 3 ) = 0.8163265306122449 ;
62 aWeights( 4 ) = 0.1836734693877551 ;
63 aWeights( 5 ) = 0.1836734693877551 ;
64 aWeights( 6 ) = 0.1836734693877551 ;
65 aWeights( 7 ) = 0.1836734693877551 ;
66 }
67
68// ----------------------------------------------------------------------------
69 } /* namespace integration */
70} /* namespace belfem */
71
72#endif //BELFEM_FN_INTPOINTS_GAUSS_QUAD8_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_quad8(Vector< real > &aWeights, Matrix< real > &aPoints)
Definition fn_intpoints_gauss_quad8.hpp:27
USER GUIDES:
Definition cl_Capacitor.cpp:16