SG++-Doxygen-Documentation
sgpp::pde::PhiPhiUpBBLinear Class Reference

Implementation of sweep operator (): 1D Up for Bilinearform \(\int_{x} \phi(x) \phi(x) dx\). More...

#include <PhiPhiUpBBLinear.hpp>

Inheritance diagram for sgpp::pde::PhiPhiUpBBLinear:
sgpp::pde::PhiPhiUpBBLinearBoundary

Public Member Functions

virtual void operator() (sgpp::base::DataVector &source, sgpp::base::DataVector &result, grid_iterator &index, size_t dim)
 This operations performs the calculation of up in the direction of dimension dim on a grid with fix Dirichlet 0 boundary conditions. More...
 
 PhiPhiUpBBLinear (sgpp::base::GridStorage *storage)
 Constructor. More...
 
virtual ~PhiPhiUpBBLinear ()
 Destructor. More...
 

Protected Types

typedef sgpp::base::GridStorage::grid_iterator grid_iterator
 

Protected Member Functions

void rec (sgpp::base::DataVector &source, sgpp::base::DataVector &result, grid_iterator &index, size_t dim, double &fl, double &fr)
 recursive function for the calculation of Up without bounding Box support More...
 
void recBB (sgpp::base::DataVector &source, sgpp::base::DataVector &result, grid_iterator &index, size_t dim, double &fl, double &fr, double q, double t)
 recursive function for the calculation of Up with Bounding Box Support More...
 

Protected Attributes

sgpp::base::BoundingBoxboundingBox
 Pointer to the bounding box Obejct. More...
 
sgpp::base::GridStoragestorage
 Pointer to sgpp::base::GridStorage object. More...
 

Detailed Description

Implementation of sweep operator (): 1D Up for Bilinearform \(\int_{x} \phi(x) \phi(x) dx\).

Member Typedef Documentation

◆ grid_iterator

Constructor & Destructor Documentation

◆ PhiPhiUpBBLinear()

sgpp::pde::PhiPhiUpBBLinear::PhiPhiUpBBLinear ( sgpp::base::GridStorage storage)
explicit

Constructor.

Parameters
storagethe grid's sgpp::base::GridStorage object

◆ ~PhiPhiUpBBLinear()

sgpp::pde::PhiPhiUpBBLinear::~PhiPhiUpBBLinear ( )
virtual

Destructor.

Member Function Documentation

◆ operator()()

void sgpp::pde::PhiPhiUpBBLinear::operator() ( sgpp::base::DataVector source,
sgpp::base::DataVector result,
grid_iterator index,
size_t  dim 
)
virtual

This operations performs the calculation of up in the direction of dimension dim on a grid with fix Dirichlet 0 boundary conditions.

Parameters
sourcesgpp::base::DataVector that contains the gridpoint's coefficients (values from the vector of the laplace operation)
resultsgpp::base::DataVector that contains the result of the up operation
indexa iterator object of the grid
dimcurrent fixed dimension of the 'execution direction'

Reimplemented in sgpp::pde::PhiPhiUpBBLinearBoundary.

References boundingBox, sgpp::base::BoundingBox::getIntervalOffset(), sgpp::base::BoundingBox::getIntervalWidth(), rec(), and recBB().

◆ rec()

void sgpp::pde::PhiPhiUpBBLinear::rec ( sgpp::base::DataVector source,
sgpp::base::DataVector result,
grid_iterator index,
size_t  dim,
double &  fl,
double &  fr 
)
protected

recursive function for the calculation of Up without bounding Box support

Parameters
sourcesgpp::base::DataVector that contains the coefficients of the ansatzfunction
resultsgpp::base::DataVector in which the result of the operation is stored
indexreference to a griditerator object that is used navigate through the grid
dimthe dimension in which the operation is executed
flfunction value on the left boundary, reference parameter
frfunction value on the right boundary, reference parameter

References sgpp::base::HashGridIterator::get(), sgpp::base::HashGridIterator::hint(), sgpp::base::HashGridStorage::isInvalidSequenceNumber(), sgpp::base::HashGridIterator::leftChild(), sgpp::base::HashGridIterator::seq(), sgpp::base::HashGridIterator::stepRight(), storage, analyse_erg::tmp, and sgpp::base::HashGridIterator::up().

Referenced by sgpp::pde::PhiPhiUpBBLinearBoundary::operator()(), and operator()().

◆ recBB()

void sgpp::pde::PhiPhiUpBBLinear::recBB ( sgpp::base::DataVector source,
sgpp::base::DataVector result,
grid_iterator index,
size_t  dim,
double &  fl,
double &  fr,
double  q,
double  t 
)
protected

recursive function for the calculation of Up with Bounding Box Support

Parameters
sourcesgpp::base::DataVector that contains the coefficients of the ansatzfunction
resultsgpp::base::DataVector in which the result of the operation is stored
indexreference to a griditerator object that is used navigate through the grid
dimthe dimension in which the operation is executed
flfunction value on the left boundary, reference parameter
frfunction value on the right boundary, reference parameter
qinterval width in the current dimension dim
tinterval offset in current dimension dim

References sgpp::base::HashGridIterator::get(), sgpp::base::HashGridIterator::hint(), sgpp::base::HashGridStorage::isInvalidSequenceNumber(), sgpp::base::HashGridIterator::leftChild(), sgpp::base::HashGridIterator::seq(), sgpp::base::HashGridIterator::stepRight(), storage, analyse_erg::tmp, and sgpp::base::HashGridIterator::up().

Referenced by sgpp::pde::PhiPhiUpBBLinearBoundary::operator()(), and operator()().

Member Data Documentation

◆ boundingBox

sgpp::base::BoundingBox* sgpp::pde::PhiPhiUpBBLinear::boundingBox
protected

Pointer to the bounding box Obejct.

Referenced by sgpp::pde::PhiPhiUpBBLinearBoundary::operator()(), and operator()().

◆ storage

sgpp::base::GridStorage* sgpp::pde::PhiPhiUpBBLinear::storage
protected

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