mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-21 04:22:58 -06:00
Add brine and thermal simulator
This commit is contained in:
parent
70c9d2e237
commit
f6f5badfde
@ -442,6 +442,16 @@ opm_add_test(flow_blackoil_dunecpr
|
|||||||
DEPENDS opmsimulators
|
DEPENDS opmsimulators
|
||||||
LIBRARIES opmsimulators)
|
LIBRARIES opmsimulators)
|
||||||
|
|
||||||
|
opm_add_test(flow_brine_thermal
|
||||||
|
ONLY_COMPILE
|
||||||
|
DEFAULT_ENABLE_IF ${FLOW_VARIANTS_DEFAULT_ENABLE_IF}
|
||||||
|
SOURCES
|
||||||
|
flow/flow_brine_thermal.cpp
|
||||||
|
$<TARGET_OBJECTS:moduleVersion>
|
||||||
|
EXE_NAME flow_brine_thermal
|
||||||
|
DEPENDS opmsimulators
|
||||||
|
LIBRARIES opmsimulators)
|
||||||
|
|
||||||
opm_add_test(flow_onephase
|
opm_add_test(flow_onephase
|
||||||
ONLY_COMPILE
|
ONLY_COMPILE
|
||||||
DEFAULT_ENABLE_IF ${FLOW_VARIANTS_DEFAULT_ENABLE_IF}
|
DEFAULT_ENABLE_IF ${FLOW_VARIANTS_DEFAULT_ENABLE_IF}
|
||||||
|
50
flow/flow_brine_thermal.cpp
Normal file
50
flow/flow_brine_thermal.cpp
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
/*
|
||||||
|
This file is part of the Open Porous Media project (OPM).
|
||||||
|
|
||||||
|
OPM is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
OPM is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
|
#include <opm/material/common/ResetLocale.hpp>
|
||||||
|
#include <opm/simulators/flow/Main.hpp>
|
||||||
|
|
||||||
|
#if HAVE_DUNE_FEM
|
||||||
|
#include <dune/fem/misc/mpimanager.hh>
|
||||||
|
#else
|
||||||
|
#include <dune/common/parallel/mpihelper.hh>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
namespace Opm {
|
||||||
|
namespace Properties {
|
||||||
|
namespace TTag {
|
||||||
|
struct EclFlowBrineProblem {
|
||||||
|
using InheritsFrom = std::tuple<EclFlowProblem>;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
template<class TypeTag>
|
||||||
|
struct EnableBrine<TypeTag, TTag::EclFlowBrineProblem> {
|
||||||
|
static constexpr bool value = true;
|
||||||
|
};
|
||||||
|
template<class TypeTag>
|
||||||
|
struct EnableEnergy<TypeTag, TTag::EclFlowBrineProblem> {
|
||||||
|
static constexpr bool value = true;
|
||||||
|
};
|
||||||
|
}}
|
||||||
|
|
||||||
|
int main(int argc, char** argv)
|
||||||
|
{
|
||||||
|
using TypeTag = Opm::Properties::TTag::EclFlowBrineProblem;
|
||||||
|
auto mainObject = Opm::Main(argc, argv);
|
||||||
|
return mainObject.runStatic<TypeTag>();
|
||||||
|
}
|
@ -1874,5 +1874,6 @@ INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,1u,0u,0u,false,false,0u,0
|
|||||||
INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,1u,0u,false,false,0u,0u>)
|
INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,1u,0u,false,false,0u,0u>)
|
||||||
INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,0u,1u,false,false,0u,0u>)
|
INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,0u,1u,false,false,0u,0u>)
|
||||||
INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,0u,0u,false,false,1u,0u>)
|
INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,0u,0u,false,false,1u,0u>)
|
||||||
|
INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,0u,1u,false,true,0u,0u>)
|
||||||
|
|
||||||
} // namespace Opm
|
} // namespace Opm
|
||||||
|
@ -1132,5 +1132,6 @@ INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,1u,0u,0u,false,false,0u,0
|
|||||||
INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,1u,0u,false,false,0u,0u>)
|
INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,1u,0u,false,false,0u,0u>)
|
||||||
INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,0u,1u,false,false,0u,0u>)
|
INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,0u,1u,false,false,0u,0u>)
|
||||||
INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,0u,1u,false,false,1u,0u>)
|
INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,0u,1u,false,false,1u,0u>)
|
||||||
|
INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,0u,1u,false,true,0u,0u>)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -256,6 +256,7 @@ INSTANCE_TARGET_CALCULATOR(DenseAd::Evaluation<double,5,0>)
|
|||||||
INSTANCE_TARGET_CALCULATOR(DenseAd::Evaluation<double,6,0>)
|
INSTANCE_TARGET_CALCULATOR(DenseAd::Evaluation<double,6,0>)
|
||||||
INSTANCE_TARGET_CALCULATOR(DenseAd::Evaluation<double,7,0>)
|
INSTANCE_TARGET_CALCULATOR(DenseAd::Evaluation<double,7,0>)
|
||||||
INSTANCE_TARGET_CALCULATOR(DenseAd::Evaluation<double,8,0>)
|
INSTANCE_TARGET_CALCULATOR(DenseAd::Evaluation<double,8,0>)
|
||||||
|
INSTANCE_TARGET_CALCULATOR(DenseAd::Evaluation<double,9,0>)
|
||||||
INSTANCE_TARGET_CALCULATOR(DenseAd::Evaluation<double,-1,4>)
|
INSTANCE_TARGET_CALCULATOR(DenseAd::Evaluation<double,-1,4>)
|
||||||
INSTANCE_TARGET_CALCULATOR(DenseAd::Evaluation<double,-1,5>)
|
INSTANCE_TARGET_CALCULATOR(DenseAd::Evaluation<double,-1,5>)
|
||||||
INSTANCE_TARGET_CALCULATOR(DenseAd::Evaluation<double,-1,6>)
|
INSTANCE_TARGET_CALCULATOR(DenseAd::Evaluation<double,-1,6>)
|
||||||
|
@ -651,6 +651,8 @@ INSTANCE(DenseAd::Evaluation<double, 5, 0u>)
|
|||||||
INSTANCE(DenseAd::Evaluation<double, 6, 0u>)
|
INSTANCE(DenseAd::Evaluation<double, 6, 0u>)
|
||||||
INSTANCE(DenseAd::Evaluation<double, 7, 0u>)
|
INSTANCE(DenseAd::Evaluation<double, 7, 0u>)
|
||||||
INSTANCE(DenseAd::Evaluation<double, 8, 0u>)
|
INSTANCE(DenseAd::Evaluation<double, 8, 0u>)
|
||||||
|
INSTANCE(DenseAd::Evaluation<double, 9, 0u>)
|
||||||
|
|
||||||
|
|
||||||
} // namespace detail
|
} // namespace detail
|
||||||
} // namespace Opm
|
} // namespace Opm
|
||||||
|
@ -131,5 +131,6 @@ INSTANCE(DenseAd::Evaluation<double, 5, 0u>)
|
|||||||
INSTANCE(DenseAd::Evaluation<double, 6, 0u>)
|
INSTANCE(DenseAd::Evaluation<double, 6, 0u>)
|
||||||
INSTANCE(DenseAd::Evaluation<double, 7, 0u>)
|
INSTANCE(DenseAd::Evaluation<double, 7, 0u>)
|
||||||
INSTANCE(DenseAd::Evaluation<double, 8, 0u>)
|
INSTANCE(DenseAd::Evaluation<double, 8, 0u>)
|
||||||
|
INSTANCE(DenseAd::Evaluation<double, 9, 0u>)
|
||||||
|
|
||||||
} //Namespace Opm
|
} //Namespace Opm
|
||||||
|
@ -189,5 +189,6 @@ INSTANCE(DenseAd::Evaluation<double, 5, 0u>)
|
|||||||
INSTANCE(DenseAd::Evaluation<double, 6, 0u>)
|
INSTANCE(DenseAd::Evaluation<double, 6, 0u>)
|
||||||
INSTANCE(DenseAd::Evaluation<double, 7, 0u>)
|
INSTANCE(DenseAd::Evaluation<double, 7, 0u>)
|
||||||
INSTANCE(DenseAd::Evaluation<double, 8, 0u>)
|
INSTANCE(DenseAd::Evaluation<double, 8, 0u>)
|
||||||
|
INSTANCE(DenseAd::Evaluation<double, 9, 0u>)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -541,6 +541,7 @@ INSTANCE_METHODS(FluidSys, DenseAd::Evaluation<double,5,0u>)
|
|||||||
INSTANCE_METHODS(FluidSys, DenseAd::Evaluation<double,6,0u>)
|
INSTANCE_METHODS(FluidSys, DenseAd::Evaluation<double,6,0u>)
|
||||||
INSTANCE_METHODS(FluidSys, DenseAd::Evaluation<double,7,0u>)
|
INSTANCE_METHODS(FluidSys, DenseAd::Evaluation<double,7,0u>)
|
||||||
INSTANCE_METHODS(FluidSys, DenseAd::Evaluation<double,8,0u>)
|
INSTANCE_METHODS(FluidSys, DenseAd::Evaluation<double,8,0u>)
|
||||||
|
INSTANCE_METHODS(FluidSys, DenseAd::Evaluation<double,9,0u>)
|
||||||
INSTANCE_METHODS(FluidSys, DenseAd::Evaluation<double,-1,4u>)
|
INSTANCE_METHODS(FluidSys, DenseAd::Evaluation<double,-1,4u>)
|
||||||
INSTANCE_METHODS(FluidSys, DenseAd::Evaluation<double,-1,5u>)
|
INSTANCE_METHODS(FluidSys, DenseAd::Evaluation<double,-1,5u>)
|
||||||
INSTANCE_METHODS(FluidSys, DenseAd::Evaluation<double,-1,6u>)
|
INSTANCE_METHODS(FluidSys, DenseAd::Evaluation<double,-1,6u>)
|
||||||
|
@ -141,5 +141,6 @@ INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,1u,0u,false,false,0u,0
|
|||||||
INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,0u,1u,false,false,0u,0u>)
|
INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,0u,1u,false,false,0u,0u>)
|
||||||
INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,0u,1u,false,false,1u,0u>)
|
INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,0u,1u,false,false,1u,0u>)
|
||||||
INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,0u,0u,false,false,1u,0u>)
|
INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,0u,0u,false,false,1u,0u>)
|
||||||
|
INSTANCE(BlackOilDefaultIndexTraits,BlackOilIndices<0u,0u,0u,1u,false,true,0u,0u>)
|
||||||
|
|
||||||
} // namespace Opm
|
} // namespace Opm
|
||||||
|
Loading…
Reference in New Issue
Block a user