BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
fn_intpoints_gauss_hex6.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_INITPOINTS_GAUSS_HEX6_HPP
13#define BELFEM_FN_INITPOINTS_GAUSS_HEX6_HPP
14#include "typedefs.hpp"
15#include "cl_Vector.hpp"
16#include "cl_Matrix.hpp"
17
18namespace belfem
19{
20 namespace integration
21 {
22// ----------------------------------------------------------------------------
23
24 // source 10.1090/S0025-5718-1958-0102176-6
25 inline void
27 Vector <real> & aWeights,
28 Matrix <real> & aPoints )
29 {
30 aWeights.set_size( 6 );
31 aPoints.set_size( 3, 6 ) ;
32
33 aPoints( 0, 0 ) = 1.0000000000000000 ;
34 aPoints( 1, 0 ) = 0.0000000000000000 ;
35 aPoints( 2, 0 ) = 0.0000000000000000 ;
36
37 aPoints( 0, 1 ) = -1.0000000000000000 ;
38 aPoints( 1, 1 ) = 0.0000000000000000 ;
39 aPoints( 2, 1 ) = 0.0000000000000000 ;
40
41 aPoints( 0, 2 ) = 0.0000000000000000 ;
42 aPoints( 1, 2 ) = 1.0000000000000000 ;
43 aPoints( 2, 2 ) = 0.0000000000000000 ;
44
45 aPoints( 0, 3 ) = 0.0000000000000000 ;
46 aPoints( 1, 3 ) = -1.0000000000000000 ;
47 aPoints( 2, 3 ) = 0.0000000000000000 ;
48
49 aPoints( 0, 4 ) = 0.0000000000000000 ;
50 aPoints( 1, 4 ) = 0.0000000000000000 ;
51 aPoints( 2, 4 ) = 1.0000000000000000 ;
52
53 aPoints( 0, 5 ) = 0.0000000000000000 ;
54 aPoints( 1, 5 ) = 0.0000000000000000 ;
55 aPoints( 2, 5 ) = -1.0000000000000000 ;
56
57 aWeights( 0 ) = 1.3333333333333333 ;
58 aWeights( 1 ) = 1.3333333333333333 ;
59 aWeights( 2 ) = 1.3333333333333333 ;
60 aWeights( 3 ) = 1.3333333333333333 ;
61 aWeights( 4 ) = 1.3333333333333333 ;
62 aWeights( 5 ) = 1.3333333333333333 ;
63 }
64
65// ----------------------------------------------------------------------------
66 } /* namespace integration */
67} /* namespace belfem */
68#endif //BELFEM_FN_INITPOINTS_GAUSS_HEX6_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_hex6(Vector< real > &aWeights, Matrix< real > &aPoints)
Definition fn_intpoints_gauss_hex6.hpp:26
USER GUIDES:
Definition cl_Capacitor.cpp:16