oomph::TGauss< 2, 2 > Class Reference

#include <integral.h>

+ Inheritance diagram for oomph::TGauss< 2, 2 >:

Public Member Functions

 TGauss ()
 Default constructor (empty) More...
 
 TGauss (const TGauss &dummy)=delete
 Broken copy constructor. More...
 
void operator= (const TGauss &)=delete
 Broken assignment operator. More...
 
unsigned nweight () const
 Number of integration points of the scheme. More...
 
double knot (const unsigned &i, const unsigned &j) const
 Return coordinate x[j] of integration point i. More...
 
double weight (const unsigned &i) const
 Return weight of integration point i. More...
 
- Public Member Functions inherited from oomph::Integral
 Integral ()
 Default constructor (empty) More...
 
 Integral (const Integral &dummy)=delete
 Broken copy constructor. More...
 
void operator= (const Integral &)=delete
 Broken assignment operator. More...
 
virtual ~Integral ()
 Virtual destructor (empty) More...
 
virtual Vector< doubleknot (const unsigned &i) const
 Return local coordinates of i-th intergration point. Broken virtual. More...
 

Static Private Attributes

static const unsigned Npts = 3
 Number of integration points in the scheme. More...
 
static const double Knot [3][2]
 Array to hold the weights and knots (defined in cc file) More...
 
static const double Weight [3]
 

Detailed Description

2D Gaussian integration class for linear triangles. Three integration points. This integration scheme can integrate up to second-order polynomials exactly and is therefore a suitable "full" integration scheme for linear (three-node) elements in which the highest-order polynomial is quadratic.

Constructor & Destructor Documentation

◆ TGauss() [1/2]

oomph::TGauss< 2, 2 >::TGauss ( )
inline

Default constructor (empty)

830 {};

◆ TGauss() [2/2]

oomph::TGauss< 2, 2 >::TGauss ( const TGauss< 2, 2 > &  dummy)
delete

Broken copy constructor.

Member Function Documentation

◆ knot()

double oomph::TGauss< 2, 2 >::knot ( const unsigned i,
const unsigned j 
) const
inlinevirtual

Return coordinate x[j] of integration point i.

Implements oomph::Integral.

846  {
847  return Knot[i][j];
848  }
int i
Definition: BiCGSTAB_step_by_step.cpp:9
static const double Knot[3][2]
Array to hold the weights and knots (defined in cc file)
Definition: integral.h:826
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2

References i, and j.

◆ nweight()

unsigned oomph::TGauss< 2, 2 >::nweight ( ) const
inlinevirtual

Number of integration points of the scheme.

Implements oomph::Integral.

840  {
841  return Npts;
842  }
static const unsigned Npts
Number of integration points in the scheme.
Definition: integral.h:823

◆ operator=()

void oomph::TGauss< 2, 2 >::operator= ( const TGauss< 2, 2 > &  )
delete

Broken assignment operator.

◆ weight()

double oomph::TGauss< 2, 2 >::weight ( const unsigned i) const
inlinevirtual

Return weight of integration point i.

Implements oomph::Integral.

852  {
853  return Weight[i];
854  }
static const double Weight[3]
Definition: integral.h:826

References i, and ProblemParameters::Weight.

Member Data Documentation

◆ Knot

const double oomph::TGauss< 2, 2 >::Knot
staticprivate
Initial value:
= {{0.1666666666667, 0.1666666666667},
{0.6666666666667, 0.1666666666667},
{0.1666666666667, 0.6666666666667}}

Array to hold the weights and knots (defined in cc file)

/ Define the positions and weights of the 2D Gauss points for triangles

◆ Npts

const unsigned oomph::TGauss< 2, 2 >::Npts = 3
staticprivate

Number of integration points in the scheme.

◆ Weight

const double oomph::TGauss< 2, 2 >::Weight
staticprivate
Initial value:
= {
0.1666666666667, 0.1666666666667, 0.1666666666667}

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