Cabana 0.8.0-dev
 
Loading...
Searching...
No Matches
Cabana::Grid::ScalarValueP2G< ViewType > Struct Template Reference

Point-to-grid scalar value functor. More...

#include <Cabana_Grid_Interpolation.hpp>

Public Types

using value_type = typename ViewType::value_type
 Scalar value type.
 

Public Member Functions

 ScalarValueP2G (const ViewType &x, const value_type multiplier)
 Constructor.
 
template<class SplineDataType, class GridViewType>
KOKKOS_INLINE_FUNCTION void operator() (const SplineDataType &sd, const int p, const GridViewType &view) const
 Apply spline interplation.
 

Public Attributes

ViewType _x
 Spline evaluation locations.
 
value_type _multiplier
 Scalar multiplier.
 

Detailed Description

template<class ViewType>
struct Cabana::Grid::ScalarValueP2G< ViewType >

Point-to-grid scalar value functor.

Interpolates a scalar function from points to entities with a given multiplier such that:

f_ijk = multiplier * \sum_p weight_{pijk} * f_p


The documentation for this struct was generated from the following file: