Add trivial connection output to silence the output code

In this PR only trivial data is added.
This commit is contained in:
Tor Harald Sandve 2019-01-18 14:57:25 +01:00
parent 3b8ef5f004
commit 22097d4c10
2 changed files with 17 additions and 0 deletions

View File

@ -718,6 +718,10 @@ public:
refDepth_ = dofPos[2];
}
int numConnections() const {
return dofVariables_.size();
}
/*!
* \brief Finalize the specification of the borehole.
*/

View File

@ -555,6 +555,19 @@ public:
wellOut.rates.set( rt::wat, ebosWell->surfaceRate(waterPhaseIdx) );
wellOut.rates.set( rt::oil, ebosWell->surfaceRate(oilPhaseIdx) );
wellOut.rates.set( rt::gas, ebosWell->surfaceRate(gasPhaseIdx) );
const int numConnections = ebosWell->numConnections();
wellOut.connections.resize(numConnections);
for( int i = 0; i < numConnections; ++i ) {
auto& connection = wellOut.connections[ i ];
connection.index = 0;
connection.pressure = 0.0;
connection.reservoir_rate = 0.0;
connection.rates.set( rt::wat, 0.0 );
connection.rates.set( rt::oil, 0.0 );
connection.rates.set( rt::gas, 0.0 );
}
}
return wellDat;