From 0bedc4db32dbe3e0892ef1d655812de31c918b5b Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Mon, 1 Jul 2024 14:13:14 +0200 Subject: [PATCH] changed: move the VtkBlackoilModule parameters to Opm::Parameters --- opm/models/io/vtkblackoilmodule.hh | 130 ++++++++++++++++++----------- 1 file changed, 81 insertions(+), 49 deletions(-) diff --git a/opm/models/io/vtkblackoilmodule.hh b/opm/models/io/vtkblackoilmodule.hh index 0e7d9d761..75ed870cd 100644 --- a/opm/models/io/vtkblackoilmodule.hh +++ b/opm/models/io/vtkblackoilmodule.hh @@ -41,63 +41,95 @@ #include #include -namespace Opm::Properties { - -namespace TTag { +namespace Opm::Properties::TTag { // create new type tag for the VTK multi-phase output struct VtkBlackOil {}; -} // namespace TTag +} // namespace Opm::Properties::TTag + +namespace Opm::Parameters { // create the property tags needed for the multi phase module template -struct VtkWriteGasDissolutionFactor { using type = UndefinedProperty; }; +struct VtkWriteGasDissolutionFactor { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteOilVaporizationFactor { using type = UndefinedProperty; }; +struct VtkWriteOilVaporizationFactor { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteOilFormationVolumeFactor { using type = UndefinedProperty; }; +struct VtkWriteOilFormationVolumeFactor { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteGasFormationVolumeFactor { using type = UndefinedProperty; }; +struct VtkWriteGasFormationVolumeFactor { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteWaterFormationVolumeFactor { using type = UndefinedProperty; }; +struct VtkWriteWaterFormationVolumeFactor { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteOilSaturationPressure { using type = UndefinedProperty; }; +struct VtkWriteOilSaturationPressure { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteGasSaturationPressure { using type = UndefinedProperty; }; +struct VtkWriteGasSaturationPressure { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteSaturationRatios { using type = UndefinedProperty; }; +struct VtkWriteSaturationRatios { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteSaturatedOilGasDissolutionFactor { using type = UndefinedProperty; }; +struct VtkWriteSaturatedOilGasDissolutionFactor { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteSaturatedGasOilVaporizationFactor { using type = UndefinedProperty; }; +struct VtkWriteSaturatedGasOilVaporizationFactor { using type = Properties::UndefinedProperty; }; + template -struct VtkWritePrimaryVarsMeaning { using type = UndefinedProperty; }; +struct VtkWritePrimaryVarsMeaning { using type = Properties::UndefinedProperty; }; // set default values for what quantities to output template -struct VtkWriteGasDissolutionFactor { static constexpr bool value = false; }; +struct VtkWriteGasDissolutionFactor +{ static constexpr bool value = false; }; + template -struct VtkWriteOilVaporizationFactor { static constexpr bool value = false; }; +struct VtkWriteOilVaporizationFactor +{ static constexpr bool value = false; }; + template -struct VtkWriteOilFormationVolumeFactor { static constexpr bool value = false; }; +struct VtkWriteOilFormationVolumeFactor +{ static constexpr bool value = false; }; + template -struct VtkWriteGasFormationVolumeFactor { static constexpr bool value = false; }; +struct VtkWriteGasFormationVolumeFactor +{ static constexpr bool value = false; }; + template -struct VtkWriteWaterFormationVolumeFactor { static constexpr bool value = false; }; +struct VtkWriteWaterFormationVolumeFactor +{ static constexpr bool value = false; }; + template -struct VtkWriteOilSaturationPressure { static constexpr bool value = false; }; +struct VtkWriteOilSaturationPressure +{ static constexpr bool value = false; }; + template -struct VtkWriteGasSaturationPressure { static constexpr bool value = false; }; +struct VtkWriteGasSaturationPressure +{ static constexpr bool value = false; }; + template -struct VtkWriteSaturationRatios { static constexpr bool value = false; }; +struct VtkWriteSaturationRatios +{ static constexpr bool value = false; }; + template -struct VtkWriteSaturatedOilGasDissolutionFactor { static constexpr bool value = false; }; +struct VtkWriteSaturatedOilGasDissolutionFactor +{ static constexpr bool value = false; }; + template -struct VtkWriteSaturatedGasOilVaporizationFactor { static constexpr bool value = false; }; +struct VtkWriteSaturatedGasOilVaporizationFactor +{ static constexpr bool value = false; }; + template -struct VtkWritePrimaryVarsMeaning { static constexpr bool value = false; }; -} // namespace Opm::Properties +struct VtkWritePrimaryVarsMeaning +{ static constexpr bool value = false; }; + +} // namespace Opm::Parameters namespace Opm { /*! @@ -142,36 +174,36 @@ public: */ static void registerParameters() { - Parameters::registerParam + Parameters::registerParam ("Include the gas dissolution factor (R_s) of the observed oil " "in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the oil vaporization factor (R_v) of the observed gas " "in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the oil formation volume factor (B_o) in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the gas formation volume factor (B_g) in the " "VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the water formation volume factor (B_w) in the " "VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the saturation pressure of oil (p_o,sat) in the " "VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the saturation pressure of gas (p_g,sat) in the " "VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the gas dissolution factor (R_s,sat) of gas saturated " "oil in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the oil vaporization factor (R_v,sat) of oil saturated " "gas in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Write the ratio of the actually and maximum dissolved component of " "the mixtures"); - Parameters::registerParam + Parameters::registerParam ("Include how the primary variables should be interpreted to the " "VTK output files"); } @@ -345,67 +377,67 @@ public: private: static bool gasDissolutionFactorOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool oilVaporizationFactorOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool oilFormationVolumeFactorOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool gasFormationVolumeFactorOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool waterFormationVolumeFactorOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool oilSaturationPressureOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool gasSaturationPressureOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool saturatedOilGasDissolutionFactorOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool saturatedGasOilVaporizationFactorOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool saturationRatiosOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool primaryVarsMeaningOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; }