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.
List of all members
Kratos::IntegrationPoint< TDimension, TDataType, TWeightType > Class Template Reference

Short class definition. More...

#include <integration_point.h>

Inheritance diagram for Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >:
Collaboration diagram for Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >:

Public Member Functions

Life Cycle
 IntegrationPoint ()
 Default constructor. More...
 
 IntegrationPoint (TDataType const &NewX)
 1d constructor. More...
 
 IntegrationPoint (TDataType const &NewX, TDataType const &NewW)
 1d constructor. More...
 
 IntegrationPoint (TDataType const &NewX, TDataType const &NewY, TDataType const &NewW)
 2d constructor. More...
 
 IntegrationPoint (TDataType const &NewX, TDataType const &NewY, TDataType const &NewZ, TDataType const &NewW)
 3d constructor More...
 
 IntegrationPoint (IntegrationPoint const &rOtherIntegrationPoint)
 
template<std::size_t TOtherDimension>
 IntegrationPoint (IntegrationPoint< TOtherDimension, TDataType, TWeightType > const &rOtherIntegrationPoint)
 
 IntegrationPoint (PointType const &rOtherPoint)
 
 IntegrationPoint (PointType const &rOtherPoint, TWeightType NewWeight)
 
 IntegrationPoint (CoordinatesArrayType const &rOtherCoordinates)
 
 IntegrationPoint (CoordinatesArrayType const &rOtherCoordinates, TWeightType NewWeight)
 
template<class TVectorType >
 IntegrationPoint (vector_expression< TVectorType > const &rOtherCoordinates)
 
template<class TVectorType >
 IntegrationPoint (vector_expression< TVectorType > const &rOtherCoordinates, TWeightType NewWeight)
 
 IntegrationPoint (std::vector< TDataType > const &rOtherCoordinates)
 
 IntegrationPoint (std::vector< TDataType > const &rOtherCoordinates, TWeightType NewWeight)
 
 ~IntegrationPoint () override
 Destructor. More...
 
Operators
IntegrationPointoperator= (const IntegrationPoint &rOther)
 Assignment operator. More...
 
IntegrationPointoperator= (const PointType &OtherPoint)
 Point assignment operator. More...
 
bool operator== (const IntegrationPoint &rOther)
 
template<std::size_t TOtherDimension>
IntegrationPointoperator= (const IntegrationPoint< TOtherDimension > &rOther)
 Assignment operator with different dimension. More...
 
Access
TWeightType Weight () const
 
TWeightType & Weight ()
 
void SetWeight (TWeightType NewWeight)
 
Input and output
std::string Info () const override
 Turn back information as a string. More...
 
void PrintInfo (std::ostream &rOStream) const override
 Print information about this object. More...
 
void PrintData (std::ostream &rOStream) const override
 Print object's data. More...
 
- Public Member Functions inherited from Kratos::Point
 Point ()
 Default constructor. More...
 
 Point (double NewX, double NewY=0, double NewZ=0)
 3d constructor. More...
 
 Point (Point const &rOtherPoint)
 
 Point (CoordinatesArrayType const &rOtherCoordinates)
 
template<class TVectorType >
 Point (vector_expression< TVectorType > const &rOtherCoordinates)
 
 Point (std::vector< double > const &rOtherCoordinates)
 
virtual ~Point ()
 Destructor. More...
 
Pointoperator= (const Point &rOther)
 Assignment operator. More...
 
bool operator== (const Point &rOther) const
 
double SquaredDistance (const Point &rOtherPoint) const
 This method computes the distance between this point and another one (squared) More...
 
double Distance (const Point &rOtherPoint) const
 This method computes the distance between this point and another one. More...
 
 KRATOS_CLASS_POINTER_DEFINITION (Point)
 Pointer definition of Point. More...
 
double X () const
 
double Y () const
 
double Z () const
 
doubleX ()
 
doubleY ()
 
doubleZ ()
 
CoordinatesArrayType const & Coordinates () const
 
