14 #if !defined(KRATOS_QUADRATURE_H_INCLUDED )
15 #define KRATOS_QUADRATURE_H_INCLUDED
27 template<std::
size_t TOrder>
30 static inline std::size_t
Value(std::size_t X)
39 static inline std::size_t
Value(std::size_t X)
67 template<
class TQuadraturePo
intsType, std::
size_t TDimension = TQuadraturePo
intsType::Dimension,
class TIntegrationPo
intType = IntegrationPo
int<TDimension> >
122 return msIntegrationPointsVector;
132 template<
class TIntegrationPo
intsArrayType>
139 const auto integration_points = TQuadraturePointsType::IntegrationPoints();
140 for(
SizeType i = 0 ;
i < TQuadraturePointsType::IntegrationPointsNumber() ;
i++)
144 temp[TDimension -1] = integration_points[
i].X();
145 temp.Weight() *= integration_points[
i].Weight();
146 Result.push_back(
temp);
153 const auto integration_points = TQuadraturePointsType::IntegrationPoints();
154 for(
SizeType i = 0 ;
i < TQuadraturePointsType::IntegrationPointsNumber() ;
i++)
156 Result.push_back(integration_points[
i]);
175 virtual std::string
Info()
const
177 std::stringstream buffer;
193 for(
i = 0 ;
i < msIntegrationPointsVector.size() - 1 ;
i++)
194 rOStream << msIntegrationPointsVector[
i] <<
" , " << std::endl;
195 rOStream << msIntegrationPointsVector[
i];
203 template<
class TOtherQuadraturePo
intsType, std::
size_t TOtherDimension,
class TOtherIntegrationPo
intType>
friend class Quadrature;
289 template<
class TQuadraturePo
intsType, std::
size_t TDimension,
class TIntegrationPo
intType>
306 template<
class TQuadraturePo
intsType, std::
size_t TDimension,
class TIntegrationPo
intType>
311 template<
class TQuadraturePo
intsType, std::
size_t TDimension,
class TIntegrationPo
intType>
316 rOStream << std::endl;
Point class.
Definition: point.h:59
Short class definition.
Definition: quadrature.h:69
Quadrature & operator=(Quadrature const &rOther)
Assignment operator.
Definition: quadrature.h:108
std::size_t IndexType
Definition: quadrature.h:87
static const IntegrationPointsArrayType & IntegrationPoints()
Definition: quadrature.h:120
static SizeType IntegrationPointsNumber()
Definition: quadrature.h:115
TQuadraturePointsType::IntegrationPointsArrayType InitialIntegrationPointsArrayType
Definition: quadrature.h:81
virtual ~Quadrature()
Destructor.
Definition: quadrature.h:100
static void IntegrationPoints(TIntegrationPointsArrayType &Result, Quadrature< TQuadraturePointsType, TDimension, TIntegrationPointType > const &Dummy)
Definition: quadrature.h:133
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: quadrature.h:184
KRATOS_CLASS_POINTER_DEFINITION(Quadrature)
Pointer definition of Quadrature.
Quadrature(Quadrature const &rOther)
Copy constructor.
Definition: quadrature.h:97
static const IntegrationPointsArrayType GenerateIntegrationPoints()
Definition: quadrature.h:125
std::vector< IntegrationPointType > IntegrationPointsArrayType
Definition: quadrature.h:79
virtual std::string Info() const
Turn back information as a string.
Definition: quadrature.h:175
std::size_t SizeType
Definition: quadrature.h:85
TIntegrationPointType IntegrationPointType
Definition: quadrature.h:77
static void IntegrationPoints(IntegrationPointsArrayType &Result, Quadrature< TQuadraturePointsType, TQuadraturePointsType::Dimension, TIntegrationPointType > const &Dummy)
Definition: quadrature.h:150
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: quadrature.h:190
IntegrationPointType::PointType PointType
Definition: quadrature.h:83
Quadrature()
Default constructor.
Definition: quadrature.h:94
typename GeometryType::IntegrationPointsArrayType IntegrationPointsArrayType
Definition: add_geometries_to_python.cpp:61
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
int j
Definition: quadrature.py:648
float temp
Definition: rotating_cone.py:85
integer i
Definition: TensorModule.f:17
static std::size_t Value(std::size_t X)
Definition: quadrature.h:39
Definition: quadrature.h:29
static std::size_t Value(std::size_t X)
Definition: quadrature.h:30