Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Protected Member Functions | List of all members
Nektar::SpatialDomains::Geometry1D Class Reference

1D geometry information More...

#include <Geometry1D.h>

Inheritance diagram for Nektar::SpatialDomains::Geometry1D:
Inheritance graph
[legend]
Collaboration diagram for Nektar::SpatialDomains::Geometry1D:
Collaboration graph
[legend]

Public Member Functions

 Geometry1D ()
 
 Geometry1D (const int coordim)
 
virtual ~Geometry1D ()
 
PointGeomSharedPtr GetVertex (const int i) const
 
LibUtilities::ShapeType DetShapeType () const
 
int GetEid () const
 
- Public Member Functions inherited from Nektar::SpatialDomains::Geometry
 Geometry ()
 
 Geometry (int coordim)
 
virtual ~Geometry ()
 
bool IsElmtConnected (int gvo_id, int locid) const
 
void AddElmtConnected (int gvo_id, int locid)
 
int NumElmtConnected () const
 
int GetCoordim () const
 
void SetCoordim (int coordim)
 
GeomFactorsSharedPtr GetGeomFactors ()
 
GeomFactorsSharedPtr GetRefGeomFactors (const Array< OneD, const LibUtilities::BasisSharedPtr > &tbasis)
 
GeomFactorsSharedPtr GetMetricInfo ()
 
LibUtilities::ShapeType GetShapeType (void)
 
int GetGlobalID (void)
 
void SetGlobalID (int globalid)
 
int GetVid (int i) const
 
int GetEid (int i) const
 
int GetFid (int i) const
 
int GetTid (int i) const
 
int GetNumVerts () const
 
PointGeomSharedPtr GetVertex (int i) const
 
StdRegions::Orientation GetEorient (const int i) const
 
StdRegions::Orientation GetPorient (const int i) const
 
StdRegions::Orientation GetForient (const int i) const
 
int GetNumEdges () const
 
int GetNumFaces () const
 
int GetShapeDim () const
 
StdRegions::StdExpansionSharedPtr GetXmap () const
 
const Array< OneD, const
NekDouble > & 
GetCoeffs (const int i) const
 
bool ContainsPoint (const Array< OneD, const NekDouble > &gloCoord, NekDouble tol=0.0)
 
bool ContainsPoint (const Array< OneD, const NekDouble > &gloCoord, Array< OneD, NekDouble > &locCoord, NekDouble tol)
 
bool ContainsPoint (const Array< OneD, const NekDouble > &gloCoord, Array< OneD, NekDouble > &locCoord, NekDouble tol, NekDouble &resid)
 
int GetVertexEdgeMap (int i, int j) const
 
int GetVertexFaceMap (int i, int j) const
 return the id of the $j^{th}$ face attached to the $ i^{th}$ vertex More...
 
int GetEdgeFaceMap (int i, int j) const
 
void FillGeom ()
 Put all quadrature information into face/edge structure and backward transform. More...
 
NekDouble GetLocCoords (const Array< OneD, const NekDouble > &coords, Array< OneD, NekDouble > &Lcoords)
 
NekDouble GetCoord (const int i, const Array< OneD, const NekDouble > &Lcoord)
 Given local collapsed coordinate Lcoord return the value of physical coordinate in direction i. More...
 
void SetOwnData ()
 
const LibUtilities::BasisSharedPtr GetBasis (const int i)
 Return the j-th basis of the i-th co-ordinate dimension. More...
 
const LibUtilities::PointsKeyVector GetPointsKeys ()
 
void Reset (CurveMap &curvedEdges, CurveMap &curvedFaces)
 

Protected Member Functions

virtual int v_GetShapeDim () const
 
virtual int v_GetEid () const
 
virtual int v_GetVid (int i) const
 
virtual PointGeomSharedPtr v_GetVertex (const int i) const
 
virtual LibUtilities::ShapeType v_DetShapeType () const
 