CoordinatesArrayTypeCoordinates ()
 
- Public Member Functions inherited from Kratos::array_1d< double, 3 >
BOOST_UBLAS_INLINE array_1d ()
 Default constructor. More...
 
BOOST_UBLAS_INLINE array_1d (size_type array_size)
 
BOOST_UBLAS_INLINE array_1d (size_type array_size, value_type v)
 
BOOST_UBLAS_INLINE array_1d (const std::initializer_list< value_type > &rInitList)
 
BOOST_UBLAS_INLINE array_1d (size_type array_size, const array_type &rdata)
 
BOOST_UBLAS_INLINE array_1d (const array_1d &v)
 
BOOST_UBLAS_INLINE array_1d (const boost::numeric::ublas::vector_expression< AE > &ae)
 
BOOST_UBLAS_INLINE const_reference operator() (size_type i) const
 
BOOST_UBLAS_INLINE reference operator() (size_type i)
 
BOOST_UBLAS_INLINE const_reference operator[] (size_type i) const
 
BOOST_UBLAS_INLINE reference operator[] (size_type i)
 
BOOST_UBLAS_INLINE array_1doperator= (const array_1d &v)
 
BOOST_UBLAS_INLINE array_1doperator= (const boost::numeric::ublas::vector_expression< AE > &ae)
 
BOOST_UBLAS_INLINE array_1doperator+= (const boost::numeric::ublas::vector_expression< AE > &ae)
 
BOOST_UBLAS_INLINE array_1doperator-= (const boost::numeric::ublas::vector_expression< AE > &ae)
 
BOOST_UBLAS_INLINE array_1doperator/= (const AT &at)
 
BOOST_UBLAS_INLINE bool operator== (const array_1d &v) const
 Compares whether this array_1d is equal to the given array_1d. More...
 
 KRATOS_CLASS_POINTER_DEFINITION (array_1d)
 Pointer definition of array_1d. More...
 
BOOST_UBLAS_INLINE const_iterator find (size_type i) const
 
BOOST_UBLAS_INLINE iterator find (size_type i)
 
BOOST_UBLAS_INLINE size_type size () const
 
BOOST_UBLAS_INLINE array_1dminus_assign (const boost::numeric::ublas::vector_expression< AE > &ae)
 
BOOST_UBLAS_INLINE const array_typedata () const
 
BOOST_UBLAS_INLINE array_typedata ()
 
BOOST_UBLAS_INLINE const_iterator begin () const
 
BOOST_UBLAS_INLINE iterator begin ()
 
BOOST_UBLAS_INLINE const_iterator end () const
 
BOOST_UBLAS_INLINE iterator end ()
 
BOOST_UBLAS_INLINE const_reverse_iterator rbegin () const
 
BOOST_UBLAS_INLINE reverse_iterator rbegin ()
 
BOOST_UBLAS_INLINE const_reverse_iterator rend () const
 
BOOST_UBLAS_INLINE reverse_iterator rend ()
 
BOOST_UBLAS_INLINE void resize (size_type array_size, bool preserve=true)
 
BOOST_UBLAS_INLINE array_1dassign_temporary (array_1d &v)
 
BOOST_UBLAS_INLINE array_1doperator*= (const AT &at)
 
BOOST_UBLAS_INLINE array_1dplus_assign (const boost::numeric::ublas::vector_expression< AE > &ae)
 
BOOST_UBLAS_INLINE array_1dassign (const boost::numeric::ublas::vector_expression< AE > &ae)
 
BOOST_UBLAS_INLINE void swap (array_1d &v)
 
BOOST_UBLAS_INLINE reference insert_element (size_type i, const_reference t)
 
BOOST_UBLAS_INLINE void erase_element (size_type i)
 
BOOST_UBLAS_INLINE void clear ()
 

Friends

Friends
template<std::size_t TOtherDimension, class TOtherDataType , class TOtherWeightType >
class IntegrationPoint
 
- Friends inherited from Kratos::Point
- Friends inherited from Kratos::array_1d< double, 3 >

