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>
51 namespace LibUtilities
81 const std::vector<std::string> fieldnames,
83 std::map<PtsInfo, int> ptsInfo = NullPtsInfoMap)
89 const std::vector<std::string> fieldnames,
113 const std::vector<std::string> fieldNames);
116 const std::string fieldName);
123 const int ptInd)
const;
133 const int fieldInd)
const;
142 const std::vector<int> nPtsPerEdge);
static std::map< PtsInfo, int > NullPtsInfoMap
std::vector< NekDouble > m_boxSize
vector of box size xmin,xmax,ymin,ymax,zmin,zmax
void SetPointsPerEdge(const std::vector< int > nPtsPerEdge)
Set the number of points per edge.
NekDouble GetPointVal(const int fieldInd, const int ptInd) const
std::vector< Array< OneD, int > > m_ptsConn
Connectivity data needed for ePtsTetBlock and ePtsTriBlock. For n Blocks with m elements each...
void SetDim(const int ptsDim)
PtsField(const int dim, const Array< OneD, Array< OneD, NekDouble > > &pts)
std::vector< int > m_nPtsPerEdge
Number of points per edge. Empty if the point data has no specific shape (ePtsLine) or is a block (eP...
void AddField(const Array< OneD, NekDouble > &pts, const std::string fieldName)
void SetPointVal(const int fieldInd, const int ptInd, const NekDouble val)
std::vector< std::string > GetFieldNames() const
std::string GetFieldName(const int i) const
boost::shared_ptr< PtsField > PtsFieldSharedPtr
void SetConnectivity(const std::vector< Array< OneD, int > > &conn)
Get the connectivity data for ePtsTetBlock and ePtsTriBlock.
Array< OneD, Array< OneD, NekDouble > > m_pts
Point data. For a n-dimensional field, the first m_dim fields are the points spatial coordinates...
void GetPts(Array< OneD, Array< OneD, NekDouble > > &pts) const
PtsType m_ptsType
Type of the PtsField.
PtsField(const int dim, const std::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)
PtsType GetPtsType() const
#define LIB_UTILITIES_EXPORT
int m_dim
Dimension of the pts field.
void GetConnectivity(std::vector< Array< OneD, int > > &conn) const
Set the connectivity data for ePtsTetBlock and ePtsTriBlock.
void AddPoints(const Array< OneD, const Array< OneD, NekDouble > > &pts)
PtsField(const int dim, const std::vector< std::string > fieldnames, const Array< OneD, Array< OneD, NekDouble > > &pts, std::map< PtsInfo, int > ptsInfo=NullPtsInfoMap)
std::vector< NekDouble > GetBoxSize() const
std::vector< std::string > m_fieldNames
Names of the field variables.
std::map< PtsInfo, int > m_ptsInfo
map for information about points that can be added through PtsInfo enum
void SetPtsType(const PtsType type)
static PtsFieldSharedPtr NullPtsField
std::vector< int > GetPointsPerEdge() const
void SetBoxSize(const std::vector< NekDouble > boxsize)
void SetFieldNames(const std::vector< std::string > fieldNames)
void SetPts(Array< OneD, Array< OneD, NekDouble > > &pts)