oomph::Gauss_Rescaled< DIM, NPTS_1D > Class Template Reference

#include <integral.h>

+ Inheritance diagram for oomph::Gauss_Rescaled< DIM, NPTS_1D >:

Public Member Functions

 Gauss_Rescaled ()
 Default constructor (empty) More...
 
 Gauss_Rescaled (const Gauss_Rescaled &dummy)=delete
 Broken copy constructor. More...
 
void operator= (const Gauss_Rescaled &)=delete
 Broken assignment operator. More...
 
 Gauss_Rescaled (double lower, double upper)
 The constructor in this case takes the lower and upper arguments. More...
 
double knot (const unsigned &i, const unsigned &j) const
 Return the rescaled knot values s[j] at integration point i. More...
 
double weight (const unsigned &i) const
 Return the rescaled weight at integration point i. More...
 

Private Attributes

double Lower
 Store for the lower and upper limits of integration and the range. More...
 
double Upper
 
double Range
 

Detailed Description

template<unsigned DIM, unsigned NPTS_1D>
class oomph::Gauss_Rescaled< DIM, NPTS_1D >

Class for multidimensional Gaussian integration rules, over intervals other than -1 to 1, all intervals are rescaled in this case

Constructor & Destructor Documentation

◆ Gauss_Rescaled() [1/3]

template<unsigned DIM, unsigned NPTS_1D>
oomph::Gauss_Rescaled< DIM, NPTS_1D >::Gauss_Rescaled ( )
inline

Default constructor (empty)

578 {};

◆ Gauss_Rescaled() [2/3]

template<unsigned DIM, unsigned NPTS_1D>
oomph::Gauss_Rescaled< DIM, NPTS_1D >::Gauss_Rescaled ( const Gauss_Rescaled< DIM, NPTS_1D > &  dummy)
delete

Broken copy constructor.

◆ Gauss_Rescaled() [3/3]

template<unsigned DIM, unsigned NPTS_1D>
oomph::Gauss_Rescaled< DIM, NPTS_1D >::Gauss_Rescaled ( double  lower,
double  upper 
)
inline

The constructor in this case takes the lower and upper arguments.

587  : Lower(lower), Upper(upper)
588  {
589  // Set the range of integration
590  Range = upper - lower;
591  }
double Lower
Store for the lower and upper limits of integration and the range.
Definition: integral.h:574
double Range
Definition: integral.h:574
double Upper
Definition: integral.h:574
std::string lower(std::string s)
returns the input string after converting upper-case characters to lower case
Definition: StringHelpers.cc:11

References helpers::lower(), and oomph::Gauss_Rescaled< DIM, NPTS_1D >::Range.

Member Function Documentation

◆ knot()

template<unsigned DIM, unsigned NPTS_1D>
double oomph::Gauss_Rescaled< DIM, NPTS_1D >::knot ( const unsigned i,
const unsigned j 
) const
inline

Return the rescaled knot values s[j] at integration point i.

595  {
596  return (0.5 * (Gauss<DIM, NPTS_1D>::knot(i, j) * Range + Lower + Upper));
597  }
int i
Definition: BiCGSTAB_step_by_step.cpp:9
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2

References i, j, oomph::Gauss_Rescaled< DIM, NPTS_1D >::Lower, oomph::Gauss_Rescaled< DIM, NPTS_1D >::Range, and oomph::Gauss_Rescaled< DIM, NPTS_1D >::Upper.

◆ operator=()

template<unsigned DIM, unsigned NPTS_1D>
void oomph::Gauss_Rescaled< DIM, NPTS_1D >::operator= ( const Gauss_Rescaled< DIM, NPTS_1D > &  )
delete

Broken assignment operator.

◆ weight()

template<unsigned DIM, unsigned NPTS_1D>
double oomph::Gauss_Rescaled< DIM, NPTS_1D >::weight ( const unsigned i) const
inline

Return the rescaled weight at integration point i.

601  {
602  return Gauss<DIM, NPTS_1D>::weight(i) *
603  pow(0.5 * Range, static_cast<int>(DIM));
604  }
#define DIM
Definition: linearised_navier_stokes_elements.h:44
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 pow(const bfloat16 &a, const bfloat16 &b)
Definition: BFloat16.h:625

References DIM, i, Eigen::bfloat16_impl::pow(), and oomph::Gauss_Rescaled< DIM, NPTS_1D >::Range.

Member Data Documentation

◆ Lower

template<unsigned DIM, unsigned NPTS_1D>
double oomph::Gauss_Rescaled< DIM, NPTS_1D >::Lower
private

Store for the lower and upper limits of integration and the range.

Referenced by oomph::Gauss_Rescaled< DIM, NPTS_1D >::knot().

◆ Range

◆ Upper

template<unsigned DIM, unsigned NPTS_1D>
double oomph::Gauss_Rescaled< DIM, NPTS_1D >::Upper
private

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