BEM++  2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Related Functions | List of all members
Bempp::InterpolatedFunction< ValueType > Class Template Reference

Function defined by its values at a set of interpolation points and an interpolation method. More...

#include </home/wojtek/Projects/BEM/bempp-sven/bempp/lib/assembly/interpolated_function.hpp>

Inheritance diagram for Bempp::InterpolatedFunction< ValueType >:
Fiber::Function< ValueType >

Public Types

enum  InterpolationMethod { LINEAR }
 
typedef Fiber::ScalarTraits
< ValueType >::RealType 
CoordinateType
 
- Public Types inherited from Fiber::Function< ValueType >
typedef ScalarTraits
< ValueType >::RealType 
CoordinateType
 

Public Member Functions

 InterpolatedFunction (const Grid &grid, const arma::Mat< ValueType > &vertexValues, InterpolationMethod method=LINEAR)
 Construct function given its values at vertices of a grid.
 
const Gridgrid () const
 Interpolation grid.
 
virtual int worldDimension () const
 
virtual int codomainDimension () const
 
virtual void addGeometricalDependencies (size_t &geomDeps) const
 
virtual void evaluate (const Fiber::GeometricalData< CoordinateType > &geomData, arma::Mat< ValueType > &result) const
 
void exportToVtk (const char *dataLabel, const char *fileNamesBase, const char *filesPath=0, VtkWriter::OutputType type=VtkWriter::ASCII) const
 
InterpolatedFunction< ValueType > & operator+= (const InterpolatedFunction< ValueType > &rhs)
 Copy vertex values from a function defined on a subset of the surface of the interpolation grid. More...
 
InterpolatedFunction< ValueType > & operator-= (const InterpolatedFunction< ValueType > &rhs)
 
InterpolatedFunction< ValueType > & operator*= (ValueType rhs)
 
InterpolatedFunction< ValueType > & operator/= (ValueType rhs)
 
const InterpolatedFunction
< ValueType > 
operator+ (const InterpolatedFunction< ValueType > &other) const
 
const InterpolatedFunction
< ValueType > 
operator- (const InterpolatedFunction< ValueType > &other) const
 
const InterpolatedFunction
< ValueType > 
operator/ (ValueType other) const
 
- Public Member Functions inherited from Fiber::Function< ValueType >
virtual void evaluate (const GeometricalData< CoordinateType > &geomData, arma::Mat< ValueType > &result) const =0
 

Private Member Functions

void checkCompatibility (const InterpolatedFunction< ValueType > &other) const
 

Private Attributes

const Gridm_grid
 
arma::Mat< ValueType > m_vertexValues
 
InterpolationMethod m_method
 

Related Functions

(Note that these are not member functions.)

template<typename ValueType >
const InterpolatedFunction
< ValueType > 
operator* (ValueType lhs, const InterpolatedFunction< ValueType > &rhs)
 Return an InterpolatedFunction representing the function rhs multiplied by the scalar lhs.
 
template<typename ValueType >
const InterpolatedFunction
< ValueType > 
operator* (const InterpolatedFunction< ValueType > &lhs, ValueType rhs)
 Return an InterpolatedFunction representing the function lhs multiplied by the scalar rhs.
 

Detailed Description

template<typename ValueType>
class Bempp::InterpolatedFunction< ValueType >

Function defined by its values at a set of interpolation points and an interpolation method.

Currently the evaluate() method is not implemented. However, VTK-file export (exportToVtk()) works.

Member Function Documentation

template<typename ValueType >
void Bempp::InterpolatedFunction< ValueType >::exportToVtk ( const char *  dataLabel,
const char *  fileNamesBase,
const char *  filesPath = 0,
VtkWriter::OutputType  type = VtkWriter::ASCII 
) const

Export the function to a VTK file.

Parameters
[in]dataLabelLabel used to identify the function in the VTK file.
[in]fileNamesBaseBase name of the output files. It should not contain any directory part or filename extensions.
[in]filesPathOutput directory. Can be set to NULL, in which case the files are output in the current directory.
[in]typeOutput type (default: ASCII). See Dune reference manual for more details.
template<typename ValueType >
InterpolatedFunction< ValueType > & Bempp::InterpolatedFunction< ValueType >::operator+= ( const InterpolatedFunction< ValueType > &  rhs)

Copy vertex values from a function defined on a subset of the surface of the interpolation grid.

Copy vertex values from a function interpolated on a surface grid.


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