Opm::SurfvolBC< numComponents > Class Template Reference

A class for representing a surface volume boundary condition. More...

#include <BoundaryConditions.hpp>

Inheritance diagram for Opm::SurfvolBC< numComponents >:
Inheritance graph

Public Types

typedef Dune::FieldVector
< double, numComponents > 
CompVec
 
typedef BCBase< CompVecBase
 
enum  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. More...
 

Public Member Functions

 SurfvolBC ()
 Default constructor, that makes a Dirichlet condition with all zero component values. More...
 
 SurfvolBC (Dune::FieldVector< double, numComponents > value)
 Constructor taking a value. More...
 
CompVec surfvol () const
 Query a Dirichlet condition. More...
 
void write (std::basic_ostream< charT, traits > &os) const
 Write type and value to an output stream. More...
 

Protected Member Functions

bool isDirichlet () const
 Type query. More...
 
bool isNeumann () const
 Type query. More...
 
bool isPeriodic () const
 Type query. More...
 

Protected Attributes

BCType type_
 
Dune::FieldVector< double,
numComponents > 
value_
 

Detailed Description

template<int numComponents>
class Opm::SurfvolBC< numComponents >

A class for representing a surface volume boundary condition.

Member Typedef Documentation

template<int numComponents>
typedef BCBase<CompVec> Opm::SurfvolBC< numComponents >::Base
template<int numComponents>
typedef Dune::FieldVector<double, numComponents> Opm::SurfvolBC< numComponents >::CompVec

Member Enumeration Documentation

enum Opm::BCBase::BCType
inherited

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.

Constructor & Destructor Documentation

template<int numComponents>
Opm::SurfvolBC< numComponents >::SurfvolBC ( )
inline

Default constructor, that makes a Dirichlet condition with all zero component values.

template<int numComponents>
Opm::SurfvolBC< numComponents >::SurfvolBC ( Dune::FieldVector< double, numComponents >  value)
inlineexplicit

Constructor taking a value.

Parameters
valuethe condition value.

References Opm::BCBase< Dune::FieldVector< double, numComponents > >::isDirichlet().

Member Function Documentation

bool Opm::BCBase< Dune::FieldVector< double, numComponents > >::isDirichlet ( ) const
inlineprotectedinherited

Type query.

Returns
true if the type is Dirichlet.

Referenced by Opm::SurfvolBC< numComponents >::SurfvolBC().

bool Opm::BCBase< Dune::FieldVector< double, numComponents > >::isNeumann ( ) const
inlineprotectedinherited

Type query.

Returns
true if the type is Neumann.
bool Opm::BCBase< Dune::FieldVector< double, numComponents > >::isPeriodic ( ) const
inlineprotectedinherited

Type query.

Returns
true if the type is Periodic.
template<int numComponents>
CompVec Opm::SurfvolBC< numComponents >::surfvol ( ) const
inline

Query a Dirichlet condition.

Returns
the boundary saturation value

References Opm::BCBase< T >::value_.

void Opm::BCBase< Dune::FieldVector< double, numComponents > >::write ( std::basic_ostream< charT, traits > &  os) const
inlineinherited

Write type and value to an output stream.

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

Member Data Documentation

BCType Opm::BCBase< Dune::FieldVector< double, numComponents > >::type_
protectedinherited
Dune::FieldVector< double, numComponents > Opm::BCBase< Dune::FieldVector< double, numComponents > >::value_
protectedinherited

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