version 3.11-dev
Loading...
Searching...
No Matches
Dumux::Detail::SegmentNetwork< GridGeometry > Class Template Reference

Segment representation of a 1d network grid. More...

#include <dumux/multidomain/embedded/couplingmanager1d3d_projection.hh>

Inheritance diagram for Dumux::Detail::SegmentNetwork< GridGeometry >:

Description

template<class GridGeometry>
class Dumux::Detail::SegmentNetwork< GridGeometry >

We use separate segment representation which is fast to iterate over and which can be used to find the unique mapping from points on coupled bulk surface facets to the network centerline (i.e. a 1D dof on the centerline).

Public Member Functions

template<class RadiusFunction>
 SegmentNetwork (const GridGeometry &gg, const RadiusFunction &radiusFunction)
auto radius (std::size_t eIdx) const
 the segment radius
const auto & segment (std::size_t eIdx) const
 the segment with index eIdx
const auto & segments () const
 the segments
auto findClosestSegmentSurface (const GlobalPosition &globalPos) const
std::vector< GridIndex > closestSegmentSurfaceCandidates (const GlobalPosition &globalPos, double margin=0.0) const
 Indices (ascending) of all segments that can be the closest segment surface for a point within the given distance from the position.
template<class IndexRange>
auto findClosestSegmentSurface (const GlobalPosition &globalPos, const IndexRange &segIndices) const
 same as overload with taking a position but only look at the segments specified by the index vector
GlobalPosition projectionPointOnSegment (const GlobalPosition &p, std::size_t idx) const

Constructor & Destructor Documentation

◆ SegmentNetwork()

template<class GridGeometry>
template<class RadiusFunction>
Dumux::Detail::SegmentNetwork< GridGeometry >::SegmentNetwork ( const GridGeometry & gg,
const RadiusFunction & radiusFunction )
inline

Member Function Documentation

◆ closestSegmentSurfaceCandidates()

template<class GridGeometry>
std::vector< GridIndex > Dumux::Detail::SegmentNetwork< GridGeometry >::closestSegmentSurfaceCandidates ( const GlobalPosition & globalPos,
double margin = 0.0 ) const
inline
Note
Let c be the segment with the closest centerline (distance d_c, radius r_c). The segment s that minimizes the signed surface distance has d_s - r_s <= d_c - r_c at the position. For a point within the margin the distances change by at most the margin. Hence d_s <= d_c + 2*margin + r_max - r_c at the position.

◆ findClosestSegmentSurface() [1/2]

template<class GridGeometry>
auto Dumux::Detail::SegmentNetwork< GridGeometry >::findClosestSegmentSurface ( const GlobalPosition & globalPos) const
inline

find the segment with the smallest signed distance from its surface to the position (lowest index on ties)

Note
the returned distance is the absolute value of that signed distance

◆ findClosestSegmentSurface() [2/2]

template<class GridGeometry>
template<class IndexRange>
auto Dumux::Detail::SegmentNetwork< GridGeometry >::findClosestSegmentSurface ( const GlobalPosition & globalPos,
const IndexRange & segIndices ) const
inline

◆ projectionPointOnSegment()

template<class GridGeometry>
GlobalPosition Dumux::Detail::SegmentNetwork< GridGeometry >::projectionPointOnSegment ( const GlobalPosition & p,
std::size_t idx ) const
inline

◆ radius()

template<class GridGeometry>
auto Dumux::Detail::SegmentNetwork< GridGeometry >::radius ( std::size_t eIdx) const
inline

◆ segment()

template<class GridGeometry>
const auto & Dumux::Detail::SegmentNetwork< GridGeometry >::segment ( std::size_t eIdx) const
inline

◆ segments()

template<class GridGeometry>
const auto & Dumux::Detail::SegmentNetwork< GridGeometry >::segments ( ) const
inline

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