A class for representing a flow boundary condition. More...

#include <BoundaryConditions.hpp>

Inheritance diagram for Opm::FlowBC:
Inheritance graph

Public Types

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

 FlowBC ()
 Default constructor, that makes a noflow condition (Neumann, value 0.0). More...
 
 FlowBC (BCType type, double value)
 Constructor taking a type and value. More...
 
double pressure () const
 Query a Dirichlet condition. More...
 
double outflux () const
 Query a Neumann condition. More...
 
double pressureDifference () const
 Query a Periodic 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_
 
double value_
 

Detailed Description

A class for representing a flow boundary condition.

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

Opm::FlowBC::FlowBC ( )
inline

Default constructor, that makes a noflow condition (Neumann, value 0.0).

Opm::FlowBC::FlowBC ( BCType  type,
double  value 
)
inline

Constructor taking a type and value.

Parameters
typethe condition type.
valuethe condition value.

References Opm::BCBase< double >::isDirichlet(), Opm::BCBase< double >::isNeumann(), and Opm::BCBase< double >::isPeriodic().

Member Function Documentation

bool Opm::BCBase< double >::isDirichlet ( ) const
inlineprotectedinherited

Type query.

Returns
true if the type is Dirichlet.

References Opm::BCBase< T >::Dirichlet, and Opm::BCBase< T >::type_.

Referenced by FlowBC(), pressure(), Opm::SatBC::SatBC(), and Opm::SatBC::saturation().

bool Opm::BCBase< double >::isNeumann ( ) const
inlineprotectedinherited

Type query.

Returns
true if the type is Neumann.

References Opm::BCBase< T >::Neumann, and Opm::BCBase< T >::type_.

Referenced by FlowBC(), and outflux().

bool Opm::BCBase< double >::isPeriodic ( ) const
inlineprotectedinherited

Type query.

Returns
true if the type is Periodic.

References Opm::BCBase< T >::Periodic, and Opm::BCBase< T >::type_.

Referenced by FlowBC(), pressureDifference(), Opm::SatBC::SatBC(), and Opm::SatBC::saturationDifference().

double Opm::FlowBC::outflux ( ) const
inline
double Opm::FlowBC::pressure ( ) const
inline
double Opm::FlowBC::pressureDifference ( ) const
inline

Query a Periodic condition.

Returns
the pressure difference condition value.

References Opm::BCBase< double >::isPeriodic(), and Opm::BCBase< double >::value_.

void Opm::BCBase< double >::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.

References Opm::BCBase< T >::type_, and Opm::BCBase< T >::value_.

Member Data Documentation

BCType Opm::BCBase< double >::type_
protectedinherited
double Opm::BCBase< double >::value_
protectedinherited

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