addd simple salt/brine implementation

This commit is contained in:
Trine S. Mykkeltvedt
2019-11-07 09:39:42 +01:00
committed by Tor Harald Sandve
parent d20bec2f71
commit 5749615bd8
19 changed files with 355 additions and 15 deletions

View File

@@ -373,6 +373,29 @@ namespace Opm
template<typename TypeTag>
double
WellInterface<TypeTag>::
wsalt() const
{
if (!has_salt) {
return 0.0;
}
auto injectorType = well_ecl_.injectorType();
if (injectorType == Well::InjectorType::WATER) {
WellSaltwaterProperties fprop = well_ecl_.getSaltwaterProperties();
return fprop.m_saltwaterConcentration;
} else {
// Not a water injection well => no salt (?).
return 0.0;
}
}
template<typename TypeTag>
bool
WellInterface<TypeTag>::