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

◆ BCType

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

◆ FlowBC() [1/2]

Opm::FlowBC::FlowBC ( )
inline

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

◆ FlowBC() [2/2]

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

◆ isDirichlet()

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

Type query.

Returns
true if the type is Dirichlet.

◆ isNeumann()

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

Type query.

Returns
true if the type is Neumann.

◆ isPeriodic()

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

Type query.

Returns
true if the type is Periodic.

◆ outflux()

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

◆ pressure()

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

◆ pressureDifference()

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_.

◆ write()

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.

Member Data Documentation

◆ type_

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

◆ value_

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

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