fixed: update FoamConfig defaults

Foam cases should run without FOAMOPTS available. That means
we need to default the mobility model to a valid value.

This also adds enum value 'FUNC' and handles setting the default model
if only transport phase is unspecified.
This commit is contained in:
Arne Morten Kvarving
2020-03-05 09:13:03 +01:00
parent c75421a73e
commit c8ff9503a2
2 changed files with 13 additions and 4 deletions

View File

@@ -66,8 +66,8 @@ class FoamConfig
{
public:
enum class MobilityModel {
INVALID,
TAB
TAB,
FUNC
};
FoamConfig() = default;
@@ -94,7 +94,7 @@ public:
private:
std::vector<FoamData> data_;
Phase transport_phase_ = Phase::GAS;
MobilityModel mobility_model_ = MobilityModel::INVALID;
MobilityModel mobility_model_ = MobilityModel::TAB;
};
} // end namespace Opm