Nektar++
|
class for meshing individual curves (1d meshing) More...
#include <CurveMesh.h>
Public Member Functions | |
CurveMesh (int id, MeshSharedPtr m, std::string expr="0.0") | |
default constructor More... | |
CurveMesh (int id, MeshSharedPtr m, std::vector< NodeSharedPtr > ns) | |
void | Mesh (bool forceThree=false) |
execute meshing More... | |
void | ReMesh () |
Delete old mesh and mesh with forceThree on. More... | |
NodeSharedPtr | GetFirstPoint () |
get id of first node More... | |
NodeSharedPtr | GetLastPoint () |
get id of last node More... | |
std::vector< NodeSharedPtr > | GetMeshPoints () |
get list of mesh nodes More... | |
std::vector< EdgeSharedPtr > | GetMeshEdges () |
int | GetNumPoints () |
get the number of points in the curve More... | |
NekDouble | GetLength () |
get the length of the curve More... | |
void | PeriodicOverwrite (CurveMeshSharedPtr from) |
int | GetId () |
void | SetOffset (unsigned i, NekDouble offset) |
Private Member Functions | |
void | GetSampleFunction () |
get node spacing sampling function More... | |
void | GetPhiFunction () |
get node spacing phi function More... | |
NekDouble | EvaluateDS (NekDouble s) |
evaluate paramter ds at curve location s More... | |
NekDouble | EvaluatePS (NekDouble s) |
evaluate paramter ps at curve location s More... | |
Private Attributes | |
CADCurveSharedPtr | m_cadcurve |
CAD curve. More... | |
NekDouble | m_curvelength |
length of the curve in real space More... | |
int | m_numSamplePoints |
number of sampling points used in algorithm More... | |
Array< OneD, NekDouble > | m_bounds |
coords of the ends of the parametric curve More... | |
std::vector< std::vector< NekDouble > > | m_dst |
array of function ds evaluations More... | |
std::vector< std::vector< NekDouble > > | m_ps |
array of function ps evaluations More... | |
NekDouble | Ae |
spacing function evaluation More... | |
NekDouble | ds |
ds More... | |
int | Ne |
number of edges to be made in the curve as defined by the spacing funtion More... | |
std::vector< NekDouble > | meshsvalue |
paramteric coordiates of the mesh nodes More... | |
std::vector< EdgeSharedPtr > | m_meshedges |
list of mesh edges in the curvemesh More... | |
int | m_id |
id of the curvemesh More... | |
MeshSharedPtr | m_mesh |
std::vector< NodeSharedPtr > | m_meshpoints |
ids of the mesh nodes More... | |
LibUtilities::Interpreter | m_bl |
int | m_blID |
std::map< unsigned, NekDouble > | m_endoffset |
offset of second point at each end More... | |
Friends | |
class | MemoryManager< CurveMesh > |
class for meshing individual curves (1d meshing)
Definition at line 57 of file CurveMesh.h.
|
inline |
default constructor
Definition at line 65 of file CurveMesh.h.
References Nektar::LibUtilities::Interpreter::DefineFunction(), m_bl, m_blID, m_cadcurve, m_id, and m_mesh.
|
inline |
Definition at line 72 of file CurveMesh.h.
References m_cadcurve, m_id, m_mesh, Mesh(), and ReMesh().
evaluate paramter ds at curve location s
Definition at line 267 of file CurveMesh.cpp.
References ASSERTL0, and ASSERTL1.
Referenced by SetOffset().
evaluate paramter ps at curve location s
Definition at line 306 of file CurveMesh.cpp.
References ASSERTL0, and ASSERTL1.
Referenced by SetOffset().
|
inline |
get id of first node
Definition at line 91 of file CurveMesh.h.
References m_meshpoints.
|
inline |
|
inline |
get id of last node
Definition at line 99 of file CurveMesh.h.
References m_meshpoints.
|
inline |
get the length of the curve
Definition at line 128 of file CurveMesh.h.
References m_curvelength, and PeriodicOverwrite().
|
inline |
Definition at line 112 of file CurveMesh.h.
References m_meshedges.
|
inline |
get list of mesh nodes
Definition at line 107 of file CurveMesh.h.
References m_meshpoints.
|
inline |
get the number of points in the curve
Definition at line 120 of file CurveMesh.h.
References m_meshpoints.
|
private |
get node spacing phi function
Definition at line 245 of file CurveMesh.cpp.
Referenced by SetOffset().
|
private |
get node spacing sampling function
Definition at line 353 of file CurveMesh.cpp.
References CG_Iterations::loc.
Referenced by SetOffset().
void Nektar::NekMeshUtils::CurveMesh::Mesh | ( | bool | forceThree = false | ) |
execute meshing
Definition at line 59 of file CurveMesh.cpp.
References ASSERTL0, CG_Iterations::loc, class_topology::Node, and Nektar::rhs.
Referenced by CurveMesh().
void Nektar::NekMeshUtils::CurveMesh::PeriodicOverwrite | ( | CurveMeshSharedPtr | from | ) |
Definition at line 398 of file CurveMesh.cpp.
References CG_Iterations::loc, and class_topology::Node.
Referenced by GetLength().
void Nektar::NekMeshUtils::CurveMesh::ReMesh | ( | ) |
Delete old mesh and mesh with forceThree on.
Definition at line 44 of file CurveMesh.cpp.
References CG_Iterations::Mesh.
Referenced by CurveMesh().
Definition at line 140 of file CurveMesh.h.
References EvaluateDS(), EvaluatePS(), GetPhiFunction(), GetSampleFunction(), and m_endoffset.
|
friend |
Definition at line 60 of file CurveMesh.h.
|
private |
spacing function evaluation
Definition at line 179 of file CurveMesh.h.
|
private |
ds
Definition at line 181 of file CurveMesh.h.
|
private |
Definition at line 195 of file CurveMesh.h.
Referenced by CurveMesh().
|
private |
Definition at line 196 of file CurveMesh.h.
Referenced by CurveMesh().
coords of the ends of the parametric curve
Definition at line 173 of file CurveMesh.h.
|
private |
|
private |
length of the curve in real space
Definition at line 169 of file CurveMesh.h.
Referenced by GetLength().
|
private |
array of function ds evaluations
Definition at line 175 of file CurveMesh.h.
|
private |
offset of second point at each end
Definition at line 198 of file CurveMesh.h.
Referenced by SetOffset().
|
private |
id of the curvemesh
Definition at line 190 of file CurveMesh.h.
Referenced by CurveMesh(), and GetId().
|
private |
Definition at line 192 of file CurveMesh.h.
Referenced by CurveMesh().
|
private |
list of mesh edges in the curvemesh
Definition at line 188 of file CurveMesh.h.
Referenced by GetMeshEdges().
|
private |
ids of the mesh nodes
Definition at line 194 of file CurveMesh.h.
Referenced by GetFirstPoint(), GetLastPoint(), GetMeshPoints(), and GetNumPoints().
|
private |
number of sampling points used in algorithm
Definition at line 171 of file CurveMesh.h.
|
private |
array of function ps evaluations
Definition at line 177 of file CurveMesh.h.
|
private |
paramteric coordiates of the mesh nodes
Definition at line 186 of file CurveMesh.h.
|
private |
number of edges to be made in the curve as defined by the spacing funtion
Definition at line 184 of file CurveMesh.h.