BEM++
2.0
|
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>
Public Types | |
enum | InterpolationMethod { LINEAR } |
typedef Fiber::ScalarTraits < ValueType >::RealType | CoordinateType |
![]() | |
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 Grid & | grid () 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 |
![]() | |
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 Grid & | m_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 . | |
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.
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.
[in] | dataLabel | Label used to identify the function in the VTK file. |
[in] | fileNamesBase | Base name of the output files. It should not contain any directory part or filename extensions. |
[in] | filesPath | Output directory. Can be set to NULL, in which case the files are output in the current directory. |
[in] | type | Output type (default: ASCII). See Dune reference manual for more details. |
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.