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.
quadrilateral_gauss_lobatto_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: Josep Maria Carbonell
11 //
12 //
13 
14 #if !defined(KRATOS_QUADRILATERAL_GAUSS_LOBATTO_INTEGRATION_POINTS_H_INCLUDED )
15 #define KRATOS_QUADRILATERAL_GAUSS_LOBATTO_INTEGRATION_POINTS_H_INCLUDED
16 
17 
18 // System includes
19 
20 // External includes
21 
22 // Project includes
23 #include "integration/quadrature.h"
24 
25 //TO BE COMPLETED: Only the needed ones have been implemented
26 
27 namespace Kratos
28 {
29 
31 {
32 public:
34  typedef std::size_t SizeType;
35 
36  static const unsigned int Dimension = 2;
37 
39 
40  typedef std::array<IntegrationPointType, 2> IntegrationPointsArrayType;
41 
43 
45  {
46  return 2;
47  }
48 
50  {
51  static const IntegrationPointsArrayType s_integration_points{{
52  IntegrationPointType( -1.00 , 0.00, 1.00 ),
53  IntegrationPointType( 1.00 , 0.00, 1.00 )
54  }};
55  return s_integration_points;
56  }
57 
58  std::string Info() const
59  {
60  std::stringstream buffer;
61  buffer << "Quadrilateral Gauss-Lobatto integration 1 ";
62  return buffer.str();
63  }
64 
65 
66 }; // Class QuadrilateralGaussLobattoIntegrationPoints1
67 
69 {
70 public:
72  typedef std::size_t SizeType;
73 
74  static const unsigned int Dimension = 2;
75 
77 
78  typedef std::array<IntegrationPointType, 4> IntegrationPointsArrayType;
79 
81 
83  {
84  return 4;
85  }
86 
88  {
89  static const IntegrationPointsArrayType s_integration_points{{
90  IntegrationPointType( -1.00 , -1.00, 0.50 ),
91  IntegrationPointType( 1.00 , -1.00, 0.50 ),
92  IntegrationPointType( 1.00 , 1.00, 0.50 ),
93  IntegrationPointType( -1.00 , 1.00, 0.50 )
94  }};
95  return s_integration_points;
96  }
97 
98  std::string Info() const
99  {
100  std::stringstream buffer;
101  buffer << "Quadrilateral Gauss-Lobatto integration 2 ";
102  return buffer.str();
103  }
104 
105 }; // Class QuadrilateralGaussLobattoIntegrationPoints2
106 
107 
108 
109 }
110 
111 #endif // KRATOS_QUADRILATERAL_GAUSS_LOBATTO_INTEGRATION_POINTS_H_INCLUDED defined
112 
113 
Short class definition.
Definition: integration_point.h:52
Point class.
Definition: point.h:59
Definition: quadrilateral_gauss_lobatto_integration_points.h:31
std::string Info() const
Definition: quadrilateral_gauss_lobatto_integration_points.h:58
static const unsigned int Dimension
Definition: quadrilateral_gauss_lobatto_integration_points.h:36
static SizeType IntegrationPointsNumber()
Definition: quadrilateral_gauss_lobatto_integration_points.h:44
KRATOS_CLASS_POINTER_DEFINITION(QuadrilateralGaussLobattoIntegrationPoints1)
IntegrationPoint< 2 > IntegrationPointType
Definition: quadrilateral_gauss_lobatto_integration_points.h:38
std::array< IntegrationPointType, 2 > IntegrationPointsArrayType
Definition: quadrilateral_gauss_lobatto_integration_points.h:40
std::size_t SizeType
Definition: quadrilateral_gauss_lobatto_integration_points.h:34
static const IntegrationPointsArrayType & IntegrationPoints()
Definition: quadrilateral_gauss_lobatto_integration_points.h:49
IntegrationPointType::PointType PointType
Definition: quadrilateral_gauss_lobatto_integration_points.h:42
Definition: quadrilateral_gauss_lobatto_integration_points.h:69
static SizeType IntegrationPointsNumber()
Definition: quadrilateral_gauss_lobatto_integration_points.h:82
std::size_t SizeType
Definition: quadrilateral_gauss_lobatto_integration_points.h:72
std::array< IntegrationPointType, 4 > IntegrationPointsArrayType
Definition: quadrilateral_gauss_lobatto_integration_points.h:78
static const IntegrationPointsArrayType & IntegrationPoints()
Definition: quadrilateral_gauss_lobatto_integration_points.h:87
IntegrationPoint< 2 > IntegrationPointType
Definition: quadrilateral_gauss_lobatto_integration_points.h:76
KRATOS_CLASS_POINTER_DEFINITION(QuadrilateralGaussLobattoIntegrationPoints2)
static const unsigned int Dimension
Definition: quadrilateral_gauss_lobatto_integration_points.h:74
IntegrationPointType::PointType PointType
Definition: quadrilateral_gauss_lobatto_integration_points.h:80
std::string Info() const
Definition: quadrilateral_gauss_lobatto_integration_points.h:98
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21