27#ifndef EWOMS_FRACTURE_MAPPER_HH
28#define EWOMS_FRACTURE_MAPPER_HH
39template <
class TypeTag>
44 FractureEdge(
unsigned edgeVertex1Idx,
unsigned edgeVertex2Idx)
45 : i_(std::min(edgeVertex1Idx, edgeVertex2Idx)),
46 j_(std::max(edgeVertex1Idx, edgeVertex2Idx))
49 bool operator<(
const FractureEdge& e)
const
50 {
return i_ < e.i_ || (i_ == e.i_ && j_ < e.j_); }
52 bool operator==(
const FractureEdge& e)
const
53 {
return i_ == e.i_ && j_ == e.j_; }
68 fractureEdges_.insert(FractureEdge(vertexIdx1, vertexIdx2));
69 fractureVertices_.insert(vertexIdx1);
70 fractureVertices_.insert(vertexIdx2);
79 {
return fractureVertices_.count(vertexIdx) > 0; }
89 FractureEdge tmp(vertex1Idx, vertex2Idx);
90 return fractureEdges_.count(tmp) > 0;
94 std::set<FractureEdge> fractureEdges_;
95 std::set<unsigned> fractureVertices_;
Stores the topology of fractures.
Definition fracturemapper.hh:41
bool isFractureEdge(unsigned vertex1Idx, unsigned vertex2Idx) const
Returns true iff a fracture is associated with a given edge.
Definition fracturemapper.hh:87
bool isFractureVertex(unsigned vertexIdx) const
Returns true iff a fracture cuts through a given vertex.
Definition fracturemapper.hh:78
void addFractureEdge(unsigned vertexIdx1, unsigned vertexIdx2)
Marks an edge as having a fracture.
Definition fracturemapper.hh:66
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:45