mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -06:00
Use Value<double> for Connection Factor
This commit is contained in:
parent
4f327a5329
commit
f27f75b0b9
@ -166,8 +166,11 @@ void WellsManager::createWellsFromSpecs(std::vector<WellConstPtr>& wells, size_t
|
|||||||
int cell = cgit->second;
|
int cell = cgit->second;
|
||||||
PerfData pd;
|
PerfData pd;
|
||||||
pd.cell = cell;
|
pd.cell = cell;
|
||||||
if (completion->getConnectionTransmissibilityFactor() > 0.0) {
|
{
|
||||||
pd.well_index = completion->getConnectionTransmissibilityFactor();
|
const Value<double>& transmissibilityFactor = completion->getConnectionTransmissibilityFactorAsValueObject();
|
||||||
|
|
||||||
|
if (transmissibilityFactor.hasValue()) {
|
||||||
|
pd.well_index = transmissibilityFactor.getValue();
|
||||||
} else {
|
} else {
|
||||||
double radius = 0.5*completion->getDiameter();
|
double radius = 0.5*completion->getDiameter();
|
||||||
if (radius <= 0.0) {
|
if (radius <= 0.0) {
|
||||||
@ -185,6 +188,7 @@ void WellsManager::createWellsFromSpecs(std::vector<WellConstPtr>& wells, size_t
|
|||||||
completion->getDirection(),
|
completion->getDirection(),
|
||||||
ntg[cell]);
|
ntg[cell]);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
wellperf_data[well_index].push_back(pd);
|
wellperf_data[well_index].push_back(pd);
|
||||||
} else {
|
} else {
|
||||||
if (completion->getState() != WellCompletion::SHUT) {
|
if (completion->getState() != WellCompletion::SHUT) {
|
||||||
|
Loading…
Reference in New Issue
Block a user