3.5-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Enumerations | Functions
Dumux::PoreNetwork::Throat Namespace Reference

Enumerations

enum class  Shape {
  scaleneTriangle , equilateralTriangle , square , rectangle ,
  circle , twoPlates , polygon
}
 Collection of different pore-throat shapes. More...
 

Functions

std::string shapeToString (Shape s)
 Get the shape from a string description of the shape. More...
 
Shape shapeFromString (const std::string &s)
 Get the shape from a string description of the shape. More...
 
template<class Scalar >
Scalar averagedRadius (const Scalar poreRadiusOne, const Scalar poreRadiusTwo, const Scalar centerTocenterDist, const Scalar n=0.1)
 Returns the radius of a pore throat. More...
 
template<class Scalar >
Dune::ReservedVector< Scalar, 4 > cornerHalfAngles (Shape shape)
 Returns the corner half angle. More...
 
template<class Scalar >
constexpr Scalar shapeFactorEquilateralTriangle () noexcept
 Returns the value of the shape factor for an equilateral triangle. More...
 
template<class Scalar >
constexpr Scalar shapeFactorSquare () noexcept
 Returns the value of the shape factor for a square. More...
 
template<class Scalar >
constexpr Scalar shapeFactorRectangle (const Scalar inscribedRadius, const Scalar height) noexcept
 Returns the value of the shape factor for a rectangle. More...
 
template<class Scalar >
constexpr Scalar shapeFactorCircle () noexcept
 Returns the value of the shape factor for a cicle. More...
 
template<class Scalar >
Scalar shapeFactor (Shape shape, const Scalar inscribedRadius)
 Returns the value of the shape factor for a given shape. More...
 
template<class Scalar >
constexpr Shape shape (const Scalar shapeFactor) noexcept
 Returns the shape for a given shape factor. More...
 
template<class Scalar >
Scalar totalCrossSectionalArea (const Shape shape, const Scalar inscribedRadius)
 Returns the cross-sectional area of a given geometry. More...
 
template<class Scalar >
constexpr Scalar totalCrossSectionalAreaForRectangle (const Scalar inscribedRadius, const Scalar height) noexcept
 Returns the cross-sectional area of a rectangle. More...
 
std::size_t numCorners (Shape shape)
 Returns the number of corners of a given geometry. More...
 
template<class Scalar >
constexpr Scalar wettingLayerCrossSectionalArea (const Scalar curvatureRadius, const Scalar contactAngle, const Scalar cornerHalfAngle) noexcept
 Return the cross-sectional area of a wetting layer residing in a corner of a throat. More...
 

Enumeration Type Documentation

◆ Shape

Collection of different pore-throat shapes.

Enumerator
scaleneTriangle 
equilateralTriangle 
square 
rectangle 
circle 
twoPlates 
polygon 

Function Documentation

◆ averagedRadius()

template<class Scalar >
Scalar Dumux::PoreNetwork::Throat::averagedRadius ( const Scalar  poreRadiusOne,
const Scalar  poreRadiusTwo,
const Scalar  centerTocenterDist,
const Scalar  n = 0.1 
)
inline

Returns the radius of a pore throat.

Parameters
poreRadiusOneThe radius of the first pore
poreRadiusTwoThe radius of the second pore
centerTocenterDistThe center-to-center distance between the pores
nFitting parameter

Joekar-Niasar et al. (2008) https://doi.org/10.1007/s11242-007-9191-7

◆ cornerHalfAngles()

template<class Scalar >
Dune::ReservedVector< Scalar, 4 > Dumux::PoreNetwork::Throat::cornerHalfAngles ( Shape  shape)
inline

Returns the corner half angle.

◆ numCorners()

std::size_t Dumux::PoreNetwork::Throat::numCorners ( Shape  shape)
inline

Returns the number of corners of a given geometry.

◆ shape()

template<class Scalar >
constexpr Shape Dumux::PoreNetwork::Throat::shape ( const Scalar  shapeFactor)
inlineconstexprnoexcept

Returns the shape for a given shape factor.

◆ shapeFactor()

template<class Scalar >
Scalar Dumux::PoreNetwork::Throat::shapeFactor ( Shape  shape,
const Scalar  inscribedRadius 
)
inline

Returns the value of the shape factor for a given shape.

◆ shapeFactorCircle()

template<class Scalar >
constexpr Scalar Dumux::PoreNetwork::Throat::shapeFactorCircle ( )
inlineconstexprnoexcept

Returns the value of the shape factor for a cicle.

◆ shapeFactorEquilateralTriangle()

template<class Scalar >
constexpr Scalar Dumux::PoreNetwork::Throat::shapeFactorEquilateralTriangle ( )
inlineconstexprnoexcept

Returns the value of the shape factor for an equilateral triangle.

◆ shapeFactorRectangle()

template<class Scalar >
constexpr Scalar Dumux::PoreNetwork::Throat::shapeFactorRectangle ( const Scalar  inscribedRadius,
const Scalar  height 
)
inlineconstexprnoexcept

Returns the value of the shape factor for a rectangle.

◆ shapeFactorSquare()

template<class Scalar >
constexpr Scalar Dumux::PoreNetwork::Throat::shapeFactorSquare ( )
inlineconstexprnoexcept

Returns the value of the shape factor for a square.

◆ shapeFromString()

Shape Dumux::PoreNetwork::Throat::shapeFromString ( const std::string &  s)
inline

Get the shape from a string description of the shape.

◆ shapeToString()

std::string Dumux::PoreNetwork::Throat::shapeToString ( Shape  s)
inline

Get the shape from a string description of the shape.

◆ totalCrossSectionalArea()

template<class Scalar >
Scalar Dumux::PoreNetwork::Throat::totalCrossSectionalArea ( const Shape  shape,
const Scalar  inscribedRadius 
)
inline

Returns the cross-sectional area of a given geometry.

◆ totalCrossSectionalAreaForRectangle()

template<class Scalar >
constexpr Scalar Dumux::PoreNetwork::Throat::totalCrossSectionalAreaForRectangle ( const Scalar  inscribedRadius,
const Scalar  height 
)
inlineconstexprnoexcept

Returns the cross-sectional area of a rectangle.

◆ wettingLayerCrossSectionalArea()

template<class Scalar >
constexpr Scalar Dumux::PoreNetwork::Throat::wettingLayerCrossSectionalArea ( const Scalar  curvatureRadius,
const Scalar  contactAngle,
const Scalar  cornerHalfAngle 
)
inlineconstexprnoexcept

Return the cross-sectional area of a wetting layer residing in a corner of a throat.

Parameters
curvatureRadiusThe radius of curvature within the throat (surfaceTension/pc)
contactAngleThe contact angle within the throat
cornerHalfAngleThe corner half-angle of the the throat's corner of interest

See, e.g, Valvatne & Blunt (2004), eq. A7 https://doi.org/10.1029/2003WR002627