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:
Trine S Mykkeltvedt committed 2018-11-19 13:46:10 +01:00
1 parent 781825121d
commit ac931d1713
6 files changed
+795 -3

No files matched your search

+9
View File
@@ -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()