2024-04-05 09:35:52 -05:00
|
|
|
/*
|
|
|
|
Copyright 2020, NORCE AS
|
|
|
|
|
|
|
|
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"
|
2024-04-23 02:16:14 -05:00
|
|
|
#include "FlowExpNewtonMethod.hpp"
|
2024-04-19 03:28:41 -05:00
|
|
|
#include "flowexp.hpp"
|
2024-04-05 09:35:52 -05:00
|
|
|
|
|
|
|
#include <opm/models/discretization/common/tpfalinearizer.hh>
|
2024-09-02 05:56:18 -05:00
|
|
|
#include <opm/models/utils/parametersystem.hpp>
|
2024-04-22 07:27:46 -05:00
|
|
|
#include <opm/simulators/flow/Main.hpp>
|
2024-09-11 07:25:34 -05:00
|
|
|
#include <opm/simulators/flow/FlowProblemBlackoil.hpp>
|
2024-04-22 07:27:46 -05:00
|
|
|
|
2024-04-19 16:16:53 -05:00
|
|
|
#include "BlackOilIntensiveQuantitiesGlobalIndex.hpp"
|
|
|
|
#include "FIBlackOilModelNoCache.hpp"
|
2024-04-05 09:35:52 -05:00
|
|
|
|
2024-04-19 03:28:41 -05:00
|
|
|
namespace Opm::Properties {
|
2024-04-05 09:35:52 -05:00
|
|
|
namespace TTag {
|
2024-04-25 01:50:16 -05:00
|
|
|
struct FlowExpProblemBlackOil
|
|
|
|
{
|
2024-04-21 14:49:17 -05:00
|
|
|
using InheritsFrom = std::tuple<FlowExpTypeTag>;
|
2024-04-05 09:35:52 -05:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
template<class TypeTag>
|
2024-04-25 01:50:16 -05:00
|
|
|
struct Model<TypeTag, TTag::FlowExpProblemBlackOil>
|
|
|
|
{
|
2024-04-19 16:16:53 -05:00
|
|
|
using type = FIBlackOilModelNoCache<TypeTag>;
|
2024-04-05 09:35:52 -05:00
|
|
|
};
|
2024-04-25 01:50:16 -05:00
|
|
|
|
2024-04-05 09:35:52 -05:00
|
|
|
template<class TypeTag>
|
2024-04-25 01:50:16 -05:00
|
|
|
struct IntensiveQuantities<TypeTag, TTag::FlowExpProblemBlackOil>
|
|
|
|
{
|
|
|
|
using type = BlackOilIntensiveQuantitiesGlobalIndex<TypeTag>;
|
2024-04-05 09:35:52 -05:00
|
|
|
};
|
2024-04-25 01:50:16 -05:00
|
|
|
|
2024-04-05 09:35:52 -05:00
|
|
|
// Set the problem class
|
|
|
|
template<class TypeTag>
|
2024-04-25 01:50:16 -05:00
|
|
|
struct Problem<TypeTag, TTag::FlowExpProblemBlackOil>
|
|
|
|
{
|
2024-04-21 14:49:17 -05:00
|
|
|
using type = FlowExpProblem<TypeTag>;
|
2024-04-05 09:35:52 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
template<class TypeTag>
|
2024-04-25 01:50:16 -05:00
|
|
|
struct EnableDiffusion<TypeTag, TTag::FlowExpProblemBlackOil>
|
|
|
|
{
|
|
|
|
static constexpr bool value = false;
|
|
|
|
};
|
2024-04-05 09:35:52 -05:00
|
|
|
|
|
|
|
template<class TypeTag>
|
2024-04-25 01:50:16 -05:00
|
|
|
struct EnableDisgasInWater<TypeTag, TTag::FlowExpProblemBlackOil>
|
|
|
|
{
|
|
|
|
static constexpr bool value = false;
|
|
|
|
};
|
2024-04-05 09:35:52 -05:00
|
|
|
|
|
|
|
template<class TypeTag>
|
2024-04-25 01:50:16 -05:00
|
|
|
struct Simulator<TypeTag, TTag::FlowExpProblemBlackOil>
|
|
|
|
{
|
|
|
|
using type = Opm::Simulator<TypeTag>;
|
|
|
|
};
|
2024-04-05 09:35:52 -05:00
|
|
|
|
2024-06-28 05:17:13 -05:00
|
|
|
} // namespace Opm::Properties
|
2024-04-19 03:28:41 -05:00
|
|
|
|
2024-04-05 09:35:52 -05:00
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
2024-04-21 14:49:17 -05:00
|
|
|
using TypeTag = Opm::Properties::TTag::FlowExpProblemBlackOil;
|
2024-07-06 03:22:47 -05:00
|
|
|
Opm::registerEclTimeSteppingParameters<double>();
|
2024-04-05 09:35:52 -05:00
|
|
|
return Opm::start<TypeTag>(argc, argv);
|
|
|
|
}
|