diff --git a/examples/problems/co2ptflashproblem.hh b/examples/problems/co2ptflashproblem.hh index f3ba95765..6fadfcd9b 100644 --- a/examples/problems/co2ptflashproblem.hh +++ b/examples/problems/co2ptflashproblem.hh @@ -174,42 +174,6 @@ struct LinearSolverAbsTolerance { static constexpr type value = 0.; }; -// output -template -struct VtkWriteFilterVelocities { - static constexpr bool value = true; -}; - -template -struct VtkWritePotentialGradients { - static constexpr bool value = true; -}; - -template -struct VtkWriteTotalMassFractions { - static constexpr bool value = true; -}; - -template -struct VtkWriteTotalMoleFractions { - static constexpr bool value = true; -}; - -template -struct VtkWriteFugacityCoeffs { - static constexpr bool value = true; -}; - -template -struct VtkWriteLiquidMoleFractions { - static constexpr bool value = true; -}; - -template -struct VtkWriteEquilibriumConstants { - static constexpr bool value = true; -}; - // this is kinds of telling the report step length template struct EpisodeLength { @@ -309,6 +273,34 @@ template struct NewtonMaxIterations { static constexpr int value = 30; }; +template +struct VtkWriteEquilibriumConstants +{ static constexpr bool value = true; }; + +template +struct VtkWriteFilterVelocities +{ static constexpr bool value = true; }; + +template +struct VtkWriteFugacityCoeffs +{ static constexpr bool value = true; }; + +template +struct VtkWriteLiquidMoleFractions +{ static constexpr bool value = true; }; + +template +struct VtkWritePotentialGradients +{ static constexpr bool value = true; }; + +template +struct VtkWriteTotalMassFractions +{ static constexpr bool value = true; }; + +template +struct VtkWriteTotalMoleFractions +{ static constexpr bool value = true; }; + } // namespace Opm::Parameters namespace Opm { diff --git a/examples/problems/lensproblem.hh b/examples/problems/lensproblem.hh index 65ba80862..d0a75925a 100644 --- a/examples/problems/lensproblem.hh +++ b/examples/problems/lensproblem.hh @@ -175,10 +175,6 @@ struct LensUpperRightZ static constexpr type value = 1.0; }; -// By default, include the intrinsic permeability tensor to the VTK output files -template -struct VtkWriteIntrinsicPermeabilities { static constexpr bool value = true; }; - } // namespace Opm::Properties namespace Opm::Parameters { @@ -247,6 +243,11 @@ template struct NewtonWriteConvergence { static constexpr bool value = false; }; +// By default, include the intrinsic permeability tensor to the VTK output files +template +struct VtkWriteIntrinsicPermeabilities +{ static constexpr bool value = true; }; + } // namespace Opm::Parameters namespace Opm { diff --git a/examples/problems/outflowproblem.hh b/examples/problems/outflowproblem.hh index 665a402fc..b1a355ab6 100644 --- a/examples/problems/outflowproblem.hh +++ b/examples/problems/outflowproblem.hh @@ -76,10 +76,6 @@ public: template struct EnableGravity { static constexpr bool value = false; }; -// Also write mass fractions to the output -template -struct VtkWriteMassFractions { static constexpr bool value = true; }; - } // namespace Opm::Properties namespace Opm::Parameters { @@ -105,6 +101,11 @@ struct InitialTimeStepSize static constexpr type value = 1; }; +// Also write mass fractions to the output +template +struct VtkWriteMassFractions +{ static constexpr bool value = true; }; + } // namespac Opm::Parameters namespace Opm { diff --git a/examples/problems/powerinjectionproblem.hh b/examples/problems/powerinjectionproblem.hh index 24aa69364..18a639b71 100644 --- a/examples/problems/powerinjectionproblem.hh +++ b/examples/problems/powerinjectionproblem.hh @@ -119,10 +119,6 @@ public: using type = Opm::EffToAbsLaw; }; -// Write out the filter velocities for this problem -template -struct VtkWriteFilterVelocities { static constexpr bool value = true; }; - // Disable gravity template struct EnableGravity { static constexpr bool value = false; }; @@ -181,6 +177,11 @@ struct InitialTimeStepSize static constexpr type value = 1e-3; }; +// Write out the filter velocities for this problem +template +struct VtkWriteFilterVelocities +{ static constexpr bool value = true; }; + } // namespace Opm::Parameters namespace Opm { diff --git a/opm/models/immiscible/immisciblemodel.hh b/opm/models/immiscible/immisciblemodel.hh index ab414342b..450c3b12f 100644 --- a/opm/models/immiscible/immisciblemodel.hh +++ b/opm/models/immiscible/immisciblemodel.hh @@ -129,15 +129,6 @@ public: using type = Opm::LiquidPhase >; }; -// disable output of a few quantities which make sense in a -// multi-phase but not in a single-phase context -template -struct VtkWriteSaturations { static constexpr bool value = false; }; -template -struct VtkWriteMobilities { static constexpr bool value = false; }; -template -struct VtkWriteRelativePermeabilities { static constexpr bool value = false; }; - ///////////////////// // set slightly different properties for the two-phase case ///////////////////// @@ -173,9 +164,26 @@ public: using type = Opm::TwoPhaseImmiscibleFluidSystem; }; - } // namespace Opm::Properties +namespace Opm::Parameters { + +// disable output of a few quantities which make sense in a +// multi-phase but not in a single-phase context +template +struct VtkWriteSaturations +{ static constexpr bool value = false; }; + +template +struct VtkWriteMobilities +{ static constexpr bool value = false; }; + +template +struct VtkWriteRelativePermeabilities +{ static constexpr bool value = false; }; + +} // namespace Opm::Parameters + namespace Opm { /*! diff --git a/opm/models/io/baseoutputmodule.hh b/opm/models/io/baseoutputmodule.hh index 81ca8fe2e..f1d93924d 100644 --- a/opm/models/io/baseoutputmodule.hh +++ b/opm/models/io/baseoutputmodule.hh @@ -27,24 +27,24 @@ #ifndef EWOMS_BASE_OUTPUT_MODULE_HH #define EWOMS_BASE_OUTPUT_MODULE_HH -#include "baseoutputwriter.hh" - -#include -#include -#include -#include -#include - -#include #include +#include + +#include + +#include + +#include + +#include +#include +#include + #include +#include #include #include -#include -#include - -#include namespace Opm::Properties { diff --git a/opm/models/io/vtkblackoilenergymodule.hh b/opm/models/io/vtkblackoilenergymodule.hh index a3ae4edcb..0ce68f4ad 100644 --- a/opm/models/io/vtkblackoilenergymodule.hh +++ b/opm/models/io/vtkblackoilenergymodule.hh @@ -27,49 +27,60 @@ #ifndef EWOMS_VTK_BLACK_OIL_ENERGY_MODULE_HH #define EWOMS_VTK_BLACK_OIL_ENERGY_MODULE_HH -#include "vtkmultiwriter.hh" -#include "baseoutputmodule.hh" - #include #include -#include - -#include -#include #include -namespace Opm::Properties { +#include -namespace TTag { +#include +#include + +#include +#include + +namespace Opm::Properties::TTag { // create new type tag for the VTK multi-phase output struct VtkBlackOilEnergy {}; -} // namespace TTag +} // namespace Opm::Properties::TTag + +namespace Opm::Parameters { // create the property tags needed for the energy module template -struct VtkWriteRockInternalEnergy { using type = UndefinedProperty; }; +struct VtkWriteRockInternalEnergy { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteTotalThermalConductivity { using type = UndefinedProperty; }; +struct VtkWriteTotalThermalConductivity { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteFluidInternalEnergies { using type = UndefinedProperty; }; +struct VtkWriteFluidInternalEnergies { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteFluidEnthalpies { using type = UndefinedProperty; }; +struct VtkWriteFluidEnthalpies { using type = Properties::UndefinedProperty; }; // set default values for what quantities to output template -struct VtkWriteRockInternalEnergy { static constexpr bool value = true; }; -template -struct VtkWriteTotalThermalConductivity { static constexpr bool value = true; }; -template -struct VtkWriteFluidInternalEnergies { static constexpr bool value = true; }; -template -struct VtkWriteFluidEnthalpies { static constexpr bool value = true; }; +struct VtkWriteRockInternalEnergy +{ static constexpr bool value = true; }; -} // namespace Opm::Properties +template +struct VtkWriteTotalThermalConductivity +{ static constexpr bool value = true; }; + +template +struct VtkWriteFluidInternalEnergies +{ static constexpr bool value = true; }; + +template +struct VtkWriteFluidEnthalpies +{ static constexpr bool value = true; }; + +} // namespace Opm::Parameters namespace Opm { /*! @@ -112,15 +123,15 @@ public: if (!enableEnergy) return; - Parameters::registerParam + Parameters::registerParam ("Include the volumetric internal energy of rock " "in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the total thermal conductivity of the medium and the fluids " "in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the internal energies of the fluids in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the enthalpies of the fluids in the VTK output files"); } @@ -212,25 +223,25 @@ public: private: static bool rockInternalEnergyOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool totalThermalConductivityOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool fluidInternalEnergiesOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool fluidEnthalpiesOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } diff --git a/opm/models/io/vtkblackoilmicpmodule.hh b/opm/models/io/vtkblackoilmicpmodule.hh index a557ac5db..ebb95e54a 100644 --- a/opm/models/io/vtkblackoilmicpmodule.hh +++ b/opm/models/io/vtkblackoilmicpmodule.hh @@ -27,53 +27,67 @@ #ifndef EWOMS_VTK_BLACK_OIL_MICP_MODULE_HH #define EWOMS_VTK_BLACK_OIL_MICP_MODULE_HH -#include "vtkmultiwriter.hh" -#include "baseoutputmodule.hh" - #include #include -#include - -#include -#include #include -namespace Opm::Properties { +#include -namespace TTag { +#include +#include + +#include +#include + +namespace Opm::Properties::TTag { // create new type tag for the VTK multi-phase output struct VtkBlackOilMICP {}; -} // namespace TTag +} // namespace Opm::Properties::TTag + +namespace Opm::Parameters { // create the property tags needed for the MICP output module template -struct VtkWriteMicrobialConcentration { using type = UndefinedProperty; }; +struct VtkWriteMicrobialConcentration { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteOxygenConcentration { using type = UndefinedProperty; }; +struct VtkWriteOxygenConcentration { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteUreaConcentration { using type = UndefinedProperty; }; +struct VtkWriteUreaConcentration { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteBiofilmConcentration { using type = UndefinedProperty; }; +struct VtkWriteBiofilmConcentration { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteCalciteConcentration { using type = UndefinedProperty; }; +struct VtkWriteCalciteConcentration { using type = Properties::UndefinedProperty; }; // set default values for what quantities to output template -struct VtkWriteMicrobialConcentration { static constexpr bool value = true; }; -template -struct VtkWriteOxygenConcentration { static constexpr bool value = true; }; -template -struct VtkWriteUreaConcentration { static constexpr bool value = true; }; -template -struct VtkWriteBiofilmConcentration { static constexpr bool value = true; }; -template -struct VtkWriteCalciteConcentration { static constexpr bool value = true; }; +struct VtkWriteMicrobialConcentration +{ static constexpr bool value = true; }; -} // namespace Opm::Properties +template +struct VtkWriteOxygenConcentration +{ static constexpr bool value = true; }; + +template +struct VtkWriteUreaConcentration +{ static constexpr bool value = true; }; + +template +struct VtkWriteBiofilmConcentration +{ static constexpr bool value = true; }; + +template +struct VtkWriteCalciteConcentration +{ static constexpr bool value = true; }; + +} // namespace Opm::Parameters namespace Opm { /*! @@ -113,18 +127,18 @@ public: if (!enableMICP) return; - Parameters::registerParam + Parameters::registerParam ("Include the concentration of the microbial component in the water phase " "in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the concentration of the oxygen component in the water phase " "in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the concentration of the urea component in the water phase " "in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the biofilm volume fraction in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the calcite volume fraction in the VTK output files"); } @@ -223,31 +237,31 @@ public: private: static bool microbialConcentrationOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool oxygenConcentrationOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool ureaConcentrationOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool biofilmConcentrationOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool calciteConcentrationOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } @@ -257,6 +271,7 @@ private: ScalarBuffer biofilmConcentration_; ScalarBuffer calciteConcentration_; }; + } // namespace Opm #endif 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; } diff --git a/opm/models/io/vtkblackoilpolymermodule.hh b/opm/models/io/vtkblackoilpolymermodule.hh index 0da818967..96024d089 100644 --- a/opm/models/io/vtkblackoilpolymermodule.hh +++ b/opm/models/io/vtkblackoilpolymermodule.hh @@ -27,57 +27,74 @@ #ifndef EWOMS_VTK_BLACK_OIL_POLYMER_MODULE_HH #define EWOMS_VTK_BLACK_OIL_POLYMER_MODULE_HH -#include "vtkmultiwriter.hh" -#include "baseoutputmodule.hh" - #include #include -#include - -#include -#include #include -namespace Opm::Properties { +#include -namespace TTag { +#include +#include + +#include +#include + +namespace Opm::Properties::TTag { // create new type tag for the VTK multi-phase output struct VtkBlackOilPolymer {}; -} // namespace TTag +} // namespace Opm::Properties::TTag + +namespace Opm::Parameters { // create the property tags needed for the polymer output module template -struct VtkWritePolymerConcentration { using type = UndefinedProperty; }; +struct VtkWritePolymerConcentration { using type = Properties::UndefinedProperty; }; + template -struct VtkWritePolymerDeadPoreVolume { using type = UndefinedProperty; }; +struct VtkWritePolymerDeadPoreVolume { using type = Properties::UndefinedProperty; }; + template -struct VtkWritePolymerAdsorption { using type = UndefinedProperty; }; +struct VtkWritePolymerAdsorption { using type = Properties::UndefinedProperty; }; + template -struct VtkWritePolymerRockDensity { using type = UndefinedProperty; }; +struct VtkWritePolymerRockDensity { using type = Properties::UndefinedProperty; }; + template -struct VtkWritePolymerViscosityCorrection { using type = UndefinedProperty; }; +struct VtkWritePolymerViscosityCorrection { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteWaterViscosityCorrection { using type = UndefinedProperty; }; +struct VtkWriteWaterViscosityCorrection { using type = Properties::UndefinedProperty; }; // set default values for what quantities to output template -struct VtkWritePolymerConcentration { static constexpr bool value = true; }; -template -struct VtkWritePolymerDeadPoreVolume { static constexpr bool value = true; }; -template -struct VtkWritePolymerViscosityCorrection { static constexpr bool value = true; }; -template -struct VtkWriteWaterViscosityCorrection { static constexpr bool value = true; }; -template -struct VtkWritePolymerRockDensity { static constexpr bool value = true; }; -template -struct VtkWritePolymerAdsorption { static constexpr bool value = true; }; +struct VtkWritePolymerConcentration +{ static constexpr bool value = true; }; -} // namespace Opm::Properties +template +struct VtkWritePolymerDeadPoreVolume +{ static constexpr bool value = true; }; + +template +struct VtkWritePolymerViscosityCorrection +{ static constexpr bool value = true; }; + +template +struct VtkWriteWaterViscosityCorrection +{ static constexpr bool value = true; }; + +template +struct VtkWritePolymerRockDensity +{ static constexpr bool value = true; }; + +template +struct VtkWritePolymerAdsorption +{ static constexpr bool value = true; }; + +} // namespace Opm::Parameters namespace Opm { /*! @@ -117,22 +134,22 @@ public: if (!enablePolymer) return; - Parameters::registerParam + Parameters::registerParam ("Include the concentration of the polymer component in the water phase " "in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the fraction of the \"dead\" pore volume " "in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the amount of already adsorbed polymer component" "in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the adsorption rate of the polymer component" "in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the viscosity correction of the polymer component " "in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the viscosity correction of the water component " "due to polymers in the VTK output files"); } @@ -239,37 +256,37 @@ public: private: static bool polymerConcentrationOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool polymerDeadPoreVolumeOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool polymerRockDensityOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool polymerAdsorptionOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool polymerViscosityCorrectionOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool waterViscosityCorrectionOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } diff --git a/opm/models/io/vtkblackoilsolventmodule.hh b/opm/models/io/vtkblackoilsolventmodule.hh index affc1bc3a..6707c2ddc 100644 --- a/opm/models/io/vtkblackoilsolventmodule.hh +++ b/opm/models/io/vtkblackoilsolventmodule.hh @@ -27,51 +27,65 @@ #ifndef EWOMS_VTK_BLACK_OIL_SOLVENT_MODULE_HH #define EWOMS_VTK_BLACK_OIL_SOLVENT_MODULE_HH -#include "vtkmultiwriter.hh" -#include "baseoutputmodule.hh" - #include #include -#include - -#include -#include #include -namespace Opm::Properties { +#include -namespace TTag { +#include +#include + +#include +#include + +namespace Opm::Properties::TTag { // create new type tag for the VTK multi-phase output struct VtkBlackOilSolvent {}; -} // namespace TTag +} // namespace Opm::Properties::TTag + +namespace Opm::Parameters { // create the property tags needed for the solvent output module template -struct VtkWriteSolventSaturation { using type = UndefinedProperty; }; +struct VtkWriteSolventSaturation { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteSolventRsw { using type = UndefinedProperty; }; +struct VtkWriteSolventRsw { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteSolventDensity { using type = UndefinedProperty; }; +struct VtkWriteSolventDensity { using type = Properties::UndefinedProperty; }; template -struct VtkWriteSolventViscosity { using type = UndefinedProperty; }; + +struct VtkWriteSolventViscosity { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteSolventMobility { using type = UndefinedProperty; }; +struct VtkWriteSolventMobility { using type = Properties::UndefinedProperty; }; // set default values for what quantities to output template -struct VtkWriteSolventSaturation { static constexpr bool value = true; }; +struct VtkWriteSolventSaturation +{ static constexpr bool value = true; }; + template -struct VtkWriteSolventRsw { static constexpr bool value = true; }; +struct VtkWriteSolventRsw +{ static constexpr bool value = true; }; + template -struct VtkWriteSolventDensity { static constexpr bool value = true; }; +struct VtkWriteSolventDensity +{ static constexpr bool value = true; }; + template -struct VtkWriteSolventViscosity { static constexpr bool value = true; }; +struct VtkWriteSolventViscosity +{ static constexpr bool value = true; }; + template -struct VtkWriteSolventMobility { static constexpr bool value = true; }; +struct VtkWriteSolventMobility +{ static constexpr bool value = true; }; } // namespace Opm::Properties @@ -113,19 +127,19 @@ public: if (!enableSolvent) return; - Parameters::registerParam + Parameters::registerParam ("Include the \"saturation\" of the solvent component " "in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the \"dissolved volume in water\" of the solvent component " "in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the \"density\" of the solvent component " "in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the \"viscosity\" of the solvent component " "in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the \"mobility\" of the solvent component " "in the VTK output files"); } @@ -224,31 +238,31 @@ public: private: static bool solventSaturationOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool solventRswOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool solventDensityOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool solventViscosityOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool solventMobilityOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } @@ -258,6 +272,7 @@ private: ScalarBuffer solventViscosity_; ScalarBuffer solventMobility_; }; + } // namespace Opm #endif diff --git a/opm/models/io/vtkcompositionmodule.hh b/opm/models/io/vtkcompositionmodule.hh index 1b8102b64..ce92e7913 100644 --- a/opm/models/io/vtkcompositionmodule.hh +++ b/opm/models/io/vtkcompositionmodule.hh @@ -27,56 +27,75 @@ #ifndef EWOMS_VTK_COMPOSITION_MODULE_HH #define EWOMS_VTK_COMPOSITION_MODULE_HH -#include "vtkmultiwriter.hh" -#include "baseoutputmodule.hh" - #include #include -#include +#include +#include + #include +#include -namespace Opm::Properties { - -namespace TTag { +namespace Opm::Properties::TTag { // create new type tag for the VTK composition output struct VtkComposition {}; -} // namespace TTag +} // namespace Opm::Properties::TTag + +namespace Opm::Parameters { // create the property tags needed for the composition module template -struct VtkWriteMassFractions { using type = UndefinedProperty; }; +struct VtkWriteMassFractions { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteMoleFractions { using type = UndefinedProperty; }; +struct VtkWriteMoleFractions { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteTotalMassFractions { using type = UndefinedProperty; }; +struct VtkWriteTotalMassFractions { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteTotalMoleFractions { using type = UndefinedProperty; }; +struct VtkWriteTotalMoleFractions { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteMolarities { using type = UndefinedProperty; }; +struct VtkWriteMolarities { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteFugacities { using type = UndefinedProperty; }; +struct VtkWriteFugacities { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteFugacityCoeffs { using type = UndefinedProperty; }; +struct VtkWriteFugacityCoeffs { using type = Properties::UndefinedProperty; }; // set default values for what quantities to output template -struct VtkWriteMassFractions { static constexpr bool value = false; }; +struct VtkWriteMassFractions +{ static constexpr bool value = false; }; + template -struct VtkWriteMoleFractions { static constexpr bool value = true; }; +struct VtkWriteMoleFractions +{ static constexpr bool value = true; }; + template -struct VtkWriteTotalMassFractions { static constexpr bool value = false; }; +struct VtkWriteTotalMassFractions +{ static constexpr bool value = false; }; + template -struct VtkWriteTotalMoleFractions { static constexpr bool value = false; }; +struct VtkWriteTotalMoleFractions +{ static constexpr bool value = false; }; + template -struct VtkWriteMolarities { static constexpr bool value = false; }; +struct VtkWriteMolarities +{ static constexpr bool value = false; }; + template -struct VtkWriteFugacities { static constexpr bool value = false; }; +struct VtkWriteFugacities +{ static constexpr bool value = false; }; + template -struct VtkWriteFugacityCoeffs { static constexpr bool value = false; }; +struct VtkWriteFugacityCoeffs +{ static constexpr bool value = false; }; } // namespace Opm::Properties @@ -125,19 +144,19 @@ public: */ static void registerParameters() { - Parameters::registerParam + Parameters::registerParam ("Include mass fractions in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include mole fractions in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include total mass fractions in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include total mole fractions in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include component molarities in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include component fugacities in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include component fugacity coefficients in the VTK output files"); } @@ -258,43 +277,43 @@ public: private: static bool massFracOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool moleFracOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool totalMassFracOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool totalMoleFracOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool molarityOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool fugacityOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool fugacityCoeffOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } diff --git a/opm/models/io/vtkdiffusionmodule.hh b/opm/models/io/vtkdiffusionmodule.hh index a9f94a9c3..0515e285c 100644 --- a/opm/models/io/vtkdiffusionmodule.hh +++ b/opm/models/io/vtkdiffusionmodule.hh @@ -39,33 +39,40 @@ #include #include -namespace Opm::Properties { - -namespace TTag { +namespace Opm::Properties::TTag { // create new type tag for the VTK output of the quantities for molecular // diffusion struct VtkDiffusion {}; -} // namespace TTag +} // namespace Opm::Properties::TTag + +namespace Opm::Parameters { // create the property tags needed for the diffusion module template -struct VtkWriteTortuosities { using type = UndefinedProperty; }; +struct VtkWriteTortuosities { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteDiffusionCoefficients { using type = UndefinedProperty; }; +struct VtkWriteDiffusionCoefficients { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteEffectiveDiffusionCoefficients { using type = UndefinedProperty; }; +struct VtkWriteEffectiveDiffusionCoefficients { using type = Properties::UndefinedProperty; }; // set default values for what quantities to output template -struct VtkWriteTortuosities { static constexpr bool value = false; }; -template -struct VtkWriteDiffusionCoefficients { static constexpr bool value = false; }; -template -struct VtkWriteEffectiveDiffusionCoefficients { static constexpr bool value = false; }; +struct VtkWriteTortuosities +{ static constexpr bool value = false; }; -} // namespace Opm::Properties +template +struct VtkWriteDiffusionCoefficients +{ static constexpr bool value = false; }; + +template +struct VtkWriteEffectiveDiffusionCoefficients +{ static constexpr bool value = false; }; + +} // namespace Opm::Parameters namespace Opm { /*! @@ -110,12 +117,12 @@ public: */ static void registerParameters() { - Parameters::registerParam + Parameters::registerParam ("Include the tortuosity for each phase in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the molecular diffusion coefficients in " "the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the effective molecular diffusion " "coefficients the medium in the VTK output files"); } @@ -186,19 +193,19 @@ public: private: static bool tortuosityOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool diffusionCoefficientOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool effectiveDiffusionCoefficientOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } diff --git a/opm/models/io/vtkdiscretefracturemodule.hh b/opm/models/io/vtkdiscretefracturemodule.hh index 9285e1f8b..1d8f2e5a9 100644 --- a/opm/models/io/vtkdiscretefracturemodule.hh +++ b/opm/models/io/vtkdiscretefracturemodule.hh @@ -27,62 +27,81 @@ #ifndef EWOMS_VTK_DISCRETE_FRACTURE_MODULE_HH #define EWOMS_VTK_DISCRETE_FRACTURE_MODULE_HH -#include "vtkmultiwriter.hh" -#include "baseoutputmodule.hh" - #include +#include + #include +#include +#include + #include #include -#include - #include -namespace Opm::Properties { - -namespace TTag { +namespace Opm::Properties::TTag { // create new type tag for the VTK multi-phase output struct VtkDiscreteFracture {}; -} // namespace TTag +} // namespace Opm::Properties::TTag + +namespace Opm::Parameters { // create the property tags needed for the multi phase module template -struct VtkWriteFractureSaturations { using type = UndefinedProperty; }; +struct VtkWriteFractureSaturations { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteFractureMobilities { using type = UndefinedProperty; }; +struct VtkWriteFractureMobilities { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteFractureRelativePermeabilities { using type = UndefinedProperty; }; +struct VtkWriteFractureRelativePermeabilities { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteFracturePorosity { using type = UndefinedProperty; }; +struct VtkWriteFracturePorosity { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteFractureIntrinsicPermeabilities { using type = UndefinedProperty; }; +struct VtkWriteFractureIntrinsicPermeabilities { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteFractureFilterVelocities { using type = UndefinedProperty; }; +struct VtkWriteFractureFilterVelocities { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteFractureVolumeFraction { using type = UndefinedProperty; }; +struct VtkWriteFractureVolumeFraction { using type = Properties::UndefinedProperty; }; // set default values for what quantities to output template -struct VtkWriteFractureSaturations { static constexpr bool value = true; }; -template -struct VtkWriteFractureMobilities { static constexpr bool value = false; }; -template -struct VtkWriteFractureRelativePermeabilities { static constexpr bool value = true; }; -template -struct VtkWriteFracturePorosity { static constexpr bool value = true; }; -template -struct VtkWriteFractureIntrinsicPermeabilities { static constexpr bool value = false; }; -template -struct VtkWriteFractureFilterVelocities { static constexpr bool value = false; }; -template -struct VtkWriteFractureVolumeFraction { static constexpr bool value = true; }; +struct VtkWriteFractureSaturations +{ static constexpr bool value = true; }; -} // namespace Opm::Properties +template +struct VtkWriteFractureMobilities +{ static constexpr bool value = false; }; + +template +struct VtkWriteFractureRelativePermeabilities +{ static constexpr bool value = true; }; + +template +struct VtkWriteFracturePorosity +{ static constexpr bool value = true; }; + +template +struct VtkWriteFractureIntrinsicPermeabilities +{ static constexpr bool value = false; }; + +template +struct VtkWriteFractureFilterVelocities +{ static constexpr bool value = false; }; + +template +struct VtkWriteFractureVolumeFraction +{ static constexpr bool value = true; }; + +} // namespace Opm::Parameters namespace Opm { /*! @@ -134,20 +153,20 @@ public: */ static void registerParameters() { - Parameters::registerParam + Parameters::registerParam ("Include the phase saturations in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the phase mobilities in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the phase relative permeabilities in the " "VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the porosity in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the intrinsic permeability in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include in the filter velocities of the phases in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Add the fraction of the total volume which is " "occupied by fractures in the VTK output"); } @@ -319,43 +338,43 @@ public: private: static bool saturationOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool mobilityOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool relativePermeabilityOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool porosityOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool intrinsicPermeabilityOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool volumeFractionOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool velocityOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } diff --git a/opm/models/io/vtkenergymodule.hh b/opm/models/io/vtkenergymodule.hh index 01379406b..868dc873d 100644 --- a/opm/models/io/vtkenergymodule.hh +++ b/opm/models/io/vtkenergymodule.hh @@ -27,44 +27,56 @@ #ifndef EWOMS_VTK_ENERGY_MODULE_HH #define EWOMS_VTK_ENERGY_MODULE_HH -#include "vtkmultiwriter.hh" -#include "baseoutputmodule.hh" +#include + +#include +#include #include #include #include -#include - -namespace Opm::Properties { - -namespace TTag { +namespace Opm::Properties::TTag { // create new type tag for the VTK energy output struct VtkEnergy {}; -} // namespace TTag +} // namespace Opm::Properties::TTag + + +namespace Opm::Parameters { // create the property tags needed for the energy module template -struct VtkWriteSolidInternalEnergy { using type = UndefinedProperty; }; +struct VtkWriteInternalEnergies { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteThermalConductivity { using type = UndefinedProperty; }; +struct VtkWriteEnthalpies { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteInternalEnergies { using type = UndefinedProperty; }; +struct VtkWriteSolidInternalEnergy { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteEnthalpies { using type = UndefinedProperty; }; +struct VtkWriteThermalConductivity { using type = Properties::UndefinedProperty; }; + // set default values for what quantities to output template -struct VtkWriteSolidInternalEnergy { static constexpr bool value = false; }; +struct VtkWriteSolidInternalEnergy +{ static constexpr bool value = false; }; + template -struct VtkWriteThermalConductivity { static constexpr bool value = false; }; +struct VtkWriteThermalConductivity +{ static constexpr bool value = false; }; + template -struct VtkWriteInternalEnergies { static constexpr bool value = false; }; +struct VtkWriteInternalEnergies +{ static constexpr bool value = false; }; + template -struct VtkWriteEnthalpies { static constexpr bool value = false; }; +struct VtkWriteEnthalpies +{ static constexpr bool value = false; }; } // namespace Opm::Properties @@ -113,16 +125,16 @@ public: */ static void registerParameters() { - Parameters::registerParam + Parameters::registerParam ("Include the volumetric internal energy of solid" "matrix in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the total thermal conductivity of the" "medium in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the specific enthalpy of the phases in " "the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the specific internal energy of the " "phases in the VTK output files"); } @@ -196,25 +208,25 @@ public: private: static bool solidInternalEnergyOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool thermalConductivityOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool enthalpyOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool internalEnergyOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } diff --git a/opm/models/io/vtkmultiphasemodule.hh b/opm/models/io/vtkmultiphasemodule.hh index a8b947769..5417b19e4 100644 --- a/opm/models/io/vtkmultiphasemodule.hh +++ b/opm/models/io/vtkmultiphasemodule.hh @@ -42,66 +42,100 @@ #include -namespace Opm::Properties { - -namespace TTag { +namespace Opm::Properties::TTag { // create new type tag for the VTK multi-phase output struct VtkMultiPhase {}; -} // namespace TTag +} // namespace Opm::Properties::TTag + +namespace Opm::Parameters { // create the property tags needed for the multi phase module template -struct VtkWriteExtrusionFactor { using type = UndefinedProperty; }; +struct VtkWriteExtrusionFactor { using type = Properties::UndefinedProperty; }; + template -struct VtkWritePressures { using type = UndefinedProperty; }; +struct VtkWritePressures { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteDensities { using type = UndefinedProperty; }; +struct VtkWriteDensities { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteSaturations { using type = UndefinedProperty; }; +struct VtkWriteSaturations { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteMobilities { using type = UndefinedProperty; }; +struct VtkWriteMobilities { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteRelativePermeabilities { using type = UndefinedProperty; }; +struct VtkWriteRelativePermeabilities { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteViscosities { using type = UndefinedProperty; }; +struct VtkWriteViscosities { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteAverageMolarMasses { using type = UndefinedProperty; }; +struct VtkWriteAverageMolarMasses { using type = Properties::UndefinedProperty; }; + template -struct VtkWritePorosity { using type = UndefinedProperty; }; +struct VtkWritePorosity { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteIntrinsicPermeabilities { using type = UndefinedProperty; }; +struct VtkWriteIntrinsicPermeabilities { using type = Properties::UndefinedProperty; }; + template -struct VtkWritePotentialGradients { using type = UndefinedProperty; }; +struct VtkWritePotentialGradients { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteFilterVelocities { using type = UndefinedProperty; }; +struct VtkWriteFilterVelocities { using type = Properties::UndefinedProperty; }; // set default values for what quantities to output template -struct VtkWriteExtrusionFactor { static constexpr bool value = false; }; +struct VtkWriteExtrusionFactor +{ static constexpr bool value = false; }; + template -struct VtkWritePressures { static constexpr bool value = true; }; +struct VtkWritePressures +{ static constexpr bool value = true; }; + template -struct VtkWriteDensities { static constexpr bool value = true; }; +struct VtkWriteDensities +{ static constexpr bool value = true; }; + template -struct VtkWriteSaturations { static constexpr bool value = true; }; +struct VtkWriteSaturations +{ static constexpr bool value = true; }; + template -struct VtkWriteMobilities { static constexpr bool value = false; }; +struct VtkWriteMobilities +{ static constexpr bool value = false; }; + template -struct VtkWriteRelativePermeabilities { static constexpr bool value = true; }; +struct VtkWriteRelativePermeabilities +{ static constexpr bool value = true; }; + template -struct VtkWriteViscosities { static constexpr bool value = false; }; +struct VtkWriteViscosities +{ static constexpr bool value = false; }; + template -struct VtkWriteAverageMolarMasses { static constexpr bool value = false; }; +struct VtkWriteAverageMolarMasses +{ static constexpr bool value = false; }; + template -struct VtkWritePorosity { static constexpr bool value = true; }; +struct VtkWritePorosity +{ static constexpr bool value = true; }; + template -struct VtkWriteIntrinsicPermeabilities { static constexpr bool value = false; }; +struct VtkWriteIntrinsicPermeabilities +{ static constexpr bool value = false; }; + template -struct VtkWritePotentialGradients { static constexpr bool value = false; }; +struct VtkWritePotentialGradients +{ static constexpr bool value = false; }; + template -struct VtkWriteFilterVelocities { static constexpr bool value = false; }; +struct VtkWriteFilterVelocities +{ static constexpr bool value = false; }; } // namespace Opm::Properties @@ -163,29 +197,29 @@ public: */ static void registerParameters() { - Parameters::registerParam + Parameters::registerParam ("Include the extrusion factor of the degrees of freedom into the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the phase pressures in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the phase densities in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the phase saturations in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the phase mobilities in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the phase relative permeabilities in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include component phase viscosities in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the average phase mass in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the porosity in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the intrinsic permeability in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include in the filter velocities of the phases the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the phase pressure potential gradients in the VTK output files"); } @@ -419,73 +453,73 @@ public: private: static bool extrusionFactorOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool pressureOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool densityOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool saturationOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool mobilityOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool relativePermeabilityOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool viscosityOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool averageMolarMassOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool porosityOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool intrinsicPermeabilityOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool velocityOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool potentialGradientOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } diff --git a/opm/models/io/vtkphasepresencemodule.hh b/opm/models/io/vtkphasepresencemodule.hh index a0c4e8dea..9a62eaf4c 100644 --- a/opm/models/io/vtkphasepresencemodule.hh +++ b/opm/models/io/vtkphasepresencemodule.hh @@ -27,31 +27,32 @@ #ifndef EWOMS_VTK_PHASE_PRESENCE_MODULE_HH #define EWOMS_VTK_PHASE_PRESENCE_MODULE_HH -#include "vtkmultiwriter.hh" -#include "baseoutputmodule.hh" - #include +#include +#include + #include #include -namespace Opm::Properties { - -namespace TTag { +namespace Opm::Properties::TTag { // create new type tag for the VTK primary variables output struct VtkPhasePresence {}; -} // namespace TTag +} // namespace Opm::Properties::TTag + +namespace Opm::Parameters { // create the property tags needed for the primary variables module template -struct VtkWritePhasePresence { using type = UndefinedProperty; }; +struct VtkWritePhasePresence { using type = Properties::UndefinedProperty; }; template -struct VtkWritePhasePresence { static constexpr bool value = false; }; +struct VtkWritePhasePresence +{ static constexpr bool value = false; }; -} // namespace Opm::Properties +} // namespace Opm::Parameters namespace Opm { /*! @@ -85,7 +86,7 @@ public: */ static void registerParameters() { - Parameters::registerParam + Parameters::registerParam ("Include the phase presence pseudo primary " "variable in the VTK output files"); } @@ -135,7 +136,7 @@ public: private: static bool phasePresenceOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } diff --git a/opm/models/io/vtkprimaryvarsmodule.hh b/opm/models/io/vtkprimaryvarsmodule.hh index 558009d15..4c06212e1 100644 --- a/opm/models/io/vtkprimaryvarsmodule.hh +++ b/opm/models/io/vtkprimaryvarsmodule.hh @@ -35,29 +35,36 @@ #include #include -namespace Opm::Properties { - -namespace TTag { +namespace Opm::Properties::TTag { // create new type tag for the VTK primary variables output struct VtkPrimaryVars {}; -} // namespace TTag +} // namespace Opm::Properties::TTag + +namespace Opm::Parameters { // create the property tags needed for the primary variables module template -struct VtkWritePrimaryVars { using type = UndefinedProperty; }; +struct VtkWritePrimaryVars { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteProcessRank { using type = UndefinedProperty; }; +struct VtkWriteProcessRank { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteDofIndex { using type = UndefinedProperty; }; +struct VtkWriteDofIndex { using type = Properties::UndefinedProperty; }; template -struct VtkWritePrimaryVars { static constexpr bool value = false; }; +struct VtkWritePrimaryVars +{ static constexpr bool value = false; }; + template -struct VtkWriteProcessRank { static constexpr bool value = false; }; +struct VtkWriteProcessRank +{ static constexpr bool value = false; }; + template -struct VtkWriteDofIndex { static constexpr bool value = false; }; +struct VtkWriteDofIndex +{ static constexpr bool value = false; }; } // namespace Opm::Properties @@ -95,11 +102,11 @@ public: */ static void registerParameters() { - Parameters::registerParam + Parameters::registerParam ("Include the primary variables into the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the MPI process rank into the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include the index of the degrees of freedom into the VTK output files"); } @@ -170,17 +177,17 @@ public: private: static bool primaryVarsOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool processRankOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool dofIndexOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } diff --git a/opm/models/io/vtkptflashmodule.hh b/opm/models/io/vtkptflashmodule.hh index 543e63ac2..c0baad6e5 100644 --- a/opm/models/io/vtkptflashmodule.hh +++ b/opm/models/io/vtkptflashmodule.hh @@ -37,28 +37,32 @@ #include #include -namespace Opm::Properties { - -namespace TTag { +namespace Opm::Properties::TTag { // create new type tag for the VTK PTFlash output struct VtkPTFlash {}; -} // namespace TTag +} // namespace Opm::Properties::TTag + +namespace Opm::Parameters { // create the property tags needed for the composition module template -struct VtkWriteLiquidMoleFractions { using type = UndefinedProperty; }; +struct VtkWriteLiquidMoleFractions { using type = Properties::UndefinedProperty; }; + template -struct VtkWriteEquilibriumConstants { using type = UndefinedProperty; }; +struct VtkWriteEquilibriumConstants { using type = Properties::UndefinedProperty; }; // set default values for what quantities to output template -struct VtkWriteLiquidMoleFractions { static constexpr bool value = false; }; -template -struct VtkWriteEquilibriumConstants { static constexpr bool value = false; }; +struct VtkWriteLiquidMoleFractions +{ static constexpr bool value = false; }; -} // namespace Opm::Properties +template +struct VtkWriteEquilibriumConstants +{ static constexpr bool value = false; }; + +} // namespace Opm::Parameters namespace Opm { @@ -101,9 +105,9 @@ public: */ static void registerParameters() { - Parameters::registerParam + Parameters::registerParam ("Include liquid mole fractions (L) in the VTK output files"); - Parameters::registerParam + Parameters::registerParam ("Include equilibrium constants (K) in the VTK output files"); } @@ -164,13 +168,13 @@ public: private: static bool LOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } static bool equilConstOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; } diff --git a/opm/models/io/vtktemperaturemodule.hh b/opm/models/io/vtktemperaturemodule.hh index d6c26b5ff..28ff584d3 100644 --- a/opm/models/io/vtktemperaturemodule.hh +++ b/opm/models/io/vtktemperaturemodule.hh @@ -27,34 +27,35 @@ #ifndef EWOMS_VTK_TEMPERATURE_MODULE_HH #define EWOMS_VTK_TEMPERATURE_MODULE_HH -#include "vtkmultiwriter.hh" -#include "baseoutputmodule.hh" +#include #include +#include +#include + #include #include -#include - -namespace Opm::Properties { - -namespace TTag { +namespace Opm::Properties::TTag { // create new type tag for the VTK temperature output struct VtkTemperature {}; -} // namespace TTag +} // namespace Opm::Properties::TTag + +namespace Opm::Parameters { // create the property tags needed for the temperature module template -struct VtkWriteTemperature { using type = UndefinedProperty; }; +struct VtkWriteTemperature { using type = Properties::UndefinedProperty; }; // set default values for what quantities to output template -struct VtkWriteTemperature { static constexpr bool value = true; }; +struct VtkWriteTemperature +{ static constexpr bool value = true; }; -} // namespace Opm::Properties +} // namespace Opm::Parameters namespace Opm { @@ -90,7 +91,7 @@ public: */ static void registerParameters() { - Parameters::registerParam + Parameters::registerParam ("Include the temperature in the VTK output files"); } @@ -141,7 +142,7 @@ public: private: static bool temperatureOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::get(); return val; }