34 class ThresholdPressure {
37 using ThresholdPressureTable = std::vector<std::pair<bool,double>>;
38 using PressureTable = std::map<std::pair<int,int>,std::pair<bool,double>>;
40 ThresholdPressure(
bool restart,
47 , m_irreversible(
false)
64 bool hasRegionBarrier(
int r1 ,
int r2)
const;
73 bool hasThresholdPressure(
int r1 ,
int r2)
const;
82 double getThresholdPressure(
int r1 ,
int r2)
const;
87 size_t ftSize()
const;
91 bool irreversible()
const;
93 bool operator==(
const ThresholdPressure& data)
const;
94 static bool rst_cmp(
const ThresholdPressure& full_arg,
const ThresholdPressure& rst_arg);
97 template<
class Serializer>
100 serializer(m_active);
101 serializer(m_restart);
102 serializer(m_irreversible);
103 serializer(m_thresholdPressureTable);
104 serializer(m_pressureTable);
105 serializer(m_thresholdFaultTable);
112 std::pair<int,int> makeIndex(
int r1 ,
int r2)
const;
113 void addPair(
int r1 ,
int r2 ,
const std::pair<bool , double>& valuePair);
114 void addBarrier(
int r1 ,
int r2);
115 void addBarrier(
int r1 ,
int r2 ,
double p);
117 std::vector<std::pair<bool,double>> m_thresholdPressureTable;
118 std::map<std::pair<int,int> , std::pair<bool , double> > m_pressureTable;
119 std::vector<double> m_thresholdFaultTable;
void readFaults(const Deck &deck, const FaultCollection &faults)
Reads the THPRESFT keyword if present.
Definition ThresholdPressure.cpp:135
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30