mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -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/core/pressure/tpfa/TransTpfa.hpp>
|
||||||
|
|
||||||
#include <opm/parser/eclipse/EclipseState/EclipseState.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 <opm/core/utility/platform_dependent/disable_warnings.h>
|
||||||
|
|
||||||
#include <Eigen/Eigen>
|
#include <Eigen/Eigen>
|
||||||
@ -90,6 +90,10 @@ namespace Opm
|
|||||||
ntg = eclState->getDoubleGridProperty("NTG")->getData();
|
ntg = eclState->getDoubleGridProperty("NTG")->getData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// get grid from parser.
|
||||||
|
|
||||||
|
// Get original grid cell volume.
|
||||||
|
EclipseGridConstPtr eclgrid = eclState->getEclipseGrid();
|
||||||
// Pore volume
|
// Pore volume
|
||||||
for (int cellIdx = 0; cellIdx < numCells; ++cellIdx) {
|
for (int cellIdx = 0; cellIdx < numCells; ++cellIdx) {
|
||||||
int cartesianCellIdx = AutoDiffGrid::globalCell(grid)[cellIdx];
|
int cartesianCellIdx = AutoDiffGrid::globalCell(grid)[cellIdx];
|
||||||
@ -97,7 +101,8 @@ namespace Opm
|
|||||||
props.porosity()[cellIdx]
|
props.porosity()[cellIdx]
|
||||||
* multpv[cartesianCellIdx]
|
* multpv[cartesianCellIdx]
|
||||||
* ntg[cartesianCellIdx]
|
* ntg[cartesianCellIdx]
|
||||||
* AutoDiffGrid::cellVolume(grid, cellIdx);
|
* eclgrid->getCellVolume(cartesianCellIdx);
|
||||||
|
// * AutoDiffGrid::cellVolume(grid, cellIdx);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Transmissibility
|
// Transmissibility
|
||||||
|
Loading…
Reference in New Issue
Block a user