Type Definitions

typedef Point BaseType
 
typedef Point PointType
 
typedef Point::CoordinatesArrayType CoordinatesArrayType
 
typedef Point::IndexType IndexType
 
 KRATOS_CLASS_POINTER_DEFINITION (IntegrationPoint)
 Pointer definition of IntegrationPoint. More...
 

Serialization

class Serializer
 

Additional Inherited Members

- Public Types inherited from Kratos::Point
typedef array_1d< double, mDimension > BaseType
 
typedef BaseType CoordinatesArrayType
 
typedef std::size_t SizeType
 
typedef std::size_t IndexType
 
- Public Types inherited from Kratos::array_1d< double, 3 >
typedef std::size_t size_type
 
typedef std::ptrdiff_t difference_type
 
typedef double value_type
 
typedef boost::numeric::ublas::type_traits< double >::const_reference const_reference
 
typedef double & reference
 
typedef std::array< double, N > array_type
 
typedef double * pointer
 
typedef array_1d< double, N > self_type
 
typedef const boost::numeric::ublas::vector_reference< const self_typeconst_closure_type
 
typedef boost::numeric::ublas::vector_reference< self_typeclosure_type
 
typedef self_type vector_temporary_type
 
typedef boost::numeric::ublas::dense_tag storage_category
 
typedef boost::numeric::ublas::reverse_iterator_base< const_iterator > const_reverse_iterator
 
typedef boost::numeric::ublas::reverse_iterator_base< iterator > reverse_iterator
 
- Static Public Member Functions inherited from Kratos::Point
static constexpr IndexType Dimension ()
 

Detailed Description

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
class Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >

Short class definition.

Detail class definition.

Member Typedef Documentation

◆ BaseType

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
typedef Point Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::BaseType

◆ CoordinatesArrayType

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
typedef Point::CoordinatesArrayType Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::CoordinatesArrayType

◆ IndexType

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
typedef Point::IndexType Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::IndexType

◆ PointType

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
typedef Point Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::PointType

Constructor & Destructor Documentation

◆ IntegrationPoint() [1/15]

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::IntegrationPoint ( )
inline

Default constructor.

◆ IntegrationPoint() [2/15]

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::IntegrationPoint ( TDataType const &  NewX)
inlineexplicit

1d constructor.

◆ IntegrationPoint() [3/15]

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::IntegrationPoint ( TDataType const &  NewX,
TDataType const &  NewW 
)
inline

1d constructor.

◆ IntegrationPoint() [4/15]

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::IntegrationPoint ( TDataType const &  NewX,
TDataType const &  NewY,
TDataType const &  NewW 
)
inline

2d constructor.

◆ IntegrationPoint() [5/15]

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::IntegrationPoint ( TDataType const &  NewX,
TDataType const &  NewY,
TDataType const &  NewZ,
TDataType const &  NewW 
)
inline

3d constructor

◆ IntegrationPoint() [6/15]

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::IntegrationPoint ( IntegrationPoint< TDimension, TDataType, TWeightType > const &  rOtherIntegrationPoint)
inline

Copy constructor. Initialize this integration point with the coordinates of given integration point.

◆ IntegrationPoint() [7/15]

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
template<std::size_t TOtherDimension>
Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::IntegrationPoint ( IntegrationPoint< TOtherDimension, TDataType, TWeightType > const &  rOtherIntegrationPoint)
inline

Copy constructor from other dimension integration point. Initialize this integration point with the coordinates of given integration point.

◆ IntegrationPoint() [8/15]

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::IntegrationPoint ( PointType const &  rOtherPoint)
inlineexplicit

Point constructor. Initialize this integration point with the coordinates of given point.

◆ IntegrationPoint() [9/15]

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::IntegrationPoint ( PointType const &  rOtherPoint,
TWeightType  NewWeight 
)
inline

Point constructor with weight. Initialize this integration point with the coordinates of given point and given weight

