Nektar++
|
#include <CADSystemOCE.h>
Public Member Functions | |
CADSystemOCE (std::string name) | |
Default constructor. More... | |
~CADSystemOCE () | |
bool | LoadCAD () |
Initialises CAD and makes surface, curve and vertex maps. More... | |
Array< OneD, NekDouble > | GetBoundingBox () |
Returns bounding box of the domain. More... | |
Public Member Functions inherited from Nektar::NekMeshUtils::CADSystem | |
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) |
void | Report () |
Reports basic properties to screen. 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... | |
Static Public Member Functions | |
static CADSystemSharedPtr | create (std::string name) |
Static Public Attributes | |
static std::string | key |
Private Member Functions | |
void | AddVert (int i, TopoDS_Shape in) |
Function to add curve to CADSystem::m_verts. More... | |
void | AddCurve (int i, TopoDS_Shape in) |
Function to add curve to CADSystem::m_curves. More... | |
void | AddSurf (int i, TopoDS_Shape in) |
Function to add surface to CADSystem::m_surfs. More... | |
TopoDS_Shape | BuildNACA (std::string naca) |
Private Attributes | |
TopoDS_Shape | shape |
OCC master object. More... | |
TopTools_IndexedMapOfShape | mapOfVerts |
TopTools_IndexedMapOfShape | mapOfEdges |
TopTools_IndexedMapOfShape | mapOfFaces |
Additional Inherited Members | |
Public Types inherited from Nektar::NekMeshUtils::CADSystem | |
typedef boost::shared_ptr < EdgeLoop > | EdgeLoopSharedPtr |
Protected Attributes inherited from Nektar::NekMeshUtils::CADSystem | |
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 |
Definition at line 47 of file CADSystemOCE.h.
|
inline |
Default constructor.
Definition at line 61 of file CADSystemOCE.h.
|
inline |
Definition at line 62 of file CADSystemOCE.h.
|
private |
Function to add curve to CADSystem::m_curves.
Definition at line 165 of file CADSystemOCE.cpp.
References Nektar::LibUtilities::NekFactory< tKey, tBase, >::CreateInstance(), and Nektar::NekMeshUtils::GetCADCurveFactory().
|
private |
Function to add surface to CADSystem::m_surfs.
Definition at line 181 of file CADSystemOCE.cpp.
References ASSERTL0, Nektar::LibUtilities::NekFactory< tKey, tBase, >::CreateInstance(), Nektar::StdRegions::eBackwards, Nektar::StdRegions::eForwards, and Nektar::NekMeshUtils::GetCADSurfFactory().
|
private |
Function to add curve to CADSystem::m_verts.
Definition at line 156 of file CADSystemOCE.cpp.
References Nektar::LibUtilities::NekFactory< tKey, tBase, >::CreateInstance(), and Nektar::NekMeshUtils::GetCADVertFactory().
|
private |
Definition at line 271 of file CADSystemOCE.cpp.
References ASSERTL0, and class_topology::P.
|
inlinestatic |
Definition at line 51 of file CADSystemOCE.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr().
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.
Implements Nektar::NekMeshUtils::CADSystem.
Definition at line 243 of file CADSystemOCE.cpp.
|
virtual |
Initialises CAD and makes surface, curve and vertex maps.
Implements Nektar::NekMeshUtils::CADSystem.
Definition at line 53 of file CADSystemOCE.cpp.
References ASSERTL0, and Nektar::iterator.
|
static |
Definition at line 56 of file CADSystemOCE.h.
|
private |
Definition at line 79 of file CADSystemOCE.h.
|
private |
Definition at line 79 of file CADSystemOCE.h.
|
private |
Definition at line 79 of file CADSystemOCE.h.
|
private |
OCC master object.
Definition at line 78 of file CADSystemOCE.h.