mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
addd simple salt/brine implementation
This commit is contained in:
committed by
Tor Harald Sandve
parent
d20bec2f71
commit
5749615bd8
@@ -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>::
|
||||
|
||||
Reference in New Issue
Block a user