35 #ifndef NekMeshUtils_CADSYSTEM_CADSYSTEM 36 #define NekMeshUtils_CADSYSTEM_CADSYSTEM 49 namespace NekMeshUtils
159 return search->second;
170 return search->second;
181 return search->second;
206 int first,
int second);
231 std::cout << std::endl <<
"CAD report:" << std::endl;
232 std::cout <<
"\tCAD has: " << m_verts.size() <<
" verts." << std::endl;
233 std::cout <<
"\tCAD has: " << m_curves.size() <<
" curves." 235 std::cout <<
"\tCAD has: " << m_surfs.size() <<
" surfaces." std::shared_ptr< CADSurf > CADSurfSharedPtr
LibUtilities::NekFactory< std::string, CADSystem, std::string > EngineFactory
int GetNumVerts()
Gets number of vertices.
int GetNumCurve()
Get the number of curves.
General purpose memory allocation routines with the ability to allocate from thread specific memory p...
std::shared_ptr< CADVert > CADVertSharedPtr
Base class for CAD interface system.
std::map< int, CADVertSharedPtr > GetVerts()
Gets map of all vertices.
std::shared_ptr< CADSystem > CADSystemSharedPtr
int GetNumSurf()
Get the number of surfaces.
std::string m_name
Name of cad file.
std::map< int, CADCurveSharedPtr > m_curves
Map of curves.
void Report()
Reports basic properties to screen.
std::map< int, CADVertSharedPtr > m_verts
Map of vertices.
CADSystem(std::string name)
Default constructor.
std::string m_naca
string of 4 digit NACA code to be created
std::shared_ptr< CADCurve > CADCurveSharedPtr
virtual Array< OneD, NekDouble > GetBoundingBox()=0
Returns bounding box of the domain.
NEKMESHUTILS_EXPORT Array< OneD, NekDouble > GetPeriodicTranslationVector(int first, int second)
Return the vector of translation from one curve to another to allow for periodic mesh generation in 2...
virtual bool LoadCAD()=0
Initialises CAD and makes surface, curve and vertex maps.
bool m_cfiMesh
Will the CAD be used with a CFI mesh flag.
CADCurveSharedPtr GetCurve(int i)
Gets a curve from the map.
EngineFactory & GetEngineFactory()
void SetNACA(std::string i)
#define NEKMESHUTILS_EXPORT
std::map< int, CADSurfSharedPtr > m_surfs
Map of surfaces.
std::string GetName()
Return the name of the CAD file.
CADSurfSharedPtr GetSurf(int i)
Gets a surface from the map.
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode...
CADVertSharedPtr GetVert(int i)
Gets a vert from the map.
Provides a generic Factory class.