mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Initialize well solvent fraction
The well solvent fraction is set to zero as default.
This commit is contained in:
@@ -97,9 +97,11 @@ namespace Opm
|
|||||||
const Wells* wells)
|
const Wells* wells)
|
||||||
{
|
{
|
||||||
// compute solvent inflow
|
// compute solvent inflow
|
||||||
if (deck_->hasKeyword("WSOLVENT")) {
|
|
||||||
const int nw = wells->number_of_wells;
|
const int nw = wells->number_of_wells;
|
||||||
std::vector<double> perfcells_fraction(wells->well_connpos[nw]);
|
std::vector<double> perfcells_fraction(wells->well_connpos[nw]);
|
||||||
|
std::fill(perfcells_fraction.begin(), perfcells_fraction.end(), 0.0);
|
||||||
|
|
||||||
|
if (deck_->hasKeyword("WSOLVENT")) {
|
||||||
|
|
||||||
size_t currentStep = timer.currentStepNum();
|
size_t currentStep = timer.currentStepNum();
|
||||||
ScheduleConstPtr schedule = BaseType::eclipse_state_->getSchedule();
|
ScheduleConstPtr schedule = BaseType::eclipse_state_->getSchedule();
|
||||||
@@ -135,10 +137,9 @@ namespace Opm
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
well_state.solventFraction() = perfcells_fraction;
|
well_state.solventFraction() = perfcells_fraction;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace Opm
|
} // namespace Opm
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user