opm-simulators/flowexperimental/flowexp_blackoil.cpp

84 lines
2.2 KiB
C++
Raw Normal View History

/*
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"
#include "FlowExpNewtonMethod.hpp"
2024-04-19 03:28:41 -05:00
#include "flowexp.hpp"
#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>
#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-19 03:28:41 -05:00
namespace Opm::Properties {
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>;
};
}
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-25 01:50:16 -05:00
template<class TypeTag>
2024-04-25 01:50:16 -05:00
struct IntensiveQuantities<TypeTag, TTag::FlowExpProblemBlackOil>
{
using type = BlackOilIntensiveQuantitiesGlobalIndex<TypeTag>;
};
2024-04-25 01:50:16 -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>;
};
template<class TypeTag>
2024-04-25 01:50:16 -05:00
struct EnableDiffusion<TypeTag, TTag::FlowExpProblemBlackOil>
{
static constexpr bool value = false;
};
template<class TypeTag>
2024-04-25 01:50:16 -05:00
struct EnableDisgasInWater<TypeTag, TTag::FlowExpProblemBlackOil>
{
static constexpr bool value = false;
};
template<class TypeTag>
2024-04-25 01:50:16 -05:00
struct Simulator<TypeTag, TTag::FlowExpProblemBlackOil>
{
using type = Opm::Simulator<TypeTag>;
};
} // namespace Opm::Properties
2024-04-19 03:28:41 -05:00
int main(int argc, char** argv)
{
2024-04-21 14:49:17 -05:00
using TypeTag = Opm::Properties::TTag::FlowExpProblemBlackOil;
Opm::registerEclTimeSteppingParameters<double>();
return Opm::start<TypeTag>(argc, argv);
}