mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Enable inheritance from IncompTpfa for limited purposes.
This commit is contained in:
parent
e041407c81
commit
29a400d622
@ -102,7 +102,7 @@ namespace Opm
|
|||||||
const FlowBoundaryConditions* bcs);
|
const FlowBoundaryConditions* bcs);
|
||||||
|
|
||||||
/// Destructor.
|
/// Destructor.
|
||||||
~IncompTpfa();
|
virtual ~IncompTpfa();
|
||||||
|
|
||||||
/// Solve the pressure equation. If there is no pressure
|
/// Solve the pressure equation. If there is no pressure
|
||||||
/// dependency introduced by rock compressibility effects,
|
/// dependency introduced by rock compressibility effects,
|
||||||
@ -119,7 +119,7 @@ namespace Opm
|
|||||||
/// Expose read-only reference to internal half-transmissibility.
|
/// Expose read-only reference to internal half-transmissibility.
|
||||||
const std::vector<double>& getHalfTrans() const { return htrans_; }
|
const std::vector<double>& getHalfTrans() const { return htrans_; }
|
||||||
|
|
||||||
private:
|
protected:
|
||||||
// Solve with no rock compressibility (linear eqn).
|
// Solve with no rock compressibility (linear eqn).
|
||||||
void solveIncomp(const double dt,
|
void solveIncomp(const double dt,
|
||||||
TwophaseState& state,
|
TwophaseState& state,
|
||||||
@ -128,11 +128,12 @@ namespace Opm
|
|||||||
void solveRockComp(const double dt,
|
void solveRockComp(const double dt,
|
||||||
TwophaseState& state,
|
TwophaseState& state,
|
||||||
WellState& well_state);
|
WellState& well_state);
|
||||||
|
private:
|
||||||
// Helper functions.
|
// Helper functions.
|
||||||
void computeStaticData();
|
void computeStaticData();
|
||||||
void computePerSolveDynamicData(const double dt,
|
virtual void computePerSolveDynamicData(const double dt,
|
||||||
const TwophaseState& state,
|
const TwophaseState& state,
|
||||||
const WellState& well_state);
|
const WellState& well_state);
|
||||||
void computePerIterationDynamicData(const double dt,
|
void computePerIterationDynamicData(const double dt,
|
||||||
const TwophaseState& state,
|
const TwophaseState& state,
|
||||||
const WellState& well_state);
|
const WellState& well_state);
|
||||||
@ -145,7 +146,7 @@ namespace Opm
|
|||||||
void computeResults(TwophaseState& state,
|
void computeResults(TwophaseState& state,
|
||||||
WellState& well_state) const;
|
WellState& well_state) const;
|
||||||
|
|
||||||
private:
|
protected:
|
||||||
// ------ Data that will remain unmodified after construction. ------
|
// ------ Data that will remain unmodified after construction. ------
|
||||||
const UnstructuredGrid& grid_;
|
const UnstructuredGrid& grid_;
|
||||||
const IncompPropertiesInterface& props_;
|
const IncompPropertiesInterface& props_;
|
||||||
|
Loading…
Reference in New Issue
Block a user