oomph::Gauss< 1, 3 > Class Reference

#include <integral.h>

+ Inheritance diagram for oomph::Gauss< 1, 3 >:

Public Member Functions

 Gauss ()
 Default constructor (empty) More...
 
 Gauss (const Gauss &dummy)=delete
 Broken copy constructor. More...
 
void operator= (const Gauss &)=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 s[j] (j=0) 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][1]
 Array to hold weights and knot points (defined in cc file) More...
 
static const double Weight [3] = {(5.0 / 9.0), (8.0 / 9.0), (5.0 / 9.0)}
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Gauss() [1/2]

oomph::Gauss< 1, 3 >::Gauss ( )
inline

Default constructor (empty)

214 {};

◆ Gauss() [2/2]

oomph::Gauss< 1, 3 >::Gauss ( const Gauss< 1, 3 > &  dummy)
delete

Broken copy constructor.

Member Function Documentation

◆ knot()

double oomph::Gauss< 1, 3 >::knot ( const unsigned i,
const unsigned j 
) const
inlinevirtual

Return coordinate s[j] (j=0) of integration point i.

Implements oomph::Integral.

230  {
231  return Knot[i][j];
232  }
int i
Definition: BiCGSTAB_step_by_step.cpp:9
static const double Knot[3][1]
Array to hold weights and knot points (defined in cc file)
Definition: integral.h:210
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2

References i, and j.

◆ nweight()

unsigned oomph::Gauss< 1, 3 >::nweight ( ) const
inlinevirtual

Number of integration points of the scheme.

Implements oomph::Integral.

224  {
225  return Npts;
226  }
static const unsigned Npts
Number of integration points in the scheme.
Definition: integral.h:208

◆ operator=()

void oomph::Gauss< 1, 3 >::operator= ( const Gauss< 1, 3 > &  )
delete

Broken assignment operator.

◆ weight()

double oomph::Gauss< 1, 3 >::weight ( const unsigned i) const
inlinevirtual

Return weight of integration point i.

Implements oomph::Integral.

236  {
237  return Weight[i];
238  }
static const double Weight[3]
Definition: integral.h:210

References i, and ProblemParameters::Weight.

Member Data Documentation

◆ Knot

const double oomph::Gauss< 1, 3 >::Knot
staticprivate
Initial value:
= {
{-0.774596669241483}, {0.0}, {0.774596669241483}}

Array to hold weights and knot points (defined in cc file)

◆ Npts

const unsigned oomph::Gauss< 1, 3 >::Npts = 3
staticprivate

Number of integration points in the scheme.

◆ Weight

const double oomph::Gauss< 1, 3 >::Weight = {(5.0 / 9.0), (8.0 / 9.0), (5.0 / 9.0)}
staticprivate

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