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

#include <Conditions.h>

Inheritance diagram for Nektar::SpatialDomains::BoundaryConditionBase:
Inheritance graph
[legend]

Public Member Functions

 BoundaryConditionBase (BoundaryConditionType type, const std::string &userDefined=std::string("NoUserDefined"))
virtual ~BoundaryConditionBase ()
BoundaryConditionType GetBoundaryConditionType () const
void SetBoundaryConditionType (BoundaryConditionType boundaryType)
void SetUserDefined (BndUserDefinedType type)
BndUserDefinedType GetUserDefined () const
const std::string GetBndTypeAsString (BndUserDefinedType type)

Protected Attributes

BoundaryConditionType m_boundaryConditionType
BndUserDefinedType m_userDefined

Detailed Description

Definition at line 118 of file Conditions.h.

Constructor & Destructor Documentation

Nektar::SpatialDomains::BoundaryConditionBase::BoundaryConditionBase ( BoundaryConditionType  type,
const std::string &  userDefined = std::string("NoUserDefined") 
)
inline

Definition at line 120 of file Conditions.h.

References Nektar::SpatialDomains::eArtificialViscosity, Nektar::SpatialDomains::eCalcBC, Nektar::SpatialDomains::eCRterminal, Nektar::SpatialDomains::eExtrapOrder0, Nektar::SpatialDomains::eHigh, Nektar::SpatialDomains::eHighOutflow, Nektar::SpatialDomains::eI, Nektar::SpatialDomains::eIsentropicVortex, Nektar::SpatialDomains::eMG, Nektar::SpatialDomains::eNoUserDefined, Nektar::SpatialDomains::eQinflow, Nektar::SpatialDomains::eRadiation, Nektar::SpatialDomains::eRCRterminal, Nektar::SpatialDomains::eRiemannInvariant, Nektar::SpatialDomains::eRinglebFlow, Nektar::SpatialDomains::eRterminal, Nektar::SpatialDomains::eSymmetry, Nektar::SpatialDomains::eTerminal, Nektar::SpatialDomains::eTimeDependent, Nektar::SpatialDomains::eWall, Nektar::SpatialDomains::eWallViscous, and m_userDefined.

:
{
std::map<const std::string, BndUserDefinedType> known_type;
known_type["H"] = eHigh;
known_type["HOutflow"] = eHighOutflow;
known_type["I"] = eI;
known_type["MG"] = eMG;
known_type["Wall"] = eWall;
known_type["WallViscous"] = eWallViscous;
known_type["ArtificialVisc"] = eArtificialViscosity;
known_type["Q-inflow"] = eQinflow;
known_type["Terminal"] = eTerminal;
known_type["R-terminal"] = eRterminal;
known_type["CR-terminal"] = eCRterminal;
known_type["RCR-terminal"] = eRCRterminal;
known_type["CalcBC"] = eCalcBC;
known_type["RinglebFlow"] = eRinglebFlow;
known_type["Symmetry"] = eSymmetry;
known_type["TimeDependent"] = eTimeDependent;
known_type["Radiation"] = eRadiation;
known_type["IsentropicVortex"] = eIsentropicVortex;
known_type["RiemannInvariant"] = eRiemannInvariant;
known_type["ExtrapOrder0"] = eExtrapOrder0;
known_type["NoUserDefined"] = eNoUserDefined;
std::map<const std::string, BndUserDefinedType>::
const_iterator it = known_type.find(userDefined);
if (it != known_type.end())
{
m_userDefined = it->second;
}
else
{
//ASSERTL0(false, std::string("Unknown boundary condition "
//"user defined type [") + userDefined + std::string("]"));
}
}
virtual Nektar::SpatialDomains::BoundaryConditionBase::~BoundaryConditionBase ( )
inlinevirtual

Definition at line 162 of file Conditions.h.

{};

Member Function Documentation

const std::string Nektar::SpatialDomains::BoundaryConditionBase::GetBndTypeAsString ( BndUserDefinedType  type)
inline

Definition at line 185 of file Conditions.h.

References Nektar::SpatialDomains::BndUserDefinedTypeMap.

{
return BndUserDefinedTypeMap[type];
}
BoundaryConditionType Nektar::SpatialDomains::BoundaryConditionBase::GetBoundaryConditionType ( ) const
inline

Definition at line 165 of file Conditions.h.

References m_boundaryConditionType.

BndUserDefinedType Nektar::SpatialDomains::BoundaryConditionBase::GetUserDefined ( ) const
inline

Definition at line 180 of file Conditions.h.

References m_userDefined.

{
return m_userDefined;
}
void Nektar::SpatialDomains::BoundaryConditionBase::SetBoundaryConditionType ( BoundaryConditionType  boundaryType)
inline

Definition at line 170 of file Conditions.h.

References m_boundaryConditionType.

{
m_boundaryConditionType = boundaryType;
}
void Nektar::SpatialDomains::BoundaryConditionBase::SetUserDefined ( BndUserDefinedType  type)
inline

Definition at line 175 of file Conditions.h.

References m_userDefined.

{
m_userDefined = type;
}

Member Data Documentation

BoundaryConditionType Nektar::SpatialDomains::BoundaryConditionBase::m_boundaryConditionType
protected

Definition at line 191 of file Conditions.h.

Referenced by GetBoundaryConditionType(), and SetBoundaryConditionType().

BndUserDefinedType Nektar::SpatialDomains::BoundaryConditionBase::m_userDefined
protected

Definition at line 192 of file Conditions.h.

Referenced by BoundaryConditionBase(), GetUserDefined(), and SetUserDefined().