Ewoms::EcfvStencil< Scalar, GridView >::SubControlVolume Class Reference

Represents a sub-control volume. More...

#include <ecfvstencil.hh>

Public Member Functions

 SubControlVolume (const ElementPointer &elementPtr)
 
void update (const ElementPointer &elementPtr)
 
void update ()
 
const GlobalPosition & globalPos () const
 The global position associated with the sub-control volume. More...
 
const GlobalPosition & center () const
 The center of the sub-control volume. More...
 
Scalar volume () const
 The volume [m^3] occupied by the sub-control volume. More...
 
const LocalGeometry geometry () const
 The geometry of the sub-control volume. More...
 

Detailed Description

template<class Scalar, class GridView>
class Ewoms::EcfvStencil< Scalar, GridView >::SubControlVolume

Represents a sub-control volume.

For element centered finite volumes, this is equivalent to the element, in the vertex centered finite volume approach, this corresponds to the intersection of a finite volume and the grid element.

Constructor & Destructor Documentation

template<class Scalar , class GridView >
Ewoms::EcfvStencil< Scalar, GridView >::SubControlVolume::SubControlVolume ( const ElementPointer &  elementPtr)
inline

Member Function Documentation

template<class Scalar , class GridView >
const GlobalPosition& Ewoms::EcfvStencil< Scalar, GridView >::SubControlVolume::center ( ) const
inline

The center of the sub-control volume.

template<class Scalar , class GridView >
const LocalGeometry Ewoms::EcfvStencil< Scalar, GridView >::SubControlVolume::geometry ( ) const
inline

The geometry of the sub-control volume.

Referenced by Ewoms::EcfvStencil< Scalar, GridView >::SubControlVolume::update().

template<class Scalar , class GridView >
const GlobalPosition& Ewoms::EcfvStencil< Scalar, GridView >::SubControlVolume::globalPos ( ) const
inline

The global position associated with the sub-control volume.

template<class Scalar , class GridView >
void Ewoms::EcfvStencil< Scalar, GridView >::SubControlVolume::update ( const ElementPointer &  elementPtr)
inline
template<class Scalar , class GridView >
void Ewoms::EcfvStencil< Scalar, GridView >::SubControlVolume::update ( )
inline
template<class Scalar , class GridView >
Scalar Ewoms::EcfvStencil< Scalar, GridView >::SubControlVolume::volume ( ) const
inline

The volume [m^3] occupied by the sub-control volume.


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