36 #ifndef NEKTAR_MESHUTILS_SURFACEMESHING_CURVEMESH_H
37 #define NEKTAR_MESHUTILS_SURFACEMESHING_CURVEMESH_H
39 #include <boost/shared_ptr.hpp>
54 namespace NekMeshUtils
158 std::vector<std::vector<NekDouble> >
m_dst;
160 std::vector<std::vector<NekDouble> >
m_ps;
void GetSampleFunction()
get node spacing sampling function
NekDouble GetLength()
get the length of the curve
LibUtilities::AnalyticExpressionEvaluator m_bl
Array< OneD, NekDouble > m_bounds
coords of the ends of the parametric curve
int m_numSamplePoints
number of sampling points used in algorithm
std::vector< std::vector< NekDouble > > m_ps
array of function ps evaluations
CurveMesh(int id, MeshSharedPtr m, std::string expr="0.0")
default constructor
General purpose memory allocation routines with the ability to allocate from thread specific memory p...
NekDouble Ae
spacing function evaluation
void Mesh()
execute meshing
std::vector< EdgeSharedPtr > m_meshedges
list of mesh edges in the curvemesh
std::vector< EdgeSharedPtr > GetMeshEdges()
int m_id
id of the curvemesh
std::vector< NodeSharedPtr > GetMeshPoints()
get list of mesh nodes
int Ne
number of edges to be made in the curve as defined by the spacing funtion
boost::shared_ptr< CurveMesh > CurveMeshSharedPtr
std::vector< NodeSharedPtr > m_meshpoints
ids of the mesh nodes
boost::shared_ptr< Node > NodeSharedPtr
int GetNumPoints()
get the number of points in the curve
CADCurveSharedPtr m_cadcurve
CAD curve.
This class defines evaluator of analytic (symbolic) mathematical expressions. Expressions are allowed...
NodeSharedPtr GetLastPoint()
get id of last node
NodeSharedPtr GetFirstPoint()
get id of first node
int DefineFunction(const std::string &vlist, const std::string &function)
This function allows one to define a function to evaluate. The first argument (vlist) is a list of va...
boost::shared_ptr< Mesh > MeshSharedPtr
Shared pointer to a mesh.
void GetPhiFunction()
get node spacing phi function
CurveMesh(int id, MeshSharedPtr m, std::vector< NodeSharedPtr > ns)
NekDouble m_curvelength
length of the curve in real space
NekDouble EvaluateDS(NekDouble s)
evaluate paramter ds at curve location s
NekDouble EvaluatePS(NekDouble s)
evaluate paramter ps at curve location s
std::vector< std::vector< NekDouble > > m_dst
array of function ds evaluations
std::vector< NekDouble > meshsvalue
paramteric coordiates of the mesh nodes
boost::shared_ptr< CADCurve > CADCurveSharedPtr