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

Encapsulates the user-defined boundary conditions for compressible flow solver. More...

#include <CFSBndCond.h>

Inheritance diagram for Nektar::CFSBndCond:
Inheritance graph
[legend]
Collaboration diagram for Nektar::CFSBndCond:
Collaboration graph
[legend]

Public Member Functions

virtual ~CFSBndCond ()
 
void Apply (Array< OneD, Array< OneD, NekDouble > > &Fwd, Array< OneD, Array< OneD, NekDouble > > &physarray, const NekDouble &time=0)
 Apply the boundary condition. More...
 

Protected Member Functions

 CFSBndCond (const LibUtilities::SessionReaderSharedPtr &pSession, const Array< OneD, MultiRegions::ExpListSharedPtr > &pFields, const Array< OneD, Array< OneD, NekDouble > > &pTraceNormals, const int pSpaceDim, const int bcRegion, const int cnt)
 Constructor. More...
 
virtual void v_Apply (Array< OneD, Array< OneD, NekDouble > > &Fwd, Array< OneD, Array< OneD, NekDouble > > &physarray, const NekDouble &time)=0
 

Protected Attributes

LibUtilities::SessionReaderSharedPtr m_session
 Session reader. More...
 
Array< OneD,
MultiRegions::ExpListSharedPtr
m_fields
 Array of fields. More...
 
Array< OneD, Array< OneD,
NekDouble > > 
m_traceNormals
 Trace normals. More...
 
int m_spacedim
 Space dimension. More...
 
VariableConverterSharedPtr m_varConv
 Auxiliary object to convert variables. More...
 
NekDouble m_gamma
 Parameters of the flow. More...
 
NekDouble m_rhoInf
 
NekDouble m_pInf
 
Array< OneD, NekDoublem_velInf
 
int m_bcRegion
 Id of the boundary region. More...
 
int m_offset
 Offset. More...
 

Detailed Description

Encapsulates the user-defined boundary conditions for compressible flow solver.

Definition at line 71 of file CFSBndCond.h.

Constructor & Destructor Documentation

virtual Nektar::CFSBndCond::~CFSBndCond ( )
inlinevirtual

Definition at line 74 of file CFSBndCond.h.

74 {}
Nektar::CFSBndCond::CFSBndCond ( const LibUtilities::SessionReaderSharedPtr pSession,
const Array< OneD, MultiRegions::ExpListSharedPtr > &  pFields,
const Array< OneD, Array< OneD, NekDouble > > &  pTraceNormals,
const int  pSpaceDim,
const int  bcRegion,
const int  cnt 
)
protected

Constructor.

Definition at line 51 of file CFSBndCond.cpp.

References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), m_gamma, m_pInf, m_rhoInf, m_session, m_spacedim, m_varConv, and m_velInf.

57  : m_session(pSession),
58  m_fields(pFields),
59  m_traceNormals(pTraceNormals),
60  m_spacedim(pSpaceDim),
61  m_bcRegion(bcRegion),
62  m_offset(cnt)
63 {
64  m_velInf = Array<OneD, NekDouble> (m_spacedim, 0.0);
65  m_session->LoadParameter("Gamma", m_gamma, 1.4);
66  m_session->LoadParameter("rhoInf", m_rhoInf, 1.225);
67  m_session->LoadParameter("pInf", m_pInf, 101325);
68  m_session->LoadParameter("uInf", m_velInf[0], 0.1);
69  if (m_spacedim >= 2)
70  {
71  m_session->LoadParameter("vInf", m_velInf[1], 0.0);
72  }
73  if (m_spacedim == 3)
74  {
75  m_session->LoadParameter("wInf", m_velInf[2], 0.0);
76  }
77 
78  // Create auxiliary object to convert variables
81 }
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
int m_spacedim
Space dimension.
Definition: CFSBndCond.h:90
LibUtilities::SessionReaderSharedPtr m_session
Session reader.
Definition: CFSBndCond.h:84
Array< OneD, MultiRegions::ExpListSharedPtr > m_fields
Array of fields.
Definition: CFSBndCond.h:86
NekDouble m_pInf
Definition: CFSBndCond.h:97
NekDouble m_gamma
Parameters of the flow.
Definition: CFSBndCond.h:95
VariableConverterSharedPtr m_varConv
Auxiliary object to convert variables.
Definition: CFSBndCond.h:92
Array< OneD, NekDouble > m_velInf
Definition: CFSBndCond.h:98
int m_offset
Offset.
Definition: CFSBndCond.h:103
NekDouble m_rhoInf
Definition: CFSBndCond.h:96
Array< OneD, Array< OneD, NekDouble > > m_traceNormals
Trace normals.
Definition: CFSBndCond.h:88
int m_bcRegion
Id of the boundary region.
Definition: CFSBndCond.h:101

Member Function Documentation

void Nektar::CFSBndCond::Apply ( Array< OneD, Array< OneD, NekDouble > > &  Fwd,
Array< OneD, Array< OneD, NekDouble > > &  physarray,
const NekDouble time = 0 
)

Apply the boundary condition.

Parameters
bcRegionid of the boundary region
cnt
Fwd
physarray
time

Definition at line 90 of file CFSBndCond.cpp.

References v_Apply().

94 {
95  v_Apply(Fwd, physarray, time);
96 }
virtual void v_Apply(Array< OneD, Array< OneD, NekDouble > > &Fwd, Array< OneD, Array< OneD, NekDouble > > &physarray, const NekDouble &time)=0
virtual void Nektar::CFSBndCond::v_Apply ( Array< OneD, Array< OneD, NekDouble > > &  Fwd,
Array< OneD, Array< OneD, NekDouble > > &  physarray,
const NekDouble time 
)
protectedpure virtual

Member Data Documentation

int Nektar::CFSBndCond::m_bcRegion
protected
Array<OneD, MultiRegions::ExpListSharedPtr> Nektar::CFSBndCond::m_fields
protected
NekDouble Nektar::CFSBndCond::m_gamma
protected
int Nektar::CFSBndCond::m_offset
protected
NekDouble Nektar::CFSBndCond::m_pInf
protected
NekDouble Nektar::CFSBndCond::m_rhoInf
protected

Definition at line 96 of file CFSBndCond.h.

Referenced by CFSBndCond(), and Nektar::RiemannInvariantBC::v_Apply().

LibUtilities::SessionReaderSharedPtr Nektar::CFSBndCond::m_session
protected
int Nektar::CFSBndCond::m_spacedim
protected
Array<OneD, Array<OneD, NekDouble> > Nektar::CFSBndCond::m_traceNormals
protected
VariableConverterSharedPtr Nektar::CFSBndCond::m_varConv
protected
Array<OneD, NekDouble> Nektar::CFSBndCond::m_velInf
protected