20#ifndef OPM_TRESHOLD_PRESSURES_HPP
21#define OPM_TRESHOLD_PRESSURES_HPP
30 class FieldPropsManager;
35 using ThresholdPressureTable = std::vector<std::pair<bool,double>>;
36 using PressureTable = std::map<std::pair<int,int>,std::pair<bool,double>>;
45 , m_irreversible(
false)
57 bool hasRegionBarrier(
int r1 ,
int r2)
const;
66 bool hasThresholdPressure(
int r1 ,
int r2)
const;
75 double getThresholdPressure(
int r1 ,
int r2)
const;
84 template<
class Serializer>
88 serializer(m_restart);
89 serializer(m_irreversible);
90 serializer(m_thresholdPressureTable);
91 serializer(m_pressureTable);
98 std::pair<int,int> makeIndex(
int r1 ,
int r2)
const;
99 void addPair(
int r1 ,
int r2 ,
const std::pair<bool , double>& valuePair);
100 void addBarrier(
int r1 ,
int r2);
101 void addBarrier(
int r1 ,
int r2 ,
double p);
103 std::vector<std::pair<bool,double>> m_thresholdPressureTable;
104 std::map<std::pair<int,int> , std::pair<bool , double> > m_pressureTable;
Definition: FieldPropsManager.hpp:38
Class for (de-)serializing.
Definition: Serializer.hpp:75
Definition: ThresholdPressure.hpp:32
static ThresholdPressure serializationTestObject()
Returns an instance for serialization tests.
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29