Public Member Functions | Private Attributes | List of all members
oomph::RuntimeCalculatedGaussLegendre Class Reference

#include <integral.h>

+ Inheritance diagram for oomph::RuntimeCalculatedGaussLegendre:

Public Member Functions

 RuntimeCalculatedGaussLegendre (const unsigned &npts)
 Deafault constructor. Calculates and stores GL nodes. 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] 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)
 Broken copy constructor. More...
 
void operator= (const Integral &)
 Broken assignment operator. More...
 
virtual ~Integral ()
 Virtual destructor (empty) More...
 
virtual Vector< double > knot (const unsigned &i) const
 Return local coordinates of i-th intergration point. More...
 

Private Attributes

unsigned long int Npts
 Number of integration points in scheme. More...
 
Vector< double > Knot
 Array to hold weights. More...
 
Vector< double > Weight
 Array to hold position of knot points in local coordinates. More...
 

Detailed Description

Gauss Legendre integration class where the knots and weights are calculated at runtime rather than at compile time like the templated version of the class. This class should only be used if it is not possible to use the templated version

Definition at line 1833 of file integral.h.

Constructor & Destructor Documentation

◆ RuntimeCalculatedGaussLegendre()

oomph::RuntimeCalculatedGaussLegendre::RuntimeCalculatedGaussLegendre ( const unsigned &  npts)
inline

Deafault constructor. Calculates and stores GL nodes.

Definition at line 1839 of file integral.h.

References oomph::Orthpoly::gl_nodes().

Member Function Documentation

◆ knot()

double oomph::RuntimeCalculatedGaussLegendre::knot ( const unsigned &  i,
const unsigned &  j 
) const
inlinevirtual

Return coordinate s[j] of integration point i.

Implements oomph::Integral.

Definition at line 1852 of file integral.h.

References i.

◆ nweight()

unsigned oomph::RuntimeCalculatedGaussLegendre::nweight ( ) const
inlinevirtual

Number of integration points of the scheme.

Implements oomph::Integral.

Definition at line 1849 of file integral.h.

◆ weight()

double oomph::RuntimeCalculatedGaussLegendre::weight ( const unsigned &  i) const
inlinevirtual

Return weight of integration point i.

Implements oomph::Integral.

Definition at line 1855 of file integral.h.

References i.

Member Data Documentation

◆ Knot

Vector<double> oomph::RuntimeCalculatedGaussLegendre::Knot
private

Array to hold weights.

Definition at line 1863 of file integral.h.

◆ Npts

unsigned long int oomph::RuntimeCalculatedGaussLegendre::Npts
private

Number of integration points in scheme.

Definition at line 1860 of file integral.h.

◆ Weight

Vector<double> oomph::RuntimeCalculatedGaussLegendre::Weight
private

Array to hold position of knot points in local coordinates.

Definition at line 1866 of file integral.h.


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