27 #ifndef EWOMS_FRACTURE_MAPPER_HH 28 #define EWOMS_FRACTURE_MAPPER_HH 41 template <
class TypeTag>
46 FractureEdge(
unsigned edgeVertex1Idx,
unsigned edgeVertex2Idx)
47 : i_(std::min(edgeVertex1Idx, edgeVertex2Idx)),
48 j_(std::max(edgeVertex1Idx, edgeVertex2Idx))
51 bool operator<(
const FractureEdge& e)
const 52 {
return i_ < e.i_ || (i_ == e.i_ && j_ < e.j_); }
54 bool operator==(
const FractureEdge& e)
const 55 {
return i_ == e.i_ && j_ == e.j_; }
76 fractureEdges_.insert(FractureEdge(vertexIdx1, vertexIdx2));
77 fractureVertices_.insert(vertexIdx1);
78 fractureVertices_.insert(vertexIdx2);
87 {
return fractureVertices_.count(vertexIdx) > 0; }
97 FractureEdge tmp(vertex1Idx, vertex2Idx);
98 return fractureEdges_.count(tmp) > 0;
102 std::set<FractureEdge> fractureEdges_;
103 std::set<unsigned> fractureVertices_;
108 #endif // EWOMS_FRACTURE_MAPPER_HH bool isFractureEdge(unsigned vertex1Idx, unsigned vertex2Idx) const
Returns true iff a fracture is associated with a given edge.
Definition: fracturemapper.hh:95
Definition: baseauxiliarymodule.hh:37
Stores the topology of fractures.
Definition: fracturemapper.hh:42
bool isFractureVertex(unsigned vertexIdx) const
Returns true iff a fracture cuts through a given vertex.
Definition: fracturemapper.hh:86
void addFractureEdge(unsigned vertexIdx1, unsigned vertexIdx2)
Marks an edge as having a fracture.
Definition: fracturemapper.hh:74
Provides the magic behind the eWoms property system.
FractureMapper()
Constructor.
Definition: fracturemapper.hh:65