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
92 void applyExplicitThresholdPressures_();
94 void configureThpresft_();
98 const CartesianIndexMapper& cartMapper_;
99 const GridView& gridView_;
100 const ElementMapper& elementMapper_;
103 const EclipseState& eclState_;
104 std::vector<Scalar> thpresDefault_;
105 std::vector<Scalar> thpres_;
106 unsigned numEquilRegions_{};
107 std::vector<unsigned short> elemEquilRegion_;
110 std::vector<Scalar> thpresftValues_;
111 std::vector<int> cartElemFaultIdx_;
113 bool enableThresholdPressure_;
Definition CollectDataOnIORank.hpp:49
Definition GenericThresholdPressure.hpp:43
void finishInit()
Actually compute the threshold pressures over a face as a pre-compute step.
Definition GenericThresholdPressure_impl.hpp:101
void setFromRestart(const std::vector< Scalar > &values)
Set the threshold pressures from a raw array.
Definition GenericThresholdPressure.hpp:77
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:224
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:54
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition BlackoilPhases.hpp:27