mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-30 11:06:55 -06:00
Merge pull request #287 from qilicun/update_pv
Use original grid cell volume to compute pore volume.
This commit is contained in:
commit
69c1a660a8
@ -27,7 +27,7 @@
|
||||
#include <opm/core/pressure/tpfa/TransTpfa.hpp>
|
||||
|
||||
#include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
|
||||
|
||||
#include <opm/parser/eclipse/EclipseState/Grid/EclipseGrid.hpp>
|
||||
#include <opm/core/utility/platform_dependent/disable_warnings.h>
|
||||
|
||||
#include <Eigen/Eigen>
|
||||
@ -90,6 +90,10 @@ namespace Opm
|
||||
ntg = eclState->getDoubleGridProperty("NTG")->getData();
|
||||
}
|
||||
|
||||
// get grid from parser.
|
||||
|
||||
// Get original grid cell volume.
|
||||
EclipseGridConstPtr eclgrid = eclState->getEclipseGrid();
|
||||
// Pore volume
|
||||
for (int cellIdx = 0; cellIdx < numCells; ++cellIdx) {
|
||||
int cartesianCellIdx = AutoDiffGrid::globalCell(grid)[cellIdx];
|
||||
@ -97,7 +101,8 @@ namespace Opm
|
||||
props.porosity()[cellIdx]
|
||||
* multpv[cartesianCellIdx]
|
||||
* ntg[cartesianCellIdx]
|
||||
* AutoDiffGrid::cellVolume(grid, cellIdx);
|
||||
* eclgrid->getCellVolume(cartesianCellIdx);
|
||||
// * AutoDiffGrid::cellVolume(grid, cellIdx);
|
||||
}
|
||||
|
||||
// Transmissibility
|
||||
|
Loading…
Reference in New Issue
Block a user