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

#include <SubStructuredGraph.h>

Collaboration diagram for Nektar::MultiRegions::PatchMap:
Collaboration graph
[legend]

Public Member Functions

 PatchMap (void)
 
 PatchMap (const int vals)
 
 ~PatchMap (void)
 
void SetPatchMap (const int n, const int patchId, const int dofId, const unsigned int bndPatch, const NekDouble sign)
 
Array< OneD, const int > GetPatchId () const
 
Array< OneD, const int > GetDofId () const
 
Array< OneD, const unsigned int > IsBndDof () const
 
Array< OneD, const NekDoubleGetSign () const
 

Protected Attributes

Array< OneD, int > m_patchId
 
Array< OneD, int > m_dofId
 
Array< OneD, unsigned int > m_bndPatch
 
Array< OneD, NekDoublem_sign
 

Detailed Description

Definition at line 71 of file SubStructuredGraph.h.

Constructor & Destructor Documentation

Nektar::MultiRegions::PatchMap::PatchMap ( void  )

Definition at line 57 of file SubStructuredGraph.cpp.

58  {
59 
60  }
Nektar::MultiRegions::PatchMap::PatchMap ( const int  vals)

Definition at line 62 of file SubStructuredGraph.cpp.

References m_bndPatch, m_dofId, m_patchId, and m_sign.

63  {
64  m_patchId = Array<OneD, int> (nvals);
65  m_dofId = Array<OneD, int> (nvals);
66  m_bndPatch = Array<OneD, unsigned int>(nvals);
67  m_sign = Array<OneD, NekDouble> (nvals);
68  }
Array< OneD, NekDouble > m_sign
Array< OneD, unsigned int > m_bndPatch
Nektar::MultiRegions::PatchMap::~PatchMap ( void  )

Definition at line 70 of file SubStructuredGraph.cpp.

71  {
72 
73  }

Member Function Documentation

Array<OneD, const int> Nektar::MultiRegions::PatchMap::GetDofId ( ) const
inline

Definition at line 89 of file SubStructuredGraph.h.

References m_dofId.

90  {
91  return m_dofId;
92  }
Array<OneD, const int> Nektar::MultiRegions::PatchMap::GetPatchId ( ) const
inline

Definition at line 84 of file SubStructuredGraph.h.

References m_patchId.

85  {
86  return m_patchId;
87  }
Array<OneD, const NekDouble> Nektar::MultiRegions::PatchMap::GetSign ( ) const
inline

Definition at line 99 of file SubStructuredGraph.h.

References m_sign.

100  {
101  return m_sign;
102  }
Array< OneD, NekDouble > m_sign
Array<OneD, const unsigned int> Nektar::MultiRegions::PatchMap::IsBndDof ( ) const
inline

Definition at line 94 of file SubStructuredGraph.h.

References m_bndPatch.

95  {
96  return m_bndPatch;
97  }
Array< OneD, unsigned int > m_bndPatch
void Nektar::MultiRegions::PatchMap::SetPatchMap ( const int  n,
const int  patchId,
const int  dofId,
const unsigned int  bndPatch,
const NekDouble  sign 
)

Definition at line 75 of file SubStructuredGraph.cpp.

References m_bndPatch, m_dofId, m_patchId, m_sign, and sign.

81  {
82  m_patchId [n] = patchId;
83  m_dofId [n] = dofId;
84  m_bndPatch[n] = bndPatch;
85  m_sign [n] = sign;
86  }
Array< OneD, NekDouble > m_sign
#define sign(a, b)
return the sign(b)*a
Definition: Polylib.cpp:22
Array< OneD, unsigned int > m_bndPatch

Member Data Documentation

Array<OneD, unsigned int> Nektar::MultiRegions::PatchMap::m_bndPatch
protected

Definition at line 107 of file SubStructuredGraph.h.

Referenced by IsBndDof(), PatchMap(), and SetPatchMap().

Array<OneD, int> Nektar::MultiRegions::PatchMap::m_dofId
protected

Definition at line 106 of file SubStructuredGraph.h.

Referenced by GetDofId(), PatchMap(), and SetPatchMap().

Array<OneD, int> Nektar::MultiRegions::PatchMap::m_patchId
protected

Definition at line 105 of file SubStructuredGraph.h.

Referenced by GetPatchId(), PatchMap(), and SetPatchMap().

Array<OneD, NekDouble> Nektar::MultiRegions::PatchMap::m_sign
protected

Definition at line 108 of file SubStructuredGraph.h.

Referenced by GetSign(), PatchMap(), and SetPatchMap().