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

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

#include <PhiPhiDownBBLinearStretched.hpp>

Inheritance diagram for sgpp::pde::PhiPhiDownBBLinearStretched:
sgpp::pde::PhiPhiDownBBLinearStretchedBoundary

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 down in the direction of dimension dim on a grid with Dirichlet 0 boundary conditions. More...
 
 PhiPhiDownBBLinearStretched (sgpp::base::GridStorage *storage)
 Constructor. More...
 
virtual ~PhiPhiDownBBLinearStretched ()
 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 Down with sgpp::base::Stretching More...
 

Protected Attributes

sgpp::base::GridStoragestorage
 Pointer to the sgpp::base::GridStorage Object. More...
 
sgpp::base::Stretchingstretching
 Pointer to the bounding box Obejct. More...
 

Detailed Description

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

Member Typedef Documentation

◆ grid_iterator

Constructor & Destructor Documentation

◆ PhiPhiDownBBLinearStretched()

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

Constructor.

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

◆ ~PhiPhiDownBBLinearStretched()

sgpp::pde::PhiPhiDownBBLinearStretched::~PhiPhiDownBBLinearStretched ( )
virtual

Destructor.

Member Function Documentation

◆ operator()()

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

This operations performs the calculation of down in the direction of dimension dim on a grid with 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 down operation
indexa iterator object of the grid
dimcurrent fixed dimension of the 'execution direction'

Reimplemented in sgpp::pde::PhiPhiDownBBLinearStretchedBoundary.

References rec().

◆ rec()

void sgpp::pde::PhiPhiDownBBLinearStretched::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 Down with sgpp::base::Stretching

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
frfunction value on the right boundary

References sgpp::base::HashGridIterator::get(), sgpp::base::Stretching::getAdjacentPositions(), sgpp::base::HashGridIterator::hint(), sgpp::base::HashGridStorage::isInvalidSequenceNumber(), sgpp::base::HashGridIterator::leftChild(), sgpp::base::HashGridIterator::seq(), sgpp::base::HashGridIterator::stepRight(), storage, stretching, and sgpp::base::HashGridIterator::up().

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

Member Data Documentation

◆ storage

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

◆ stretching

sgpp::base::Stretching* sgpp::pde::PhiPhiDownBBLinearStretched::stretching
protected

Pointer to the bounding box Obejct.

Referenced by sgpp::pde::PhiPhiDownBBLinearStretchedBoundary::operator()(), and rec().


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