3.4
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Classes | Namespaces | Functions
distance.hh File Reference

Helper functions for distance queries. More...

#include <dune/common/fvector.hh>
#include <dune/geometry/quadraturerules.hh>

Go to the source code of this file.

Description

Helper functions for distance queries.

Classes

struct  Dumux::Detail::GeometryDistance< Geo1, Geo2, dimWorld, dim1, dim2 >
 
struct  Dumux::Detail::GeometryDistance< Geo1, Geo2, dimWorld, 0, 0 >
 
struct  Dumux::Detail::GeometryDistance< Geo1, Geo2, dimWorld, 1, 0 >
 
struct  Dumux::Detail::GeometryDistance< Geo1, Geo2, dimWorld, 0, 1 >
 

Namespaces

namespace  Dumux
 
namespace  Dumux::Detail
 

Functions

template<class Geometry >
Geometry::ctype Dumux::averageDistancePointGeometry (const typename Geometry::GlobalCoordinate &p, const Geometry &geometry, std::size_t integrationOrder=2)
 Compute the average distance from a point to a geometry by integration. More...
 
template<class Point >
Point::value_type Dumux::distancePointLine (const Point &p, const Point &a, const Point &b)
 Compute the distance from a point to a line through the points a and b. More...
 
template<class Geometry >
Geometry::ctype Dumux::distancePointLine (const typename Geometry::GlobalCoordinate &p, const Geometry &geometry)
 Compute the distance from a point to a line given by a geometry with two corners. More...
 
template<class Point >
Point::value_type Dumux::distancePointSegment (const Point &p, const Point &a, const Point &b)
 Compute the distance from a point to the segment connecting the points a and b. More...
 
template<class Geometry >
Geometry::ctype Dumux::distancePointSegment (const typename Geometry::GlobalCoordinate &p, const Geometry &geometry)
 Compute the distance from a point to a given segment geometry. More...
 
template<class Geometry >
Geometry::ctype Dumux::averageDistanceSegmentGeometry (const typename Geometry::GlobalCoordinate &a, const typename Geometry::GlobalCoordinate &b, const Geometry &geometry, std::size_t integrationOrder=2)
 Compute the average distance from a segment to a geometry by integration. More...
 
template<class ctype , int dimWorld>
ctype Dumux::distance (const Dune::FieldVector< ctype, dimWorld > &a, const Dune::FieldVector< ctype, dimWorld > &b)
 Compute the shortest distance between two points. More...
 
template<class Geo1 , class Geo2 >
auto Dumux::distance (const Geo1 &geo1, const Geo2 &geo2)
 Compute the shortest distance between two geometries. More...
 
Include dependency graph for distance.hh: