KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
line_collocation_integration_points.h
Go to the documentation of this file.
1 // | / |
2 // ' / __| _` | __| _ \ __|
3 // . \ | ( | | ( |\__ `
4 // _|\_\_| \__,_|\__|\___/ ____/
5 // Multi-Physics
6 //
7 // License: BSD License
8 // Kratos default license: kratos/license.txt
9 //
10 // Main authors: Vicente Mataix Ferrandiz
11 //
12 //
13 
14 
15 #if !defined(KRATOS_LINE_COLLOCATION_INTEGRATION_POINTS_H_INCLUDED )
16 #define KRATOS_LINE_COLLOCATION_INTEGRATION_POINTS_H_INCLUDED
17 
18 // System includes
19 
20 // External includes
21 
22 // Project includes
23 #include "integration/quadrature.h"
24 
25 namespace Kratos
26 {
28 {
29 public:
31  typedef std::size_t SizeType;
32 
33  static const unsigned int Dimension = 1;
34 
36 
37  typedef std::array<IntegrationPointType, 3> IntegrationPointsArrayType;
38 
40 
42  {
43  return 3;
44  }
45 
47  {
48  static const IntegrationPointsArrayType s_integration_points{{
49  IntegrationPointType(-0.666666666667,0.666666666667),
50  IntegrationPointType(0,0.666666666667),
51  IntegrationPointType(0.666666666667,0.666666666667)
52  }};
53  return s_integration_points;
54  }
55 
56  std::string Info() const
57  {
58  std::stringstream buffer;
59  buffer << "Line Collocation quadrature 1 ";
60  return buffer.str();
61  }
62 
63 
64 }; // Class LineCollocationIntegrationPoints1
65 
66 
68 {
69 public:
71  typedef std::size_t SizeType;
72 
73  static const unsigned int Dimension = 1;
74 
76 
77  typedef std::array<IntegrationPointType, 5> IntegrationPointsArrayType;
78 
80 
82  {
83  return 5;
84  }
85 
87  {
88  static const IntegrationPointsArrayType s_integration_points{{
89  IntegrationPointType(-0.800000000000,0.400000000000),
90  IntegrationPointType(-0.400000000000,0.400000000000),
91  IntegrationPointType(0.000000000000,0.400000000000),
92  IntegrationPointType(0.400000000000,0.400000000000),
93  IntegrationPointType(0.800000000000,0.400000000000)
94  }};
95  return s_integration_points;
96  }
97 
98  std::string Info() const
99  {
100  std::stringstream buffer;
101  buffer << "Line Collocation quadrature 2 ";
102  return buffer.str();
103  }
104 
105 
106 }; // Class LineCollocationIntegrationPoints2
107 
108 
110 {
111 public:
113  typedef std::size_t SizeType;
114 
115  static const unsigned int Dimension = 1;
116 
118 
119  typedef std::array<IntegrationPointType, 7> IntegrationPointsArrayType;
120 
122 
124  {
125  return 7;
126  }
127 
129  {
130  static const IntegrationPointsArrayType s_integration_points{{
131  IntegrationPointType(-0.857142857143,0.285714285714),
132  IntegrationPointType(-0.571428571429,0.285714285714),
133  IntegrationPointType(-0.285714285714,0.285714285714),
134  IntegrationPointType(0,0.285714285714),
135  IntegrationPointType(0.285714285714,0.285714285714),
136  IntegrationPointType(0.571428571429,0.285714285714),
137  IntegrationPointType(0.857142857143,0.285714285714)
138  }};
139  return s_integration_points;
140  }
141 
142  std::string Info() const
143  {
144  std::stringstream buffer;
145  buffer << "Line Collocation quadrature 3 ";
146  return buffer.str();
147  }
148 
149 
150 }; // Class LineCollocationIntegrationPoints3
151 
152 
153 
155 {
156 public:
158  typedef std::size_t SizeType;
159 
160  static const unsigned int Dimension = 1;
161 
163 
164  typedef std::array<IntegrationPointType, 9> IntegrationPointsArrayType;
165 
167 
169  {
170  return 9;
171  }
172 
174  {
175  static const IntegrationPointsArrayType s_integration_points{{
176  IntegrationPointType(-0.888888888889,0.222222222222),
177  IntegrationPointType(-0.666666666667,0.222222222222),
178  IntegrationPointType(-0.444444444444,0.222222222222),
179  IntegrationPointType(-0.222222222222,0.222222222222),
180  IntegrationPointType(0,0.222222222222),
181  IntegrationPointType(0.222222222222,0.222222222222),
182  IntegrationPointType(0.444444444444,0.222222222222),
183  IntegrationPointType(0.666666666667,0.222222222222),
184  IntegrationPointType(0.888888888889,0.222222222222)
185  }};
186  return s_integration_points;
187  }
188 
189  std::string Info() const
190  {
191  std::stringstream buffer;
192  buffer << "Line Collocation quadrature 4 ";
193  return buffer.str();
194  }
195 
196 
197 }; // Class LineCollocationIntegrationPoints4
198 
199 
200 
202 {
203 public:
205  typedef std::size_t SizeType;
206 
207  static const unsigned int Dimension = 1;
208 
210 
211  typedef std::array<IntegrationPointType, 11> IntegrationPointsArrayType;
212 
214 
216  {
217  return 11;
218  }
219 
221  {
222  static const IntegrationPointsArrayType s_integration_points{{
223  IntegrationPointType(-0.909090909091,0.181818181818),
224  IntegrationPointType(-0.727272727273,0.181818181818),
225  IntegrationPointType(-0.545454545455,0.181818181818),
226  IntegrationPointType(-0.363636363636,0.181818181818),
227  IntegrationPointType(-0.181818181818,0.181818181818),
228  IntegrationPointType(0,0.181818181818),
229  IntegrationPointType(0.181818181818,0.181818181818),
230  IntegrationPointType(0.363636363636,0.181818181818),
231  IntegrationPointType(0.545454545455,0.181818181818),
232  IntegrationPointType(0.727272727273,0.181818181818),
233  IntegrationPointType(0.909090909091,0.181818181818)
234  }};
235  return s_integration_points;
236  }
237 
238  std::string Info() const
239  {
240  std::stringstream buffer;
241  buffer << "Line Collocation quadrature 5 ";
242  return buffer.str();
243  }
244 
245 
246 }; // Class LineCollocationIntegrationPoints5
247 
248 
251 
255 
259 
263 
267 
271 
272 
276 
277 
279 
280 
281 } // namespace Kratos.
282 
283 #endif // KRATOS_LINE_COLLOCATION_INTEGRATION_POINTS_H_INCLUDED defined
284 
285 
Short class definition.
Definition: integration_point.h:52
Definition: line_collocation_integration_points.h:28
std::array< IntegrationPointType, 3 > IntegrationPointsArrayType
Definition: line_collocation_integration_points.h:37
KRATOS_CLASS_POINTER_DEFINITION(LineCollocationIntegrationPoints1)
static const IntegrationPointsArrayType & IntegrationPoints()
Definition: line_collocation_integration_points.h:46
IntegrationPoint< 1 > IntegrationPointType
Definition: line_collocation_integration_points.h:35
static const unsigned int Dimension
Definition: line_collocation_integration_points.h:33
std::string Info() const
Definition: line_collocation_integration_points.h:56
std::size_t SizeType
Definition: line_collocation_integration_points.h:31
static SizeType IntegrationPointsNumber()
Definition: line_collocation_integration_points.h:41
IntegrationPointType::PointType PointType
Definition: line_collocation_integration_points.h:39
Definition: line_collocation_integration_points.h:68
KRATOS_CLASS_POINTER_DEFINITION(LineCollocationIntegrationPoints2)
static const IntegrationPointsArrayType & IntegrationPoints()
Definition: line_collocation_integration_points.h:86
static SizeType IntegrationPointsNumber()
Definition: line_collocation_integration_points.h:81
IntegrationPoint< 1 > IntegrationPointType
Definition: line_collocation_integration_points.h:75
std::size_t SizeType
Definition: line_collocation_integration_points.h:71
static const unsigned int Dimension
Definition: line_collocation_integration_points.h:73
std::array< IntegrationPointType, 5 > IntegrationPointsArrayType
Definition: line_collocation_integration_points.h:77
IntegrationPointType::PointType PointType
Definition: line_collocation_integration_points.h:79
std::string Info() const
Definition: line_collocation_integration_points.h:98
Definition: line_collocation_integration_points.h:110
std::array< IntegrationPointType, 7 > IntegrationPointsArrayType
Definition: line_collocation_integration_points.h:119
IntegrationPointType::PointType PointType
Definition: line_collocation_integration_points.h:121
KRATOS_CLASS_POINTER_DEFINITION(LineCollocationIntegrationPoints3)
static SizeType IntegrationPointsNumber()
Definition: line_collocation_integration_points.h:123
static const IntegrationPointsArrayType & IntegrationPoints()
Definition: line_collocation_integration_points.h:128
static const unsigned int Dimension
Definition: line_collocation_integration_points.h:115
IntegrationPoint< 1 > IntegrationPointType
Definition: line_collocation_integration_points.h:117
std::size_t SizeType
Definition: line_collocation_integration_points.h:113
std::string Info() const
Definition: line_collocation_integration_points.h:142
Definition: line_collocation_integration_points.h:155
std::array< IntegrationPointType, 9 > IntegrationPointsArrayType
Definition: line_collocation_integration_points.h:164
IntegrationPoint< 1 > IntegrationPointType
Definition: line_collocation_integration_points.h:162
IntegrationPointType::PointType PointType
Definition: line_collocation_integration_points.h:166
std::string Info() const
Definition: line_collocation_integration_points.h:189
std::size_t SizeType
Definition: line_collocation_integration_points.h:158
KRATOS_CLASS_POINTER_DEFINITION(LineCollocationIntegrationPoints4)
static const IntegrationPointsArrayType & IntegrationPoints()
Definition: line_collocation_integration_points.h:173
static const unsigned int Dimension
Definition: line_collocation_integration_points.h:160
static SizeType IntegrationPointsNumber()
Definition: line_collocation_integration_points.h:168
Definition: line_collocation_integration_points.h:202
static SizeType IntegrationPointsNumber()
Definition: line_collocation_integration_points.h:215
static const IntegrationPointsArrayType & IntegrationPoints()
Definition: line_collocation_integration_points.h:220
std::size_t SizeType
Definition: line_collocation_integration_points.h:205
static const unsigned int Dimension
Definition: line_collocation_integration_points.h:207
IntegrationPoint< 1 > IntegrationPointType
Definition: line_collocation_integration_points.h:209
IntegrationPointType::PointType PointType
Definition: line_collocation_integration_points.h:213
std::array< IntegrationPointType, 11 > IntegrationPointsArrayType
Definition: line_collocation_integration_points.h:211
std::string Info() const
Definition: line_collocation_integration_points.h:238
KRATOS_CLASS_POINTER_DEFINITION(LineCollocationIntegrationPoints5)
Point class.
Definition: point.h:59
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21