oomph::Gauss< 1, 4 > Class Reference

#include <integral.h>

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

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 x[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 = 4
 Number of integration points in the scheme. More...
 
static const double Knot [4][1]
 Array to hold weight and knot points (defined in cc file) More...
 
static const double Weight [4]
 

Detailed Description

1D Gaussian integration class Four integration points. This integration scheme can integrate up to seventh-order polynomials exactly and is therefore a suitable "full" integration scheme for cubic (four-node) elements in which the highest-order polynomial is sixth order.

Constructor & Destructor Documentation

◆ Gauss() [1/2]

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

Default constructor (empty)

260 {};

◆ Gauss() [2/2]

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

Broken copy constructor.

Member Function Documentation

◆ knot()

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

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

Implements oomph::Integral.

276  {
277  return Knot[i][j];
278  }
int i
Definition: BiCGSTAB_step_by_step.cpp:9
static const double Knot[4][1]
Array to hold weight and knot points (defined in cc file)
Definition: integral.h:256
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2

References i, and j.

◆ nweight()

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

Number of integration points of the scheme.

Implements oomph::Integral.

270  {
271  return Npts;
272  }
static const unsigned Npts
Number of integration points in the scheme.
Definition: integral.h:254

◆ operator=()

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

Broken assignment operator.

◆ weight()

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

Return weight of integration point i.

Implements oomph::Integral.

282  {
283  return Weight[i];
284  }
static const double Weight[4]
Definition: integral.h:256

References i, and ProblemParameters::Weight.

Member Data Documentation

◆ Knot

const double oomph::Gauss< 1, 4 >::Knot
staticprivate
Initial value:
= {{-0.861136311594053},
{-0.339981043584856},
{0.339981043584856},
{0.861136311594053}}

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

◆ Npts

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

Number of integration points in the scheme.

◆ Weight

const double oomph::Gauss< 1, 4 >::Weight
staticprivate
Initial value:
= {
0.347854845137448, 0.652145154862546, 0.652145154862546, 0.347854845137448}

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