- Protected Member Functions inherited from Nektar::SpatialDomains::Geometry
void GenGeomFactors ()
 
virtual bool v_IsElmtConnected (int gvo_id, int locid) const
 
virtual void v_AddElmtConnected (int gvo_id, int locid)
 
virtual int v_NumElmtConnected () const
 
virtual int v_GetEid (int i) const
 
virtual int v_GetFid (int i) const
 
virtual void v_GenGeomFactors ()=0
 
virtual int v_GetNumVerts () const
 
virtual StdRegions::Orientation v_GetEorient (const int i) const
 
virtual StdRegions::Orientation v_GetPorient (const int i) const
 
virtual StdRegions::Orientation v_GetForient (const int i) const
 
virtual int v_GetNumEdges () const
 
virtual int v_GetNumFaces () const
 
virtual
StdRegions::StdExpansionSharedPtr 
v_GetXmap () const
 
virtual int v_GetCoordim () const
 
virtual bool v_ContainsPoint (const Array< OneD, const NekDouble > &gloCoord, NekDouble tol=0.0)
 
virtual bool v_ContainsPoint (const Array< OneD, const NekDouble > &gloCoord, Array< OneD, NekDouble > &locCoord, NekDouble tol)
 
virtual bool v_ContainsPoint (const Array< OneD, const NekDouble > &gloCoord, Array< OneD, NekDouble > &locCoord, NekDouble tol, NekDouble &resid)
 
virtual int v_GetVertexEdgeMap (int i, int j) const
 
virtual int v_GetVertexFaceMap (int i, int j) const
 
virtual int v_GetEdgeFaceMap (int i, int j) const
 
virtual void v_FillGeom ()
 
virtual NekDouble v_GetCoord (const int i, const Array< OneD, const NekDouble > &Lcoord)
 
virtual NekDouble v_GetLocCoords (const Array< OneD, const NekDouble > &coords, Array< OneD, NekDouble > &Lcoords)
 
virtual void v_SetOwnData ()
 
virtual const
LibUtilities::BasisSharedPtr 
v_GetBasis (const int i)
 
virtual void v_Reset (CurveMap &curvedEdges, CurveMap &curvedFaces)
 Reset this geometry object: unset the current state and remove allocated GeomFactors. More...
 
void SetUpCoeffs (const int nCoeffs)
 Initialise the m_coeffs array. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from Nektar::SpatialDomains::Geometry
static GeomFactorsSharedPtr ValidateRegGeomFactor (GeomFactorsSharedPtr geomFactor)
 
- Protected Attributes inherited from Nektar::SpatialDomains::Geometry
int m_coordim
 coordinate dimension More...
 
GeomFactorsSharedPtr m_geomFactors
 
GeomState m_geomFactorsState
 
StdRegions::StdExpansionSharedPtr m_xmap
 
GeomState m_state
 enum identifier to determine if quad points are filled More...
 
GeomType m_geomType
 
LibUtilities::ShapeType m_shapeType
 
int m_globalID
 
Array< OneD, Array< OneD,
NekDouble > > 
m_coeffs
 
- Static Protected Attributes inherited from Nektar::SpatialDomains::Geometry
static GeomFactorsVector m_regGeomFactorsManager
 

Detailed Description

1D geometry information

Definition at line 56 of file Geometry1D.h.

Constructor & Destructor Documentation

Nektar::SpatialDomains::Geometry1D::Geometry1D ( )

Definition at line 43 of file Geometry1D.cpp.

44  {
45  }
Nektar::SpatialDomains::Geometry1D::Geometry1D ( const int  coordim)

Definition at line 47 of file Geometry1D.cpp.

47  :
48  Geometry(coordim)
49  {
50  }
Nektar::SpatialDomains::Geometry1D::~Geometry1D ( )
virtual

Definition at line 52 of file Geometry1D.cpp.

53  {
54  }

Member Function Documentation

LibUtilities::ShapeType Nektar::SpatialDomains::Geometry1D::DetShapeType ( ) const

