oomph::OneDimensionalModalDShape Class Reference

#include <shape.h>

+ Inheritance diagram for oomph::OneDimensionalModalDShape:

Public Member Functions

 OneDimensionalModalDShape (const unsigned p_order, const double &s)
 
- Public Member Functions inherited from oomph::Shape
 Shape (const unsigned &N)
 Constructor for a single-index set of shape functions. More...
 
 Shape (const unsigned &N, const unsigned &M)
 Constructor for a two-index set of shape functions. More...
 
 Shape (const Shape &shape)=delete
 Broken copy constructor. More...
 
 Shape ()
 
void operator= (const Shape &shape)
 
void operator= (Shape *const &shape_pt)
 
 ~Shape ()
 Destructor, clear up the memory allocated by the object. More...
 
void resize (const unsigned &N, const unsigned &M=1)
 Change the size of the storage. More...
 
doubleoperator[] (const unsigned &i)
 Overload the bracket operator to provide access to values. More...
 
const doubleoperator[] (const unsigned &i) const
 Overload the bracket operator (const version) More...
 
doubleoperator() (const unsigned &i)
 Overload the round bracket operator to provide access to values. More...
 
const doubleoperator() (const unsigned &i) const
 Overload the round bracket operator (const version) More...
 
doubleoperator() (const unsigned &i, const unsigned &j)
 Overload the round bracket operator, allowing for two indices. More...
 
const doubleoperator() (const unsigned &i, const unsigned &j) const
 
unsigned nindex1 () const
 Return the range of index 1 of the shape function object. More...
 
unsigned nindex2 () const
 Return the range of index 2 of the shape function object. More...
 

Additional Inherited Members

- Protected Member Functions inherited from oomph::Shape
void range_check (const unsigned &i, const unsigned &j) const
 Private function that checks whether the index is in range. More...
 
- Protected Attributes inherited from oomph::Shape
doublePsi
 
doubleAllocated_storage
 
unsigned Index1
 Size of the first index of the shape function. More...
 
unsigned Index2
 Size of the second index of the shape function. More...
 

Constructor & Destructor Documentation

◆ OneDimensionalModalDShape()

oomph::OneDimensionalModalDShape::OneDimensionalModalDShape ( const unsigned  p_order,
const double s 
)
inline
1371  : Shape(p_order)
1372  {
1373  // Populate the shape functions
1374  (*this)[0] = -0.5;
1375  (*this)[1] = 0.5;
1376  for (unsigned i = 2; i < p_order; i++)
1377  {
1378  (*this)[i] = (0.5 * (1.0 - s)) * (0.5 * (1.0 + s)) *
1379  Orthpoly::dlegendre(i - 2, s) -
1380  0.5 * s * Orthpoly::legendre(i - 2, s);
1381  }
1382  }
int i
Definition: BiCGSTAB_step_by_step.cpp:9
Shape()
Definition: shape.h:137
RealScalar s
Definition: level1_cplx_impl.h:130
double dlegendre(const unsigned &p, const double &x)
Definition: orthpoly.h:121
double legendre(const unsigned &p, const double &x)
Definition: orthpoly.h:57

References oomph::Orthpoly::dlegendre(), i, oomph::Orthpoly::legendre(), and s.


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