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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user