mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-22 09:16:27 -06:00
move VtkBlackoilPolymerModule parameters to TypeTag-free parameter system
This commit is contained in:
parent
84d5044d83
commit
ee578104a6
@ -50,49 +50,13 @@ struct VtkBlackOilPolymer {};
|
|||||||
|
|
||||||
namespace Opm::Parameters {
|
namespace Opm::Parameters {
|
||||||
|
|
||||||
// create the property tags needed for the polymer output module
|
|
||||||
template<class TypeTag, class MyTypeTag>
|
|
||||||
struct VtkWritePolymerConcentration { using type = Properties::UndefinedProperty; };
|
|
||||||
|
|
||||||
template<class TypeTag, class MyTypeTag>
|
|
||||||
struct VtkWritePolymerDeadPoreVolume { using type = Properties::UndefinedProperty; };
|
|
||||||
|
|
||||||
template<class TypeTag, class MyTypeTag>
|
|
||||||
struct VtkWritePolymerAdsorption { using type = Properties::UndefinedProperty; };
|
|
||||||
|
|
||||||
template<class TypeTag, class MyTypeTag>
|
|
||||||
struct VtkWritePolymerRockDensity { using type = Properties::UndefinedProperty; };
|
|
||||||
|
|
||||||
template<class TypeTag, class MyTypeTag>
|
|
||||||
struct VtkWritePolymerViscosityCorrection { using type = Properties::UndefinedProperty; };
|
|
||||||
|
|
||||||
template<class TypeTag, class MyTypeTag>
|
|
||||||
struct VtkWriteWaterViscosityCorrection { using type = Properties::UndefinedProperty; };
|
|
||||||
|
|
||||||
// set default values for what quantities to output
|
// set default values for what quantities to output
|
||||||
template<class TypeTag>
|
struct VtkWritePolymerConcentration { static constexpr bool value = true; };
|
||||||
struct VtkWritePolymerConcentration<TypeTag, Properties::TTag::VtkBlackOilPolymer>
|
struct VtkWritePolymerDeadPoreVolume { static constexpr bool value = true; };
|
||||||
{ static constexpr bool value = true; };
|
struct VtkWritePolymerViscosityCorrection { static constexpr bool value = true; };
|
||||||
|
struct VtkWriteWaterViscosityCorrection { static constexpr bool value = true; };
|
||||||
template<class TypeTag>
|
struct VtkWritePolymerRockDensity { static constexpr bool value = true; };
|
||||||
struct VtkWritePolymerDeadPoreVolume<TypeTag, Properties::TTag::VtkBlackOilPolymer>
|
struct VtkWritePolymerAdsorption { static constexpr bool value = true; };
|
||||||
{ static constexpr bool value = true; };
|
|
||||||
|
|
||||||
template<class TypeTag>
|
|
||||||
struct VtkWritePolymerViscosityCorrection<TypeTag, Properties::TTag::VtkBlackOilPolymer>
|
|
||||||
{ static constexpr bool value = true; };
|
|
||||||
|
|
||||||
template<class TypeTag>
|
|
||||||
struct VtkWriteWaterViscosityCorrection<TypeTag, Properties::TTag::VtkBlackOilPolymer>
|
|
||||||
{ static constexpr bool value = true; };
|
|
||||||
|
|
||||||
template<class TypeTag>
|
|
||||||
struct VtkWritePolymerRockDensity<TypeTag, Properties::TTag::VtkBlackOilPolymer>
|
|
||||||
{ static constexpr bool value = true; };
|
|
||||||
|
|
||||||
template<class TypeTag>
|
|
||||||
struct VtkWritePolymerAdsorption<TypeTag, Properties::TTag::VtkBlackOilPolymer>
|
|
||||||
{ static constexpr bool value = true; };
|
|
||||||
|
|
||||||
} // namespace Opm::Parameters
|
} // namespace Opm::Parameters
|
||||||
|
|
||||||
@ -134,22 +98,22 @@ public:
|
|||||||
if (!enablePolymer)
|
if (!enablePolymer)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Parameters::registerParam<TypeTag, Parameters::VtkWritePolymerConcentration>
|
Parameters::Register<Parameters::VtkWritePolymerConcentration>
|
||||||
("Include the concentration of the polymer component in the water phase "
|
("Include the concentration of the polymer component in the water phase "
|
||||||
"in the VTK output files");
|
"in the VTK output files");
|
||||||
Parameters::registerParam<TypeTag, Parameters::VtkWritePolymerDeadPoreVolume>
|
Parameters::Register<Parameters::VtkWritePolymerDeadPoreVolume>
|
||||||
("Include the fraction of the \"dead\" pore volume "
|
("Include the fraction of the \"dead\" pore volume "
|
||||||
"in the VTK output files");
|
"in the VTK output files");
|
||||||
Parameters::registerParam<TypeTag, Parameters::VtkWritePolymerRockDensity>
|
Parameters::Register<Parameters::VtkWritePolymerRockDensity>
|
||||||
("Include the amount of already adsorbed polymer component"
|
("Include the amount of already adsorbed polymer component"
|
||||||
"in the VTK output files");
|
"in the VTK output files");
|
||||||
Parameters::registerParam<TypeTag, Parameters::VtkWritePolymerAdsorption>
|
Parameters::Register<Parameters::VtkWritePolymerAdsorption>
|
||||||
("Include the adsorption rate of the polymer component"
|
("Include the adsorption rate of the polymer component"
|
||||||
"in the VTK output files");
|
"in the VTK output files");
|
||||||
Parameters::registerParam<TypeTag, Parameters::VtkWritePolymerViscosityCorrection>
|
Parameters::Register<Parameters::VtkWritePolymerViscosityCorrection>
|
||||||
("Include the viscosity correction of the polymer component "
|
("Include the viscosity correction of the polymer component "
|
||||||
"in the VTK output files");
|
"in the VTK output files");
|
||||||
Parameters::registerParam<TypeTag, Parameters::VtkWriteWaterViscosityCorrection>
|
Parameters::Register<Parameters::VtkWriteWaterViscosityCorrection>
|
||||||
("Include the viscosity correction of the water component "
|
("Include the viscosity correction of the water component "
|
||||||
"due to polymers in the VTK output files");
|
"due to polymers in the VTK output files");
|
||||||
}
|
}
|
||||||
@ -258,37 +222,37 @@ public:
|
|||||||
private:
|
private:
|
||||||
static bool polymerConcentrationOutput_()
|
static bool polymerConcentrationOutput_()
|
||||||
{
|
{
|
||||||
static bool val = Parameters::get<TypeTag, Parameters::VtkWritePolymerConcentration>();
|
static bool val = Parameters::Get<Parameters::VtkWritePolymerConcentration>();
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool polymerDeadPoreVolumeOutput_()
|
static bool polymerDeadPoreVolumeOutput_()
|
||||||
{
|
{
|
||||||
static bool val = Parameters::get<TypeTag, Parameters::VtkWritePolymerDeadPoreVolume>();
|
static bool val = Parameters::Get<Parameters::VtkWritePolymerDeadPoreVolume>();
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool polymerRockDensityOutput_()
|
static bool polymerRockDensityOutput_()
|
||||||
{
|
{
|
||||||
static bool val = Parameters::get<TypeTag, Parameters::VtkWritePolymerRockDensity>();
|
static bool val = Parameters::Get<Parameters::VtkWritePolymerRockDensity>();
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool polymerAdsorptionOutput_()
|
static bool polymerAdsorptionOutput_()
|
||||||
{
|
{
|
||||||
static bool val = Parameters::get<TypeTag, Parameters::VtkWritePolymerAdsorption>();
|
static bool val = Parameters::Get<Parameters::VtkWritePolymerAdsorption>();
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool polymerViscosityCorrectionOutput_()
|
static bool polymerViscosityCorrectionOutput_()
|
||||||
{
|
{
|
||||||
static bool val = Parameters::get<TypeTag, Parameters::VtkWritePolymerViscosityCorrection>();
|
static bool val = Parameters::Get<Parameters::VtkWritePolymerViscosityCorrection>();
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool waterViscosityCorrectionOutput_()
|
static bool waterViscosityCorrectionOutput_()
|
||||||
{
|
{
|
||||||
static bool val = Parameters::get<TypeTag, Parameters::VtkWritePolymerViscosityCorrection>();
|
static bool val = Parameters::Get<Parameters::VtkWritePolymerViscosityCorrection>();
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user