MyIntegral Class Reference
+ Inheritance diagram for MyIntegral:

Public Member Functions

 MyIntegral (const unsigned &n_knot)
 
 MyIntegral (const MyIntegral &dummy)
 Broken copy constructor. 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...
 
 MyIntegral (const unsigned &n_knot)
 
 MyIntegral (const MyIntegral &dummy)
 Broken copy constructor. More...
 
void operator= (const MyIntegral &)
 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...
 

Private Attributes

unsigned N_knot
 Number of integration points. More...
 

Detailed Description

////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// One-dimensional integration scheme that locates integration points uniformly along boundary (if elements are equal sized, that is...)

Constructor & Destructor Documentation

◆ MyIntegral() [1/4]

MyIntegral::MyIntegral ( const unsigned n_knot)
inline

Constructor: Specify number of uniformly spaced sample points in unit interval

66 {N_knot=n_knot;}
unsigned N_knot
Number of integration points.
Definition: stefan_boltzmann.cc:94

◆ MyIntegral() [2/4]

MyIntegral::MyIntegral ( const MyIntegral dummy)
inline

Broken copy constructor.

70  {
71  BrokenCopy::broken_copy("MyIntegral");
72  }
void broken_copy(const std::string &class_name)
Issue error message and terminate execution.
Definition: oomph_utilities.cc:212

References oomph::BrokenCopy::broken_copy().

◆ MyIntegral() [3/4]

MyIntegral::MyIntegral ( const unsigned n_knot)
inline

Constructor: Specify number of uniformly spaced sample points in unit interval

124 {N_knot=n_knot;}

◆ MyIntegral() [4/4]

MyIntegral::MyIntegral ( const MyIntegral dummy)
inline

Broken copy constructor.

128  {
129  BrokenCopy::broken_copy("MyIntegral");
130  }

References oomph::BrokenCopy::broken_copy().

Member Function Documentation

◆ knot() [1/2]

double MyIntegral::knot ( const unsigned i,
const unsigned j 
) const
inlinevirtual

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

Implements oomph::Integral.

79  {
80  double dx=1.0/double(N_knot);
81  return ((0.5+double(i)))*dx;
82  }
int i
Definition: BiCGSTAB_step_by_step.cpp:9

References i.

◆ knot() [2/2]

double MyIntegral::knot ( const unsigned i,
const unsigned j 
) const
inlinevirtual

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

Implements oomph::Integral.

143  {
144  double dx=1.0/double(N_knot);
145  return ((0.5+double(i)))*dx;
146  }

References i.

◆ nweight() [1/2]

unsigned MyIntegral::nweight ( ) const
inlinevirtual

Number of integration points of the scheme.

Implements oomph::Integral.

75 {return N_knot;}

◆ nweight() [2/2]

unsigned MyIntegral::nweight ( ) const
inlinevirtual

Number of integration points of the scheme.

Implements oomph::Integral.

139 {return N_knot;}

◆ operator=()

void MyIntegral::operator= ( const MyIntegral )
inline

Broken assignment operator.

134  {
135  BrokenCopy::broken_assign("MyIntegral");
136  }
void broken_assign(const std::string &class_name)
Issue error message and terminate execution.
Definition: oomph_utilities.cc:195

References oomph::BrokenCopy::broken_assign().

◆ weight() [1/2]

double MyIntegral::weight ( const unsigned i) const
inlinevirtual

Return weight of integration point i.

Implements oomph::Integral.

86  {
87  //return 2.0/double(N_knot);
88  return 1.0/double(N_knot);
89  }

◆ weight() [2/2]

double MyIntegral::weight ( const unsigned i) const
inlinevirtual

Return weight of integration point i.

Implements oomph::Integral.

150  {
151  //return 2.0/double(N_knot);
152  return 1.0/double(N_knot);
153  }

Member Data Documentation

◆ N_knot

unsigned MyIntegral::N_knot
private

Number of integration points.


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