2022-06-08 02:27:51 -05:00
|
|
|
/*
|
|
|
|
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/>.
|
|
|
|
*/
|
2022-06-24 04:53:31 -05:00
|
|
|
|
2022-06-08 02:27:51 -05:00
|
|
|
#include "config.h"
|
2022-06-24 04:53:31 -05:00
|
|
|
|
2022-06-08 02:27:51 -05:00
|
|
|
#include <opm/material/common/ResetLocale.hpp>
|
|
|
|
#include <opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.hpp>
|
|
|
|
#include <opm/simulators/flow/Main.hpp>
|
|
|
|
// modifications from standard
|
|
|
|
#include <opm/models/blackoil/blackoillocalresidualtpfa.hh>
|
2022-06-14 14:03:09 -05:00
|
|
|
#include <opm/models/blackoil/blackoilintensivequantitiessimple.hh>
|
2022-06-09 08:08:46 -05:00
|
|
|
#include <opm/models/discretization/common/smallelementcontext.hh>
|
2022-06-24 08:56:40 -05:00
|
|
|
#include <opm/models/discretization/common/tpfalinearizer.hh>
|
2022-06-24 04:53:31 -05:00
|
|
|
|
2022-06-08 02:27:51 -05:00
|
|
|
namespace Opm {
|
|
|
|
namespace Properties {
|
|
|
|
namespace TTag {
|
|
|
|
struct EclFlowProblemTPFA {
|
|
|
|
using InheritsFrom = std::tuple<EclFlowProblem>;
|
|
|
|
};
|
|
|
|
}
|
2022-06-17 05:00:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-08 02:27:51 -05:00
|
|
|
namespace Opm {
|
|
|
|
namespace Properties {
|
2022-07-06 03:38:42 -05:00
|
|
|
|
2022-06-24 04:53:31 -05:00
|
|
|
template<class TypeTag>
|
2022-06-24 08:56:40 -05:00
|
|
|
struct Linearizer<TypeTag, TTag::EclFlowProblemTPFA> { using type = TpfaLinearizer<TypeTag>; };
|
2022-07-06 03:38:42 -05:00
|
|
|
|
2022-06-08 02:27:51 -05:00
|
|
|
template<class TypeTag>
|
|
|
|
struct LocalResidual<TypeTag, TTag::EclFlowProblemTPFA> { using type = BlackOilLocalResidualTPFA<TypeTag>; };
|
2022-07-06 03:38:42 -05:00
|
|
|
|
2022-06-08 15:39:20 -05:00
|
|
|
template<class TypeTag>
|
2022-07-07 06:17:29 -05:00
|
|
|
struct ElementContext<TypeTag, TTag::EclFlowProblemTPFA> { using type = SmallElementContext<TypeTag>; };
|
2022-07-04 09:20:37 -05:00
|
|
|
|
2022-06-14 14:03:09 -05:00
|
|
|
template<class TypeTag>
|
2022-07-07 06:17:29 -05:00
|
|
|
struct IntensiveQuantities<TypeTag, TTag::EclFlowProblemTPFA> { using type = BlackOilIntensiveQuantitiesSimple<TypeTag>; };
|
2022-06-14 14:03:09 -05:00
|
|
|
|
2022-06-08 02:27:51 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
|
|
|
using TypeTag = Opm::Properties::TTag::EclFlowProblemTPFA;
|
|
|
|
auto mainObject = Opm::Main(argc, argv);
|
|
|
|
return mainObject.runStatic<TypeTag>();
|
|
|
|
}
|