mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-11 07:56:08 -06:00
#1141 - pre-proto - Writing intermediate calculations also when computed transmissibility is invalid.
This commit is contained in:
parent
238b803dce
commit
088d1591b6
@ -113,7 +113,10 @@ bool RifEclipseExportTools::writeFracturesToTextFile(const QString& fileName, c
|
|||||||
|
|
||||||
for (RigFractureData fracData : fracDataVector)
|
for (RigFractureData fracData : fracDataVector)
|
||||||
{
|
{
|
||||||
|
if (fracData.transmissibility > 0)
|
||||||
|
{
|
||||||
printCOMPDATvalues(out, fracData, fracture, wellPath, simWell, mainGrid);
|
printCOMPDATvalues(out, fracData, fracture, wellPath, simWell, mainGrid);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: If same cell is used for multiple fractures, the sum of contributions should be added to table.
|
//TODO: If same cell is used for multiple fractures, the sum of contributions should be added to table.
|
||||||
@ -234,8 +237,16 @@ void RifEclipseExportTools::printBackgroundDataHeaderLine(QTextStream & out)
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RifEclipseExportTools::printBackgroundData(QTextStream & out, RimWellPath* wellPath, RimEclipseWell* simWell, RimFracture* fracture, const RigMainGrid* mainGrid, RigFractureData &fracData)
|
void RifEclipseExportTools::printBackgroundData(QTextStream & out, RimWellPath* wellPath, RimEclipseWell* simWell, RimFracture* fracture, const RigMainGrid* mainGrid, RigFractureData &fracData)
|
||||||
{
|
{
|
||||||
out << qSetFieldWidth(4);
|
if (fracData.transmissibility > 0)
|
||||||
out << "--";
|
{
|
||||||
|
out << qSetFieldWidth(4);
|
||||||
|
out << "--";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
out << qSetFieldWidth(20);
|
||||||
|
out << "-- INVALID DATA --";
|
||||||
|
}
|
||||||
out << qSetFieldWidth(12);
|
out << qSetFieldWidth(12);
|
||||||
|
|
||||||
wellPath, simWell = nullptr;
|
wellPath, simWell = nullptr;
|
||||||
|
@ -421,11 +421,7 @@ void RimFracture::computeTransmissibility()
|
|||||||
fracData.NTG = NTG;
|
fracData.NTG = NTG;
|
||||||
fracData.skinFactor = skinfactor;
|
fracData.skinFactor = skinfactor;
|
||||||
|
|
||||||
//only keep fracData if transmissibility is non-zero
|
fracDataVec.push_back(fracData);
|
||||||
if (transmissibility > 0)
|
|
||||||
{
|
|
||||||
fracDataVec.push_back(fracData);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user