mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-12 17:02:02 -05:00
Add ecl tracer model
reads tracer input from deck, solves tracer equation fully implicit as a post processing step in endTimeStep tested on a simple modified SPE1CASE1 deck and compared with eclipse TODO: restart and parallel
This commit is contained in:
1 parent
781825121d
commit
ac931d1713
6 files changed
+795
-3
No files matched your search
@@ -487,6 +487,15 @@ public:
|
||||
matrix.setBlock(wellGlobalDofIdx, wellGlobalDofIdx, diagBlock);
|
||||
}
|
||||
|
||||
Scalar volumetricSurfaceRateForConnection(int globalDofIdx, int phaseIdx) const {
|
||||
const DofVariables& dofVars = *dofVariables_.at(globalDofIdx);
|
||||
std::array<Scalar, numPhases> volumetricReservoirRates;
|
||||
computeVolumetricDofRates_(volumetricReservoirRates, actualBottomHolePressure_, dofVars);
|
||||
std::array<Scalar, numPhases> volumetricSurfaceRates;
|
||||
computeSurfaceRates_(volumetricSurfaceRates, volumetricReservoirRates, dofVars);
|
||||
return volumetricSurfaceRates[phaseIdx];
|
||||
}
|
||||
|
||||
|
||||
// reset the well to the initial state, i.e. remove all degrees of freedom...
|
||||
void clear()
|
||||
|
||||
Reference in new issue
Block a user