◆ IntegrationPoint() [10/15]

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::IntegrationPoint ( CoordinatesArrayType const &  rOtherCoordinates)
inlineexplicit

Constructor using coordinates stored in given array. Initialize this integration point with the coordinates in the array. Integration wieght initializes to zero.

◆ IntegrationPoint() [11/15]

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::IntegrationPoint ( CoordinatesArrayType const &  rOtherCoordinates,
TWeightType  NewWeight 
)
inline

Constructor using coordinates stored in given array. Initialize this integration point with the coordinates in the array and given wieght.

◆ IntegrationPoint() [12/15]

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
template<class TVectorType >
Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::IntegrationPoint ( vector_expression< TVectorType > const &  rOtherCoordinates)
inlineexplicit

Constructor using coordinates stored in given array. Initialize this integration point with the coordinates in the array. Integration wieght initializes to zero.

◆ IntegrationPoint() [13/15]

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
template<class TVectorType >
Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::IntegrationPoint ( vector_expression< TVectorType > const &  rOtherCoordinates,
TWeightType  NewWeight 
)
inline

Constructor using coordinates stored in given array. Initialize this integration point with the coordinates in the array and given wieght.

◆ IntegrationPoint() [14/15]

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::IntegrationPoint ( std::vector< TDataType > const &  rOtherCoordinates)
inlineexplicit

Constructor using coordinates stored in given std::vector. Initialize this integration point with the coordinates in the array. Integration wieght initializes to zero.

◆ IntegrationPoint() [15/15]

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::IntegrationPoint ( std::vector< TDataType > const &  rOtherCoordinates,
TWeightType  NewWeight 
)
inline

Constructor using coordinates stored in given std::vector. Initialize this integration point with the coordinates in the array and given wieght.

◆ ~IntegrationPoint()

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::~IntegrationPoint ( )
inlineoverride

Destructor.

Member Function Documentation

◆ Info()

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
std::string Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::Info ( ) const
inlineoverridevirtual

Turn back information as a string.

Reimplemented from Kratos::Point.

◆ KRATOS_CLASS_POINTER_DEFINITION()

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::KRATOS_CLASS_POINTER_DEFINITION ( IntegrationPoint< TDimension, TDataType, TWeightType >  )

Pointer definition of IntegrationPoint.

◆ operator=() [1/3]

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
IntegrationPoint& Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::operator= ( const IntegrationPoint< TDimension, TDataType, TWeightType > &  rOther)
inline

Assignment operator.

◆ operator=() [2/3]

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
template<std::size_t TOtherDimension>
IntegrationPoint& Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::operator= ( const IntegrationPoint< TOtherDimension > &  rOther)
inline

Assignment operator with different dimension.

◆ operator=() [3/3]

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
IntegrationPoint& Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::operator= ( const PointType OtherPoint)
inline

Point assignment operator.

◆ operator==()

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
bool Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::operator== ( const IntegrationPoint< TDimension, TDataType, TWeightType > &  rOther)
inline

◆ PrintData()

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
void Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::PrintData ( std::ostream &  rOStream) const
inlineoverridevirtual

Print object's data.

Reimplemented from Kratos::Point.

◆ PrintInfo()

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
void Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::PrintInfo ( std::ostream &  rOStream) const
inlineoverridevirtual

Print information about this object.

Reimplemented from Kratos::Point.

◆ SetWeight()

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
void Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::SetWeight ( TWeightType  NewWeight)
inline

◆ Weight() [1/2]

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
TWeightType& Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::Weight ( )
inline

◆ Weight() [2/2]

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
TWeightType Kratos::IntegrationPoint< TDimension, TDataType, TWeightType >::Weight ( ) const
inline

Friends And Related Function Documentation

◆ IntegrationPoint

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
template<std::size_t TOtherDimension, class TOtherDataType , class TOtherWeightType >
friend class IntegrationPoint
friend

◆ Serializer

template<std::size_t TDimension, class TDataType = double, class TWeightType = double>
friend class Serializer
friend

The documentation for this class was generated from the following file: