Merge pull request #4973 from daavid00/enabledisgaswatvap

Enabling disGas and watVap at compile time for gasWaterBrine systems
This commit is contained in:
Tor Harald Sandve
2023-11-13 15:01:38 +01:00
committed by GitHub
11 changed files with 21 additions and 13 deletions
+2 -2
View File
@@ -78,7 +78,7 @@ class EclEquilInitializer
enum { enableEnergy = getPropValue<TypeTag, Properties::EnableEnergy>() }; enum { enableEnergy = getPropValue<TypeTag, Properties::EnableEnergy>() };
enum { enableDissolution = Indices::compositionSwitchIdx >= 0 }; enum { enableDissolution = Indices::compositionSwitchIdx >= 0 };
enum { enableBrine = getPropValue<TypeTag, Properties::EnableBrine>() }; enum { enableBrine = getPropValue<TypeTag, Properties::EnableBrine>() };
enum { enableEvaporation = getPropValue<TypeTag, Properties::EnableEvaporation>() }; enum { enableVapwat = getPropValue<TypeTag, Properties::EnableVapwat>() };
enum { enableSaltPrecipitation = getPropValue<TypeTag, Properties::EnableSaltPrecipitation>() }; enum { enableSaltPrecipitation = getPropValue<TypeTag, Properties::EnableSaltPrecipitation>() };
enum { has_disgas_in_water = getPropValue<TypeTag, Properties::EnableDisgasInWater>() }; enum { has_disgas_in_water = getPropValue<TypeTag, Properties::EnableDisgasInWater>() };
@@ -91,7 +91,7 @@ public:
enableTemperature, enableTemperature,
enableEnergy, enableEnergy,
enableDissolution, enableDissolution,
enableEvaporation, enableVapwat,
enableBrine, enableBrine,
enableSaltPrecipitation, enableSaltPrecipitation,
has_disgas_in_water, has_disgas_in_water,
+1 -1
View File
@@ -41,7 +41,7 @@ struct EnableSaltPrecipitation<TypeTag, TTag::EclFlowBrinePrecsaltVapwatProblem>
}; };
template<class TypeTag> template<class TypeTag>
struct EnableEvaporation<TypeTag, TTag::EclFlowBrinePrecsaltVapwatProblem> { struct EnableVapwat<TypeTag, TTag::EclFlowBrinePrecsaltVapwatProblem> {
static constexpr bool value = true; static constexpr bool value = true;
}; };
}} }}
+8
View File
@@ -36,6 +36,14 @@ template<class TypeTag>
struct EnableBrine<TypeTag, TTag::EclFlowGasWaterBrineProblem> { struct EnableBrine<TypeTag, TTag::EclFlowGasWaterBrineProblem> {
static constexpr bool value = true; static constexpr bool value = true;
}; };
template<class TypeTag>
struct EnableDisgasInWater<TypeTag, TTag::EclFlowGasWaterBrineProblem> {
static constexpr bool value = true;
};
template<class TypeTag>
struct EnableVapwat<TypeTag, TTag::EclFlowGasWaterBrineProblem> {
static constexpr bool value = true;
};
//! The indices required by the model //! The indices required by the model
template<class TypeTag> template<class TypeTag>
struct Indices<TypeTag, TTag::EclFlowGasWaterBrineProblem> struct Indices<TypeTag, TTag::EclFlowGasWaterBrineProblem>
+1 -1
View File
@@ -54,7 +54,7 @@ struct EnableDisgasInWater<TypeTag, TTag::EclFlowGasWaterDissolutionProblem> {
}; };
template<class TypeTag> template<class TypeTag>
struct EnableEvaporation<TypeTag, TTag::EclFlowGasWaterDissolutionProblem> { struct EnableVapwat<TypeTag, TTag::EclFlowGasWaterDissolutionProblem> {
static constexpr bool value = true; static constexpr bool value = true;
}; };
@@ -54,7 +54,7 @@ struct EnableDisgasInWater<TypeTag, TTag::EclFlowGasWaterDissolutionDiffuseProbl
}; };
template<class TypeTag> template<class TypeTag>
struct EnableEvaporation<TypeTag, TTag::EclFlowGasWaterDissolutionDiffuseProblem> { struct EnableVapwat<TypeTag, TTag::EclFlowGasWaterDissolutionDiffuseProblem> {
static constexpr bool value = true; static constexpr bool value = true;
}; };
+1 -1
View File
@@ -59,7 +59,7 @@ struct EnableDisgasInWater<TypeTag, TTag::EclFlowGasWaterEnergyProblem> {
}; };
template<class TypeTag> template<class TypeTag>
struct EnableEvaporation<TypeTag, TTag::EclFlowGasWaterEnergyProblem> { struct EnableVapwat<TypeTag, TTag::EclFlowGasWaterEnergyProblem> {
static constexpr bool value = true; static constexpr bool value = true;
}; };
+1 -1
View File
@@ -43,7 +43,7 @@ struct EnableSaltPrecipitation<TypeTag, TTag::EclFlowGasWaterSaltprecEnergyProbl
}; };
template<class TypeTag> template<class TypeTag>
struct EnableEvaporation<TypeTag, TTag::EclFlowGasWaterSaltprecEnergyProblem> { struct EnableVapwat<TypeTag, TTag::EclFlowGasWaterSaltprecEnergyProblem> {
static constexpr bool value = true; static constexpr bool value = true;
}; };
+1 -1
View File
@@ -43,7 +43,7 @@ struct EnableSaltPrecipitation<TypeTag, TTag::EclFlowGasWaterSaltprecVapwatProbl
}; };
template<class TypeTag> template<class TypeTag>
struct EnableEvaporation<TypeTag, TTag::EclFlowGasWaterSaltprecVapwatProblem> { struct EnableVapwat<TypeTag, TTag::EclFlowGasWaterSaltprecVapwatProblem> {
static constexpr bool value = true; static constexpr bool value = true;
}; };
@@ -65,7 +65,7 @@ public:
enum { enableTemperature = getPropValue<TypeTag, Properties::EnableTemperature>() }; enum { enableTemperature = getPropValue<TypeTag, Properties::EnableTemperature>() };
enum { enableEnergy = getPropValue<TypeTag, Properties::EnableEnergy>() }; enum { enableEnergy = getPropValue<TypeTag, Properties::EnableEnergy>() };
enum { enableBrine = getPropValue<TypeTag, Properties::EnableBrine>() }; enum { enableBrine = getPropValue<TypeTag, Properties::EnableBrine>() };
enum { enableEvaporation = getPropValue<TypeTag, Properties::EnableEvaporation>() }; enum { enableVapwat = getPropValue<TypeTag, Properties::EnableVapwat>() };
enum { has_disgas_in_water = getPropValue<TypeTag, Properties::EnableDisgasInWater>() }; enum { has_disgas_in_water = getPropValue<TypeTag, Properties::EnableDisgasInWater>() };
enum { enableSaltPrecipitation = getPropValue<TypeTag, Properties::EnableSaltPrecipitation>() }; enum { enableSaltPrecipitation = getPropValue<TypeTag, Properties::EnableSaltPrecipitation>() };
@@ -80,7 +80,7 @@ public:
enableTemperature, enableTemperature,
enableEnergy, enableEnergy,
BlackoilIndices::gasEnabled, BlackoilIndices::gasEnabled,
enableEvaporation, enableVapwat,
enableBrine, enableBrine,
enableSaltPrecipitation, enableSaltPrecipitation,
has_disgas_in_water, has_disgas_in_water,
+1 -1
View File
@@ -117,7 +117,7 @@ public:
static constexpr bool has_polymermw = getPropValue<TypeTag, Properties::EnablePolymerMW>(); static constexpr bool has_polymermw = getPropValue<TypeTag, Properties::EnablePolymerMW>();
static constexpr bool has_foam = getPropValue<TypeTag, Properties::EnableFoam>(); static constexpr bool has_foam = getPropValue<TypeTag, Properties::EnableFoam>();
static constexpr bool has_brine = getPropValue<TypeTag, Properties::EnableBrine>(); static constexpr bool has_brine = getPropValue<TypeTag, Properties::EnableBrine>();
static constexpr bool has_watVapor = getPropValue<TypeTag, Properties::EnableEvaporation>(); static constexpr bool has_watVapor = getPropValue<TypeTag, Properties::EnableVapwat>();
static constexpr bool has_disgas_in_water = getPropValue<TypeTag, Properties::EnableDisgasInWater>(); static constexpr bool has_disgas_in_water = getPropValue<TypeTag, Properties::EnableDisgasInWater>();
static constexpr bool has_saltPrecip = getPropValue<TypeTag, Properties::EnableSaltPrecipitation>(); static constexpr bool has_saltPrecip = getPropValue<TypeTag, Properties::EnableSaltPrecipitation>();
static constexpr bool has_micp = getPropValue<TypeTag, Properties::EnableMICP>(); static constexpr bool has_micp = getPropValue<TypeTag, Properties::EnableMICP>();
+2 -2
View File
@@ -94,7 +94,7 @@ struct EclWellModel<TypeTag, TTag::TestEquilTypeTag> {
using type = BlackoilWellModel<TypeTag>; using type = BlackoilWellModel<TypeTag>;
}; };
template<class TypeTag> template<class TypeTag>
struct EnableEvaporation<TypeTag, TTag::TestEquilTypeTag> { struct EnableVapwat<TypeTag, TTag::TestEquilTypeTag> {
static constexpr bool value = true; static constexpr bool value = true;
}; };
template<class TypeTag> template<class TypeTag>
@@ -102,7 +102,7 @@ struct EclWellModel<TypeTag, TTag::TestEquilVapwatTypeTag> {
using type = BlackoilWellModel<TypeTag>; using type = BlackoilWellModel<TypeTag>;
}; };
template<class TypeTag> template<class TypeTag>
struct EnableEvaporation<TypeTag, TTag::TestEquilVapwatTypeTag> { struct EnableVapwat<TypeTag, TTag::TestEquilVapwatTypeTag> {
static constexpr bool value = true; static constexpr bool value = true;
}; };
} // namespace Opm::Properties } // namespace Opm::Properties