Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 GetNumVerts () const
StdRegions::Orientation GetEorient (const int i) const
StdRegions::Orientation GetPorient (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
int GetEdgeFaceMap (int i, int j) const
void FillGeom ()
 Put all quadrature information into face/edge structure and backward transform.
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.
void SetOwnData ()
const LibUtilities::BasisSharedPtr GetBasis (const int i)
 Return the j-th basis of the i-th co-ordinate dimension.
const LibUtilities::PointsKeyVector GetPointsKeys ()

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 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)
void SetUpCoeffs (const int nCoeffs)

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
GeomFactorsSharedPtr m_geomFactors
GeomState m_geomFactorsState
StdRegions::StdExpansionSharedPtr m_xmap
GeomState m_state
 enum identifier to determine if quad points are filled
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.

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

Definition at line 47 of file Geometry1D.cpp.

:
Geometry(coordim)
{
}
Nektar::SpatialDomains::Geometry1D::~Geometry1D ( )
virtual

Definition at line 52 of file Geometry1D.cpp.

{
}

Member Function Documentation

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

Definition at line 61 of file Geometry1D.cpp.

References v_DetShapeType().

{
return v_DetShapeType();
}
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().

{
return v_GetEid();
}
PointGeomSharedPtr Nektar::SpatialDomains::Geometry1D::GetVertex ( const int  i) const

Reimplemented from Nektar::SpatialDomains::Geometry.

Definition at line 56 of file Geometry1D.cpp.

References v_GetVertex().

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

{
return v_GetVertex(i);
}
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().

{
"This function is only valid for expansion type geometries");
}
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().

{
"This function is only valid for expansion type geometries");
return 0;
}
int Nektar::SpatialDomains::Geometry1D::v_GetShapeDim ( ) const
protectedvirtual

Reimplemented from Nektar::SpatialDomains::Geometry.

Definition at line 72 of file Geometry1D.cpp.

{
return 1;
}
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().

{
"This function is only valid for expansion type geometries");
PointGeomSharedPtr returnval;
return returnval;
}
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.

{
"This function is only valid for expansion type geometries");
return 0;
}