Nektar++
|
Base class for CAD interface system. More...
#include <CADSystem.h>
Classes | |
struct | EdgeLoop |
struct which descibes a collection of cad edges which are a loop on the cad surface More... | |
Public Types | |
typedef boost::shared_ptr < EdgeLoop > | EdgeLoopSharedPtr |
Public Member Functions | |
CADSystem (std::string name) | |
Default constructor. More... | |
~CADSystem () | |
std::string | GetName () |
Return the name of the CAD system. More... | |
void | Set2D () |
bool | Is2D () |
void | SetNACA (std::string i) |
virtual bool | LoadCAD ()=0 |
Initialises CAD and makes surface, curve and vertex maps. More... | |
void | Report () |
Reports basic properties to screen. More... | |
virtual Array< OneD, NekDouble > | GetBoundingBox ()=0 |
Returns bounding box of the domain. More... | |
int | GetNumSurf () |
Get the number of surfaces. More... | |
int | GetNumCurve () |
Get the number of curves. More... | |
CADCurveSharedPtr | GetCurve (int i) |
Gets a curve from the map. More... | |
CADSurfSharedPtr | GetSurf (int i) |
Gets a surface from the map. More... | |
std::map< int, CADVertSharedPtr > | GetVerts () |
Gets map of all vertices. More... | |
int | GetNumVerts () |
Gets number of vertices. More... | |
Protected Attributes | |
std::string | m_name |
Name of cad file. More... | |
std::map< int, CADCurveSharedPtr > | m_curves |
Map of curves. More... | |
std::map< int, CADSurfSharedPtr > | m_surfs |
Map of surfaces. More... | |
std::map< int, CADVertSharedPtr > | m_verts |
Map of vertices. More... | |
bool | m_2d |
std::string | m_naca |
Friends | |
class | MemoryManager< CADSystem > |
Base class for CAD interface system.
A class which can load and interact with CAD for Nektar++. This class contains maps to subclasses surface and curves.
Definition at line 69 of file CADSystem.h.
typedef boost::shared_ptr<EdgeLoop> Nektar::NekMeshUtils::CADSystem::EdgeLoopSharedPtr |
Definition at line 86 of file CADSystem.h.
|
inline |
Default constructor.
Definition at line 91 of file CADSystem.h.
References m_2d.
|
inline |
Definition at line 96 of file CADSystem.h.
Returns bounding box of the domain.
Gets the bounding box of the domain by considering the start and end points of each curve in the geometry.
Implemented in Nektar::NekMeshUtils::CADSystemOCE.
|
inline |
Gets a curve from the map.
Definition at line 169 of file CADSystem.h.
References ASSERTL0, Nektar::iterator, and m_curves.
|
inline |
Return the name of the CAD system.
Definition at line 103 of file CADSystem.h.
References m_name.
|
inline |
Get the number of curves.
Definition at line 161 of file CADSystem.h.
References m_curves.
|
inline |
Get the number of surfaces.
Definition at line 153 of file CADSystem.h.
References m_surfs.
|
inline |
Gets number of vertices.
Definition at line 199 of file CADSystem.h.
References m_verts.
|
inline |
Gets a surface from the map.
Definition at line 180 of file CADSystem.h.
References ASSERTL0, Nektar::iterator, and m_surfs.
|
inline |
Gets map of all vertices.
Definition at line 191 of file CADSystem.h.
References m_verts.
|
inline |
|
pure virtual |
Initialises CAD and makes surface, curve and vertex maps.
Implemented in Nektar::NekMeshUtils::CADSystemOCE.
|
inline |
Reports basic properties to screen.
Definition at line 133 of file CADSystem.h.
References m_curves, and m_surfs.
|
inline |
|
inline |
|
friend |
Definition at line 72 of file CADSystem.h.
|
protected |
Definition at line 214 of file CADSystem.h.
Referenced by CADSystem(), Is2D(), and Set2D().
|
protected |
Map of curves.
Definition at line 208 of file CADSystem.h.
Referenced by GetCurve(), GetNumCurve(), and Report().
|
protected |
Definition at line 215 of file CADSystem.h.
Referenced by SetNACA().
|
protected |
|
protected |
Map of surfaces.
Definition at line 210 of file CADSystem.h.
Referenced by GetNumSurf(), GetSurf(), and Report().
|
protected |
Map of vertices.
Definition at line 212 of file CADSystem.h.
Referenced by GetNumVerts(), and GetVerts().