A class for building boundary conditions in a uniform way. More...

#include <BoundaryConditions.hpp>

Inheritance diagram for Opm::BCBase< T >:
Inheritance graph

Public Types

enum  BCType { Dirichlet, Neumann, Periodic }
 Enum for the allowed boundary condition types. So far, we support Dirichlet, Neumann and Periodic conditions. In this class, these are just tags, it's up to the code using it to attach meaning to them. More...
 

Public Member Functions

template<typename charT , class traits >
void write (std::basic_ostream< charT, traits > &os) const
 Write type and value to an output stream. More...
 

Protected Member Functions

 BCBase ()
 Default constructor, that makes a Neumann condition with value 0.0. More...
 
 BCBase (BCType type, T value)
 Constructor taking a type and value. More...
 
bool isDirichlet () const
 Type query. More...
 
bool isNeumann () const
 Type query. More...
 
bool isPeriodic () const
 Type query. More...
 

Protected Attributes

BCType type_
 
value_
 

Detailed Description

template<typename T>
class Opm::BCBase< T >

A class for building boundary conditions in a uniform way.

Member Enumeration Documentation

template<typename T>
enum Opm::BCBase::BCType

Enum for the allowed boundary condition types. So far, we support Dirichlet, Neumann and Periodic conditions. In this class, these are just tags, it's up to the code using it to attach meaning to them.

Enumerator
Dirichlet 
Neumann 
Periodic 

Constructor & Destructor Documentation

template<typename T>
Opm::BCBase< T >::BCBase ( )
inlineprotected

Default constructor, that makes a Neumann condition with value 0.0.

template<typename T>
Opm::BCBase< T >::BCBase ( BCType  type,
value 
)
inlineprotected

Constructor taking a type and value.

Parameters
typethe condition type.
valuethe condition value.

Member Function Documentation

template<typename T>
bool Opm::BCBase< T >::isDirichlet ( ) const
inlineprotected
template<typename T>
bool Opm::BCBase< T >::isNeumann ( ) const
inlineprotected
template<typename T>
bool Opm::BCBase< T >::isPeriodic ( ) const
inlineprotected

Type query.

Returns
true if the type is Periodic.
template<typename T>
template<typename charT , class traits >
void Opm::BCBase< T >::write ( std::basic_ostream< charT, traits > &  os) const
inline

Write type and value to an output stream.

Template Parameters
traitscharacter type.
traitscharacter traits.
Parameters
osoutput stream.

Referenced by Opm::operator<<().

Member Data Documentation

template<typename T>
T Opm::BCBase< T >::value_
protected

The documentation for this class was generated from the following file: