Public Member Functions | |
| CToAInterpolator (const AToCPointLocator &locator, const Expr &field) | |
| void | interpolate (const Teuchos::Array< double > &positions, Teuchos::Array< double > &results) const |
| void | interpolate (const std::vector< double > &positions, std::vector< double > &results) const |
| void | updateField (const Expr &field) |
Private Attributes | |
| int | dim_ |
| int | nFacets_ |
| int | rangeDim_ |
| RCP< Array< double > > | elemToVecValuesMap_ |
| AToCPointLocator | locator_ |
CToAInterpolator interpolates a discrete function at particle positions
Note: not tested in parallel.
Definition at line 62 of file SundanceCToAInterpolator.hpp.
| CToAInterpolator::CToAInterpolator | ( | const AToCPointLocator & | locator, |
| const Expr & | field | ||
| ) |
Definition at line 66 of file SundanceCToAInterpolator.cpp.
References updateField().
| void CToAInterpolator::interpolate | ( | const Teuchos::Array< double > & | positions, |
| Teuchos::Array< double > & | results | ||
| ) | const |
Definition at line 126 of file SundanceCToAInterpolator.cpp.
References dim_, Sundance::AToCPointLocator::findEnclosingCell(), Sundance::AToCPointLocator::guessCell(), locator_, nFacets_, particleInterpolationTimer(), and rangeDim_.
Referenced by interpolate().
| void Sundance::CToAInterpolator::interpolate | ( | const std::vector< double > & | positions, |
| std::vector< double > & | results | ||
| ) | const [inline] |
Definition at line 76 of file SundanceCToAInterpolator.hpp.
References interpolate().
| void CToAInterpolator::updateField | ( | const Expr & | field | ) |
Definition at line 77 of file SundanceCToAInterpolator.cpp.
References dim_, Sundance::DiscreteFunction::discFunc(), elemToVecValuesMap_, Sundance::DiscreteFunction::getVector(), locator_, Sundance::DiscreteFunction::map(), Sundance::AToCPointLocator::mesh(), nFacets_, Sundance::Mesh::numCells(), Sundance::Set< Key, Compare >::put(), rangeDim_, and Sundance::Expr::size().
Referenced by CToAInterpolator().
int Sundance::CToAInterpolator::dim_ [private] |
Definition at line 92 of file SundanceCToAInterpolator.hpp.
Referenced by interpolate(), and updateField().
RCP<Array<double> > Sundance::CToAInterpolator::elemToVecValuesMap_ [private] |
Definition at line 95 of file SundanceCToAInterpolator.hpp.
Referenced by updateField().
Definition at line 96 of file SundanceCToAInterpolator.hpp.
Referenced by interpolate(), and updateField().
int Sundance::CToAInterpolator::nFacets_ [private] |
Definition at line 93 of file SundanceCToAInterpolator.hpp.
Referenced by interpolate(), and updateField().
int Sundance::CToAInterpolator::rangeDim_ [private] |
Definition at line 94 of file SundanceCToAInterpolator.hpp.
Referenced by interpolate(), and updateField().