Definition at line 61 of file Geometry1D.cpp.

References v_DetShapeType().

62  {
63  return v_DetShapeType();
64  }
virtual LibUtilities::ShapeType v_DetShapeType() const
Definition: Geometry1D.cpp:100
int Nektar::SpatialDomains::Geometry1D::GetEid ( ) const

Definition at line 66 of file Geometry1D.cpp.

References v_GetEid().

Referenced by Nektar::SpatialDomains::SegGeom::GetEdgeOrientation(), and Nektar::SpatialDomains::PointGeom::GetPointOrientation().

67  {
68  return v_GetEid();
69  }
virtual int v_GetEid() const
Definition: Geometry1D.cpp:78
PointGeomSharedPtr Nektar::SpatialDomains::Geometry1D::GetVertex ( const int  i) const

Definition at line 56 of file Geometry1D.cpp.

References v_GetVertex().

Referenced by Nektar::SpatialDomains::SegGeom::GetEdgeOrientation(), and Nektar::SpatialDomains::PointGeom::GetPointOrientation().

57  {
58  return v_GetVertex(i);
59  }
virtual PointGeomSharedPtr v_GetVertex(const int i) const
Definition: Geometry1D.cpp:85
LibUtilities::ShapeType Nektar::SpatialDomains::Geometry1D::v_DetShapeType ( ) const
protectedvirtual

Reimplemented in Nektar::SpatialDomains::SegGeom.

Definition at line 100 of file Geometry1D.cpp.

References ErrorUtil::efatal, Nektar::LibUtilities::eNoShapeType, and NEKERROR.

Referenced by DetShapeType().

101  {
103  "This function is only valid for expansion type geometries");
105  }
#define NEKERROR(type, msg)
Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mod...
Definition: ErrorUtil.hpp:191
int Nektar::SpatialDomains::Geometry1D::v_GetEid ( ) const
protectedvirtual

Reimplemented in Nektar::SpatialDomains::SegGeom.

Definition at line 78 of file Geometry1D.cpp.

References ErrorUtil::efatal, and NEKERROR.

Referenced by GetEid().

79  {
81  "This function is only valid for expansion type geometries");
82  return 0;
83  }
#define NEKERROR(type, msg)
Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mod...
Definition: ErrorUtil.hpp:191
int Nektar::SpatialDomains::Geometry1D::v_GetShapeDim ( ) const
protectedvirtual

Reimplemented from Nektar::SpatialDomains::Geometry.

Reimplemented in Nektar::SpatialDomains::SegGeom.

Definition at line 72 of file Geometry1D.cpp.

73  {
74  return 1;
75  }
PointGeomSharedPtr Nektar::SpatialDomains::Geometry1D::v_GetVertex ( const int  i) const
protectedvirtual

Implements Nektar::SpatialDomains::Geometry.

Reimplemented in Nektar::SpatialDomains::SegGeom.

Definition at line 85 of file Geometry1D.cpp.

References ErrorUtil::efatal, and NEKERROR.

Referenced by GetVertex().

86  {
88  "This function is only valid for expansion type geometries");
89  PointGeomSharedPtr returnval;
90  return returnval;
91  }
#define NEKERROR(type, msg)
Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mod...
Definition: ErrorUtil.hpp:191
boost::shared_ptr< PointGeom > PointGeomSharedPtr
Definition: Geometry.h:60
int Nektar::SpatialDomains::Geometry1D::v_GetVid ( int  i) const
protectedvirtual

Reimplemented from Nektar::SpatialDomains::Geometry.

Reimplemented in Nektar::SpatialDomains::SegGeom.

Definition at line 93 of file Geometry1D.cpp.

References ErrorUtil::efatal, and NEKERROR.

94  {
96  "This function is only valid for expansion type geometries");
97  return 0;
98  }
#define NEKERROR(type, msg)
Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mod...
Definition: ErrorUtil.hpp:191