37 #ifndef NEKTAR_LIB_UTILITIES_BASIC_UTILS_PTSFIELD_H
38 #define NEKTAR_LIB_UTILITIES_BASIC_UTILS_PTSFIELD_H
42 #include <boost/shared_ptr.hpp>
43 #include <boost/function.hpp>
53 namespace LibUtilities
105 const vector<std::string> fieldnames,
108 m_fieldNames(fieldnames),
116 const vector<std::string> fieldnames,
121 m_fieldNames(fieldnames),
125 m_neighInds(neighInds)
131 short int coordId = -1);
136 short int coordId = -1);
166 const vector<std::string> fieldNames);
169 const std::string fieldName);
192 template<
typename FuncPo
interT,
typename ObjectPo
interT>
196 m_progressCallback = boost::bind(func, obj, _1, _2);
243 vector<PtsPoint> &neighbourPts,
244 const unsigned int numPts = 1);
Array< OneD, Array< OneD, unsigned int > > m_neighInds
Indices of the relevant neighbours for each physical point. Structure: m_neighInds[ptIdx][neighbourId...
PtsField(const int dim, const vector< std::string > fieldnames, const Array< OneD, Array< OneD, NekDouble > > &pts)
Array< OneD, Array< OneD, float > > m_weights
Interpolation weights for each neighbour. Structure: m_weights[physPtIdx][neighbourIdx].
PtsField(const int dim, const Array< OneD, Array< OneD, NekDouble > > &pts)
PtsPoint(int idx, Array< OneD, NekDouble > coords, NekDouble distSq)
vector< Array< OneD, int > > m_ptsConn
Connectivity data needed for ePtsTetBlock and ePtsTriBlock. For n Blocks with m elements each...
boost::shared_ptr< PtsField > PtsFieldSharedPtr
vector< int > m_nPtsPerEdge
Number of points per edge. Empty if the point data has no specific shape (ePtsLine) or is a block (eP...
Array< OneD, Array< OneD, NekDouble > > m_pts
Point data. For a n-dimensional field, the first n fields are the points spatial coordinates. Structure: m_pts[fieldIdx][ptIdx].
PtsType m_ptsType
Type of the PtsField.
#define LIB_UTILITIES_EXPORT
int m_dim
Dimension of the pts field.
vector< std::string > m_fieldNames
Names of the field variables.
void setProgressCallback(FuncPointerT func, ObjectPointerT obj)
Array< OneD, NekDouble > m_coords
bool operator<(const BasisKey &lhs, const BasisKey &rhs)
static PtsFieldSharedPtr NullPtsField
PtsField(const int dim, const vector< std::string > fieldnames, const Array< OneD, Array< OneD, NekDouble > > &pts, const Array< OneD, Array< OneD, float > > &weights, const Array< OneD, Array< OneD, unsigned int > > &neighInds)
boost::function< void(const int position, const int goal)> m_progressCallback