28#ifndef OPM_GENERIC_THRESHOLD_PRESSURE_HPP
29#define OPM_GENERIC_THRESHOLD_PRESSURE_HPP
31#include <opm/grid/common/CartesianIndexMapper.hpp>
32#include <opm/grid/LookUpData.hh>
39template<
typename Gr
id,
typename Gr
idView>
class LookUpData;
42template<
class Gr
id,
class Gr
idView,
class ElementMapper,
class Scalar>
50 const GridView& gridView,
51 const ElementMapper& elementMapper,
52 const EclipseState& eclState);
69 const std::vector<Scalar>&
data()
const
79 this->restart_ =
true;
80 thpres_.assign(values.begin(), values.end());
81 thpresDefault_.assign(values.begin(), values.end());
88 bool enableThresholdPressure()
const;
98 void applyExplicitThresholdPressures_();
100 void configureThpresft_();
104 const CartesianIndexMapper& cartMapper_;
105 const GridView& gridView_;
106 const ElementMapper& elementMapper_;
109 const EclipseState& eclState_;
110 std::vector<Scalar> thpresDefault_;
111 std::vector<Scalar> thpres_;
112 unsigned numEquilRegions_{};
113 std::vector<unsigned short> elemEquilRegion_;
116 std::vector<Scalar> thpresftValues_;
117 std::vector<int> cartElemFaultIdx_;
119 bool enableThresholdPressure_ {
false};
120 bool restart_ {
false};
Definition CollectDataOnIORank.hpp:49
Definition GenericThresholdPressure.hpp:43
void setFromRestart(const std::vector< double > &values)
Set the threshold pressures from a raw array.
Definition GenericThresholdPressure.hpp:77
void finishInit()
Actually compute the threshold pressures over a face as a pre-compute step.
Definition GenericThresholdPressure_impl.hpp:103
Scalar thresholdPressure(int elem1Idx, int elem2Idx) const
Returns the theshold pressure [Pa] for the intersection between two elements.
Definition GenericThresholdPressure_impl.hpp:65
std::vector< Scalar > getRestartVector() const
Returns a fully expanded vector for restart file writing.
Definition GenericThresholdPressure_impl.hpp:234
const std::vector< Scalar > & data() const
Return the raw array with the threshold pressures.
Definition GenericThresholdPressure.hpp:69
Definition GenericThresholdPressure.hpp:40
Definition FlowGenericProblem.hpp:51
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilboundaryratevector.hh:37
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242