mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
adjust for changed ParameterGroup namespacing
This commit is contained in:
parent
46fff9a926
commit
3c0cb9e950
@ -62,7 +62,7 @@
|
|||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
void warnIfUnusedParams(const Opm::parameter::ParameterGroup& param)
|
void warnIfUnusedParams(const Opm::ParameterGroup& param)
|
||||||
{
|
{
|
||||||
if (param.anyUnused()) {
|
if (param.anyUnused()) {
|
||||||
std::cout << "-------------------- Unused parameters: --------------------\n";
|
std::cout << "-------------------- Unused parameters: --------------------\n";
|
||||||
@ -82,7 +82,7 @@ try
|
|||||||
using namespace Opm;
|
using namespace Opm;
|
||||||
|
|
||||||
std::cout << "\n================ Test program for weakly compressible two-phase flow ===============\n\n";
|
std::cout << "\n================ Test program for weakly compressible two-phase flow ===============\n\n";
|
||||||
parameter::ParameterGroup param(argc, argv, false);
|
ParameterGroup param(argc, argv, false);
|
||||||
std::cout << "--------------- Reading parameters ---------------" << std::endl;
|
std::cout << "--------------- Reading parameters ---------------" << std::endl;
|
||||||
|
|
||||||
// If we have a "deck_filename", grid and props will be read from that.
|
// If we have a "deck_filename", grid and props will be read from that.
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
void warnIfUnusedParams(const Opm::parameter::ParameterGroup& param)
|
void warnIfUnusedParams(const Opm::ParameterGroup& param)
|
||||||
{
|
{
|
||||||
if (param.anyUnused()) {
|
if (param.anyUnused()) {
|
||||||
std::cout << "-------------------- Unused parameters: --------------------\n";
|
std::cout << "-------------------- Unused parameters: --------------------\n";
|
||||||
@ -82,7 +82,7 @@ try
|
|||||||
using namespace Opm;
|
using namespace Opm;
|
||||||
|
|
||||||
std::cout << "\n================ Test program for incompressible two-phase flow ===============\n\n";
|
std::cout << "\n================ Test program for incompressible two-phase flow ===============\n\n";
|
||||||
parameter::ParameterGroup param(argc, argv, false);
|
ParameterGroup param(argc, argv, false);
|
||||||
std::cout << "--------------- Reading parameters ---------------" << std::endl;
|
std::cout << "--------------- Reading parameters ---------------" << std::endl;
|
||||||
|
|
||||||
#if ! HAVE_SUITESPARSE_UMFPACK_H
|
#if ! HAVE_SUITESPARSE_UMFPACK_H
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
void warnIfUnusedParams(const Opm::parameter::ParameterGroup& param)
|
void warnIfUnusedParams(const Opm::ParameterGroup& param)
|
||||||
{
|
{
|
||||||
if (param.anyUnused()) {
|
if (param.anyUnused()) {
|
||||||
std::cout << "-------------------- Unused parameters: --------------------\n";
|
std::cout << "-------------------- Unused parameters: --------------------\n";
|
||||||
@ -82,7 +82,7 @@ try
|
|||||||
using namespace Opm;
|
using namespace Opm;
|
||||||
|
|
||||||
std::cout << "\n================ Test program for incompressible two-phase flow ===============\n\n";
|
std::cout << "\n================ Test program for incompressible two-phase flow ===============\n\n";
|
||||||
parameter::ParameterGroup param(argc, argv, false);
|
ParameterGroup param(argc, argv, false);
|
||||||
std::cout << "--------------- Reading parameters ---------------" << std::endl;
|
std::cout << "--------------- Reading parameters ---------------" << std::endl;
|
||||||
|
|
||||||
#if ! HAVE_SUITESPARSE_UMFPACK_H
|
#if ! HAVE_SUITESPARSE_UMFPACK_H
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
void warnIfUnusedParams(const Opm::parameter::ParameterGroup& param)
|
void warnIfUnusedParams(const Opm::ParameterGroup& param)
|
||||||
{
|
{
|
||||||
if (param.anyUnused()) {
|
if (param.anyUnused()) {
|
||||||
std::cout << "-------------------- Unused parameters: --------------------\n";
|
std::cout << "-------------------- Unused parameters: --------------------\n";
|
||||||
@ -84,7 +84,7 @@ try
|
|||||||
using namespace Opm;
|
using namespace Opm;
|
||||||
|
|
||||||
std::cout << "\n================ Test program for weakly compressible two-phase flow with polymer ===============\n\n";
|
std::cout << "\n================ Test program for weakly compressible two-phase flow with polymer ===============\n\n";
|
||||||
parameter::ParameterGroup param(argc, argv, false);
|
ParameterGroup param(argc, argv, false);
|
||||||
std::cout << "--------------- Reading parameters ---------------" << std::endl;
|
std::cout << "--------------- Reading parameters ---------------" << std::endl;
|
||||||
|
|
||||||
// If we have a "deck_filename", grid and props will be read from that.
|
// If we have a "deck_filename", grid and props will be read from that.
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
void warnIfUnusedParams(const Opm::parameter::ParameterGroup& param)
|
void warnIfUnusedParams(const Opm::ParameterGroup& param)
|
||||||
{
|
{
|
||||||
if (param.anyUnused()) {
|
if (param.anyUnused()) {
|
||||||
std::cout << "-------------------- Unused parameters: --------------------\n";
|
std::cout << "-------------------- Unused parameters: --------------------\n";
|
||||||
@ -84,7 +84,7 @@ try
|
|||||||
using namespace Opm;
|
using namespace Opm;
|
||||||
|
|
||||||
std::cout << "\n================ Test program for incompressible two-phase flow with polymer ===============\n\n";
|
std::cout << "\n================ Test program for incompressible two-phase flow with polymer ===============\n\n";
|
||||||
parameter::ParameterGroup param(argc, argv, false);
|
ParameterGroup param(argc, argv, false);
|
||||||
std::cout << "--------------- Reading parameters ---------------" << std::endl;
|
std::cout << "--------------- Reading parameters ---------------" << std::endl;
|
||||||
|
|
||||||
// If we have a "deck_filename", grid and props will be read from that.
|
// If we have a "deck_filename", grid and props will be read from that.
|
||||||
|
@ -84,7 +84,7 @@
|
|||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
void warnIfUnusedParams(const Opm::parameter::ParameterGroup& param)
|
void warnIfUnusedParams(const Opm::ParameterGroup& param)
|
||||||
{
|
{
|
||||||
if (param.anyUnused()) {
|
if (param.anyUnused()) {
|
||||||
std::cout << "-------------------- Unused parameters: --------------------\n";
|
std::cout << "-------------------- Unused parameters: --------------------\n";
|
||||||
@ -104,7 +104,7 @@ try
|
|||||||
using namespace Opm;
|
using namespace Opm;
|
||||||
|
|
||||||
std::cout << "\n================ Test program for fully implicit three-phase black-oil flow ===============\n\n";
|
std::cout << "\n================ Test program for fully implicit three-phase black-oil flow ===============\n\n";
|
||||||
parameter::ParameterGroup param(argc, argv, false);
|
ParameterGroup param(argc, argv, false);
|
||||||
std::cout << "--------------- Reading parameters ---------------" << std::endl;
|
std::cout << "--------------- Reading parameters ---------------" << std::endl;
|
||||||
|
|
||||||
// If we have a "deck_filename", grid and props will be read from that.
|
// If we have a "deck_filename", grid and props will be read from that.
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using namespace Opm::parameter;
|
|
||||||
using namespace Opm;
|
using namespace Opm;
|
||||||
ParameterGroup parameters(argc, argv, false);
|
ParameterGroup parameters(argc, argv, false);
|
||||||
std::string file_name = parameters.getDefault<std::string > ("inputdeck", "data.data");
|
std::string file_name = parameters.getDefault<std::string > ("inputdeck", "data.data");
|
||||||
|
@ -47,7 +47,7 @@ struct Wells;
|
|||||||
|
|
||||||
namespace Opm {
|
namespace Opm {
|
||||||
|
|
||||||
namespace parameter { class ParameterGroup; }
|
class ParameterGroup;
|
||||||
class DerivedGeology;
|
class DerivedGeology;
|
||||||
class RockCompressibility;
|
class RockCompressibility;
|
||||||
class NewtonIterationBlackoilInterface;
|
class NewtonIterationBlackoilInterface;
|
||||||
|
@ -92,7 +92,7 @@ SET_BOOL_PROP(EclFlowProblem, EnableSwatinit, false);
|
|||||||
namespace Opm {
|
namespace Opm {
|
||||||
|
|
||||||
|
|
||||||
namespace parameter { class ParameterGroup; }
|
class ParameterGroup;
|
||||||
class DerivedGeology;
|
class DerivedGeology;
|
||||||
class RockCompressibility;
|
class RockCompressibility;
|
||||||
class NewtonIterationBlackoilInterface;
|
class NewtonIterationBlackoilInterface;
|
||||||
|
@ -34,7 +34,7 @@ namespace Opm
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
BlackoilModelParameters::BlackoilModelParameters( const parameter::ParameterGroup& param )
|
BlackoilModelParameters::BlackoilModelParameters( const ParameterGroup& param )
|
||||||
{
|
{
|
||||||
// set default values
|
// set default values
|
||||||
reset();
|
reset();
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
namespace Opm
|
namespace Opm
|
||||||
{
|
{
|
||||||
|
|
||||||
namespace parameter { class ParameterGroup; }
|
class ParameterGroup;
|
||||||
|
|
||||||
/// Solver parameters for the BlackoilModel.
|
/// Solver parameters for the BlackoilModel.
|
||||||
struct BlackoilModelParameters
|
struct BlackoilModelParameters
|
||||||
@ -69,7 +69,7 @@ namespace Opm
|
|||||||
std::string deck_file_name_;
|
std::string deck_file_name_;
|
||||||
|
|
||||||
/// Construct from user parameters or defaults.
|
/// Construct from user parameters or defaults.
|
||||||
explicit BlackoilModelParameters( const parameter::ParameterGroup& param );
|
explicit BlackoilModelParameters( const ParameterGroup& param );
|
||||||
|
|
||||||
/// Construct with default parameters.
|
/// Construct with default parameters.
|
||||||
BlackoilModelParameters();
|
BlackoilModelParameters();
|
||||||
|
@ -35,7 +35,7 @@ namespace Opm {
|
|||||||
struct BlackoilSequentialModelParameters : public BlackoilModelParameters
|
struct BlackoilSequentialModelParameters : public BlackoilModelParameters
|
||||||
{
|
{
|
||||||
bool iterate_to_fully_implicit;
|
bool iterate_to_fully_implicit;
|
||||||
explicit BlackoilSequentialModelParameters( const parameter::ParameterGroup& param )
|
explicit BlackoilSequentialModelParameters( const ParameterGroup& param )
|
||||||
: BlackoilModelParameters(param),
|
: BlackoilModelParameters(param),
|
||||||
iterate_to_fully_implicit(param.getDefault("iterate_to_fully_implicit", false))
|
iterate_to_fully_implicit(param.getDefault("iterate_to_fully_implicit", false))
|
||||||
{
|
{
|
||||||
|
@ -324,7 +324,7 @@ createAMGPreconditionerPointer( Op& opA, const double relax, const P& comm, std:
|
|||||||
|
|
||||||
CPRParameter() { reset(); }
|
CPRParameter() { reset(); }
|
||||||
|
|
||||||
CPRParameter( const parameter::ParameterGroup& param)
|
CPRParameter( const ParameterGroup& param)
|
||||||
{
|
{
|
||||||
// reset values to default
|
// reset values to default
|
||||||
reset();
|
reset();
|
||||||
|
@ -213,7 +213,7 @@ namespace Opm
|
|||||||
bool output_cout_ = false;
|
bool output_cout_ = false;
|
||||||
bool must_distribute_ = false;
|
bool must_distribute_ = false;
|
||||||
// setupParameters()
|
// setupParameters()
|
||||||
parameter::ParameterGroup param_;
|
ParameterGroup param_;
|
||||||
// setupOutput()
|
// setupOutput()
|
||||||
bool output_to_files_ = false;
|
bool output_to_files_ = false;
|
||||||
std::string output_dir_ = std::string(".");
|
std::string output_dir_ = std::string(".");
|
||||||
@ -330,7 +330,7 @@ namespace Opm
|
|||||||
// Returns true if ok, false if not.
|
// Returns true if ok, false if not.
|
||||||
bool setupParameters(int argc, char** argv)
|
bool setupParameters(int argc, char** argv)
|
||||||
{
|
{
|
||||||
param_ = parameter::ParameterGroup(argc, argv, false, output_cout_);
|
param_ = ParameterGroup(argc, argv, false, output_cout_);
|
||||||
|
|
||||||
// See if a deck was specified on the command line.
|
// See if a deck was specified on the command line.
|
||||||
if (!param_.unhandledArguments().empty()) {
|
if (!param_.unhandledArguments().empty()) {
|
||||||
|
@ -215,7 +215,7 @@ namespace Opm
|
|||||||
// Returns true if ok, false if not.
|
// Returns true if ok, false if not.
|
||||||
bool setupParameters(int argc, char** argv)
|
bool setupParameters(int argc, char** argv)
|
||||||
{
|
{
|
||||||
param_ = parameter::ParameterGroup(argc, argv, false, output_cout_);
|
param_ = ParameterGroup(argc, argv, false, output_cout_);
|
||||||
|
|
||||||
// See if a deck was specified on the command line.
|
// See if a deck was specified on the command line.
|
||||||
if (!param_.unhandledArguments().empty()) {
|
if (!param_.unhandledArguments().empty()) {
|
||||||
@ -775,7 +775,7 @@ namespace Opm
|
|||||||
int mpi_rank_ = 0;
|
int mpi_rank_ = 0;
|
||||||
bool output_cout_ = false;
|
bool output_cout_ = false;
|
||||||
bool must_distribute_ = false;
|
bool must_distribute_ = false;
|
||||||
parameter::ParameterGroup param_;
|
ParameterGroup param_;
|
||||||
bool output_to_files_ = false;
|
bool output_to_files_ = false;
|
||||||
std::string output_dir_ = std::string(".");
|
std::string output_dir_ = std::string(".");
|
||||||
std::unique_ptr<BlackoilPropsAdFromDeck> fluidprops_;
|
std::unique_ptr<BlackoilPropsAdFromDeck> fluidprops_;
|
||||||
|
@ -203,7 +203,7 @@ namespace Opm
|
|||||||
/// \param[in] param ParameterGroup controlling the behaviour of the linear solvers
|
/// \param[in] param ParameterGroup controlling the behaviour of the linear solvers
|
||||||
/// \param[in] parallelInformation In the case of a parallel run
|
/// \param[in] parallelInformation In the case of a parallel run
|
||||||
/// with dune-istl the information about the parallelization.
|
/// with dune-istl the information about the parallelization.
|
||||||
ISTLSolver(const parameter::ParameterGroup& param,
|
ISTLSolver(const ParameterGroup& param,
|
||||||
const boost::any& parallelInformation_arg=boost::any())
|
const boost::any& parallelInformation_arg=boost::any())
|
||||||
: iterations_( 0 ),
|
: iterations_( 0 ),
|
||||||
parallelInformation_(parallelInformation_arg),
|
parallelInformation_(parallelInformation_arg),
|
||||||
|
@ -53,7 +53,7 @@ namespace Opm
|
|||||||
|
|
||||||
|
|
||||||
/// Construct a system solver.
|
/// Construct a system solver.
|
||||||
NewtonIterationBlackoilCPR::NewtonIterationBlackoilCPR(const parameter::ParameterGroup& param,
|
NewtonIterationBlackoilCPR::NewtonIterationBlackoilCPR(const ParameterGroup& param,
|
||||||
const boost::any& parallelInformation_arg)
|
const boost::any& parallelInformation_arg)
|
||||||
: cpr_param_( param ),
|
: cpr_param_( param ),
|
||||||
iterations_( 0 ),
|
iterations_( 0 ),
|
||||||
|
@ -63,7 +63,7 @@ namespace Opm
|
|||||||
/// cpr_use_bicgstab (default true) if true, use BiCGStab (else use CG) for elliptic part
|
/// cpr_use_bicgstab (default true) if true, use BiCGStab (else use CG) for elliptic part
|
||||||
/// \param[in] parallelInformation In the case of a parallel run
|
/// \param[in] parallelInformation In the case of a parallel run
|
||||||
/// with dune-istl the information about the parallelization.
|
/// with dune-istl the information about the parallelization.
|
||||||
NewtonIterationBlackoilCPR(const parameter::ParameterGroup& param,
|
NewtonIterationBlackoilCPR(const ParameterGroup& param,
|
||||||
const boost::any& parallelInformation=boost::any());
|
const boost::any& parallelInformation=boost::any());
|
||||||
|
|
||||||
/// Solve the system of linear equations Ax = b, with A being the
|
/// Solve the system of linear equations Ax = b, with A being the
|
||||||
|
@ -297,7 +297,7 @@ namespace Opm
|
|||||||
|
|
||||||
|
|
||||||
/// Construct a system solver.
|
/// Construct a system solver.
|
||||||
NewtonIterationBlackoilInterleaved::NewtonIterationBlackoilInterleaved(const parameter::ParameterGroup& param,
|
NewtonIterationBlackoilInterleaved::NewtonIterationBlackoilInterleaved(const ParameterGroup& param,
|
||||||
const boost::any& parallelInformation_arg)
|
const boost::any& parallelInformation_arg)
|
||||||
: newtonIncrementDoublePrecision_(),
|
: newtonIncrementDoublePrecision_(),
|
||||||
newtonIncrementSinglePrecision_(),
|
newtonIncrementSinglePrecision_(),
|
||||||
|
@ -47,7 +47,7 @@ namespace Opm
|
|||||||
|
|
||||||
NewtonIterationBlackoilInterleavedParameters() { reset(); }
|
NewtonIterationBlackoilInterleavedParameters() { reset(); }
|
||||||
// read values from parameter class
|
// read values from parameter class
|
||||||
NewtonIterationBlackoilInterleavedParameters( const parameter::ParameterGroup& param )
|
NewtonIterationBlackoilInterleavedParameters( const ParameterGroup& param )
|
||||||
{
|
{
|
||||||
// set default parameters
|
// set default parameters
|
||||||
reset();
|
reset();
|
||||||
@ -89,7 +89,7 @@ namespace Opm
|
|||||||
/// \param[in] param parameters controlling the behaviour of the linear solvers
|
/// \param[in] param parameters controlling the behaviour of the linear solvers
|
||||||
/// \param[in] parallelInformation In the case of a parallel run
|
/// \param[in] parallelInformation In the case of a parallel run
|
||||||
/// with dune-istl the information about the parallelization.
|
/// with dune-istl the information about the parallelization.
|
||||||
NewtonIterationBlackoilInterleaved(const parameter::ParameterGroup& param,
|
NewtonIterationBlackoilInterleaved(const ParameterGroup& param,
|
||||||
const boost::any& parallelInformation=boost::any());
|
const boost::any& parallelInformation=boost::any());
|
||||||
|
|
||||||
/// Solve the system of linear equations Ax = b, with A being the
|
/// Solve the system of linear equations Ax = b, with A being the
|
||||||
|
@ -32,7 +32,7 @@ namespace Opm
|
|||||||
/// \param[in] linsolver linear solver to use
|
/// \param[in] linsolver linear solver to use
|
||||||
/// \param[in] parallelInformation In the case of a parallel run
|
/// \param[in] parallelInformation In the case of a parallel run
|
||||||
/// with dune-istl the information about the parallelization.
|
/// with dune-istl the information about the parallelization.
|
||||||
NewtonIterationBlackoilSimple::NewtonIterationBlackoilSimple(const parameter::ParameterGroup& param,
|
NewtonIterationBlackoilSimple::NewtonIterationBlackoilSimple(const ParameterGroup& param,
|
||||||
const boost::any& parallelInformation_arg)
|
const boost::any& parallelInformation_arg)
|
||||||
: iterations_( 0 ), parallelInformation_(parallelInformation_arg)
|
: iterations_( 0 ), parallelInformation_(parallelInformation_arg)
|
||||||
{
|
{
|
||||||
|
@ -42,7 +42,7 @@ namespace Opm
|
|||||||
/// choice of linear solver.
|
/// choice of linear solver.
|
||||||
/// \param[in] parallelInformation In the case of a parallel run
|
/// \param[in] parallelInformation In the case of a parallel run
|
||||||
/// with dune-istl the information about the parallelization.
|
/// with dune-istl the information about the parallelization.
|
||||||
NewtonIterationBlackoilSimple(const parameter::ParameterGroup& param,
|
NewtonIterationBlackoilSimple(const ParameterGroup& param,
|
||||||
const boost::any& parallelInformation=boost::any());
|
const boost::any& parallelInformation=boost::any());
|
||||||
|
|
||||||
/// Solve the system of linear equations Ax = b, with A being the
|
/// Solve the system of linear equations Ax = b, with A being the
|
||||||
|
@ -50,7 +50,7 @@ namespace Opm {
|
|||||||
int max_iter_; // max nonlinear iterations
|
int max_iter_; // max nonlinear iterations
|
||||||
int min_iter_; // min nonlinear iterations
|
int min_iter_; // min nonlinear iterations
|
||||||
|
|
||||||
explicit SolverParameters( const parameter::ParameterGroup& param );
|
explicit SolverParameters( const ParameterGroup& param );
|
||||||
SolverParameters();
|
SolverParameters();
|
||||||
|
|
||||||
void reset();
|
void reset();
|
||||||
|
@ -201,7 +201,7 @@ namespace Opm
|
|||||||
|
|
||||||
template <class PhysicalModel>
|
template <class PhysicalModel>
|
||||||
NonlinearSolver<PhysicalModel>::SolverParameters::
|
NonlinearSolver<PhysicalModel>::SolverParameters::
|
||||||
SolverParameters( const parameter::ParameterGroup& param )
|
SolverParameters( const ParameterGroup& param )
|
||||||
{
|
{
|
||||||
// set default values
|
// set default values
|
||||||
reset();
|
reset();
|
||||||
|
@ -121,7 +121,7 @@ namespace Opm
|
|||||||
/// \param[in] eclipse_state the object which represents an internalized ECL deck
|
/// \param[in] eclipse_state the object which represents an internalized ECL deck
|
||||||
/// \param[in] output_writer
|
/// \param[in] output_writer
|
||||||
/// \param[in] threshold_pressures_by_face if nonempty, threshold pressures that inhibit flow
|
/// \param[in] threshold_pressures_by_face if nonempty, threshold pressures that inhibit flow
|
||||||
SimulatorBase(const parameter::ParameterGroup& param,
|
SimulatorBase(const ParameterGroup& param,
|
||||||
const Grid& grid,
|
const Grid& grid,
|
||||||
DerivedGeology& geo,
|
DerivedGeology& geo,
|
||||||
BlackoilPropsAdFromDeck& props,
|
BlackoilPropsAdFromDeck& props,
|
||||||
@ -193,7 +193,7 @@ namespace Opm
|
|||||||
typedef typename Model::ModelParameters ModelParameters;
|
typedef typename Model::ModelParameters ModelParameters;
|
||||||
typedef typename Solver::SolverParameters SolverParameters;
|
typedef typename Solver::SolverParameters SolverParameters;
|
||||||
|
|
||||||
const parameter::ParameterGroup param_;
|
const ParameterGroup param_;
|
||||||
ModelParameters model_param_;
|
ModelParameters model_param_;
|
||||||
SolverParameters solver_param_;
|
SolverParameters solver_param_;
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ namespace Opm
|
|||||||
{
|
{
|
||||||
|
|
||||||
template <class Implementation>
|
template <class Implementation>
|
||||||
SimulatorBase<Implementation>::SimulatorBase(const parameter::ParameterGroup& param,
|
SimulatorBase<Implementation>::SimulatorBase(const ParameterGroup& param,
|
||||||
const Grid& grid,
|
const Grid& grid,
|
||||||
DerivedGeology& geo,
|
DerivedGeology& geo,
|
||||||
BlackoilPropsAdFromDeck& props,
|
BlackoilPropsAdFromDeck& props,
|
||||||
|
@ -51,7 +51,7 @@ class SimulatorFullyImplicitBlackoil
|
|||||||
typedef SimulatorBase<SimulatorFullyImplicitBlackoil<GridT> > Base;
|
typedef SimulatorBase<SimulatorFullyImplicitBlackoil<GridT> > Base;
|
||||||
public:
|
public:
|
||||||
// forward the constructor to the base class
|
// forward the constructor to the base class
|
||||||
SimulatorFullyImplicitBlackoil(const parameter::ParameterGroup& param,
|
SimulatorFullyImplicitBlackoil(const ParameterGroup& param,
|
||||||
const typename Base::Grid& grid,
|
const typename Base::Grid& grid,
|
||||||
DerivedGeology& geo,
|
DerivedGeology& geo,
|
||||||
BlackoilPropsAdFromDeck& props,
|
BlackoilPropsAdFromDeck& props,
|
||||||
|
@ -94,7 +94,7 @@ public:
|
|||||||
/// \param[in] output_writer
|
/// \param[in] output_writer
|
||||||
/// \param[in] threshold_pressures_by_face if nonempty, threshold pressures that inhibit flow
|
/// \param[in] threshold_pressures_by_face if nonempty, threshold pressures that inhibit flow
|
||||||
SimulatorFullyImplicitBlackoilEbos(Simulator& ebosSimulator,
|
SimulatorFullyImplicitBlackoilEbos(Simulator& ebosSimulator,
|
||||||
const parameter::ParameterGroup& param,
|
const ParameterGroup& param,
|
||||||
DerivedGeology& geo,
|
DerivedGeology& geo,
|
||||||
BlackoilPropsAdFromDeck& props,
|
BlackoilPropsAdFromDeck& props,
|
||||||
NewtonIterationBlackoilInterface& linsolver,
|
NewtonIterationBlackoilInterface& linsolver,
|
||||||
@ -816,7 +816,7 @@ protected:
|
|||||||
|
|
||||||
SimulatorReport failureReport_;
|
SimulatorReport failureReport_;
|
||||||
|
|
||||||
const parameter::ParameterGroup param_;
|
const ParameterGroup param_;
|
||||||
ModelParameters model_param_;
|
ModelParameters model_param_;
|
||||||
SolverParameters solver_param_;
|
SolverParameters solver_param_;
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ public:
|
|||||||
typedef typename Traits::WellModel WellModel;
|
typedef typename Traits::WellModel WellModel;
|
||||||
|
|
||||||
// forward the constructor to the base class
|
// forward the constructor to the base class
|
||||||
SimulatorFullyImplicitBlackoilMultiSegment(const parameter::ParameterGroup& param,
|
SimulatorFullyImplicitBlackoilMultiSegment(const ParameterGroup& param,
|
||||||
const GridT& grid,
|
const GridT& grid,
|
||||||
DerivedGeology& geo,
|
DerivedGeology& geo,
|
||||||
BlackoilPropsAdFromDeck& props,
|
BlackoilPropsAdFromDeck& props,
|
||||||
|
@ -209,7 +209,7 @@ namespace Opm
|
|||||||
// constructor creating different sub writers
|
// constructor creating different sub writers
|
||||||
template <class Grid>
|
template <class Grid>
|
||||||
BlackoilOutputWriter(const Grid& grid,
|
BlackoilOutputWriter(const Grid& grid,
|
||||||
const parameter::ParameterGroup& param,
|
const ParameterGroup& param,
|
||||||
const Opm::EclipseState& eclipseState,
|
const Opm::EclipseState& eclipseState,
|
||||||
std::unique_ptr<EclipseIO>&& eclIO,
|
std::unique_ptr<EclipseIO>&& eclIO,
|
||||||
const Opm::PhaseUsage &phaseUsage);
|
const Opm::PhaseUsage &phaseUsage);
|
||||||
@ -329,7 +329,7 @@ namespace Opm
|
|||||||
inline
|
inline
|
||||||
BlackoilOutputWriter::
|
BlackoilOutputWriter::
|
||||||
BlackoilOutputWriter(const Grid& grid,
|
BlackoilOutputWriter(const Grid& grid,
|
||||||
const parameter::ParameterGroup& param,
|
const ParameterGroup& param,
|
||||||
const Opm::EclipseState& eclipseState,
|
const Opm::EclipseState& eclipseState,
|
||||||
std::unique_ptr<EclipseIO>&& eclIO,
|
std::unique_ptr<EclipseIO>&& eclIO,
|
||||||
const Opm::PhaseUsage &phaseUsage)
|
const Opm::PhaseUsage &phaseUsage)
|
||||||
|
@ -108,7 +108,7 @@ namespace Opm
|
|||||||
typedef typename Traits::WellModel WellModel;
|
typedef typename Traits::WellModel WellModel;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SimulatorFullyImplicitBlackoilSolvent(const parameter::ParameterGroup& param,
|
SimulatorFullyImplicitBlackoilSolvent(const ParameterGroup& param,
|
||||||
const GridT& grid,
|
const GridT& grid,
|
||||||
DerivedGeology& geo,
|
DerivedGeology& geo,
|
||||||
BlackoilPropsAdFromDeck& props,
|
BlackoilPropsAdFromDeck& props,
|
||||||
|
@ -24,7 +24,7 @@ namespace Opm
|
|||||||
{
|
{
|
||||||
template <class GridT>
|
template <class GridT>
|
||||||
SimulatorFullyImplicitBlackoilSolvent<GridT>::
|
SimulatorFullyImplicitBlackoilSolvent<GridT>::
|
||||||
SimulatorFullyImplicitBlackoilSolvent(const parameter::ParameterGroup& param,
|
SimulatorFullyImplicitBlackoilSolvent(const ParameterGroup& param,
|
||||||
const GridT& grid,
|
const GridT& grid,
|
||||||
DerivedGeology& geo,
|
DerivedGeology& geo,
|
||||||
BlackoilPropsAdFromDeck& props,
|
BlackoilPropsAdFromDeck& props,
|
||||||
|
@ -68,7 +68,7 @@ namespace Opm
|
|||||||
class SimulatorIncompTwophaseAd::Impl
|
class SimulatorIncompTwophaseAd::Impl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Impl(const parameter::ParameterGroup& param,
|
Impl(const ParameterGroup& param,
|
||||||
const UnstructuredGrid& grid,
|
const UnstructuredGrid& grid,
|
||||||
const IncompPropertiesInterface& props,
|
const IncompPropertiesInterface& props,
|
||||||
const RockCompressibility* rock_comp_props,
|
const RockCompressibility* rock_comp_props,
|
||||||
@ -114,7 +114,7 @@ namespace Opm
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SimulatorIncompTwophaseAd::SimulatorIncompTwophaseAd(const parameter::ParameterGroup& param,
|
SimulatorIncompTwophaseAd::SimulatorIncompTwophaseAd(const ParameterGroup& param,
|
||||||
const UnstructuredGrid& grid,
|
const UnstructuredGrid& grid,
|
||||||
const IncompPropertiesInterface& props,
|
const IncompPropertiesInterface& props,
|
||||||
const RockCompressibility* rock_comp_props,
|
const RockCompressibility* rock_comp_props,
|
||||||
@ -297,7 +297,7 @@ namespace Opm
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SimulatorIncompTwophaseAd::Impl::Impl(const parameter::ParameterGroup& param,
|
SimulatorIncompTwophaseAd::Impl::Impl(const ParameterGroup& param,
|
||||||
const UnstructuredGrid& grid,
|
const UnstructuredGrid& grid,
|
||||||
const IncompPropertiesInterface& props,
|
const IncompPropertiesInterface& props,
|
||||||
const RockCompressibility* rock_comp_props,
|
const RockCompressibility* rock_comp_props,
|
||||||
|
@ -29,7 +29,7 @@ struct FlowBoundaryConditions;
|
|||||||
|
|
||||||
namespace Opm
|
namespace Opm
|
||||||
{
|
{
|
||||||
namespace parameter { class ParameterGroup; }
|
class ParameterGroup;
|
||||||
class IncompPropertiesInterface;
|
class IncompPropertiesInterface;
|
||||||
class RockCompressibility;
|
class RockCompressibility;
|
||||||
class WellsManager;
|
class WellsManager;
|
||||||
@ -67,7 +67,7 @@ namespace Opm
|
|||||||
/// \param[in] bcs boundary conditions, treat as all noflow if null
|
/// \param[in] bcs boundary conditions, treat as all noflow if null
|
||||||
/// \param[in] linsolver linear solver
|
/// \param[in] linsolver linear solver
|
||||||
/// \param[in] gravity if non-null, gravity vector
|
/// \param[in] gravity if non-null, gravity vector
|
||||||
SimulatorIncompTwophaseAd(const parameter::ParameterGroup& param,
|
SimulatorIncompTwophaseAd(const ParameterGroup& param,
|
||||||
const UnstructuredGrid& grid,
|
const UnstructuredGrid& grid,
|
||||||
const IncompPropertiesInterface& props,
|
const IncompPropertiesInterface& props,
|
||||||
const RockCompressibility* rock_comp_props,
|
const RockCompressibility* rock_comp_props,
|
||||||
|
@ -52,7 +52,7 @@ class SimulatorSequentialBlackoil
|
|||||||
typedef SimulatorBase<SimulatorSequentialBlackoil<GridT> > Base;
|
typedef SimulatorBase<SimulatorSequentialBlackoil<GridT> > Base;
|
||||||
public:
|
public:
|
||||||
// forward the constructor to the base class
|
// forward the constructor to the base class
|
||||||
SimulatorSequentialBlackoil(const parameter::ParameterGroup& param,
|
SimulatorSequentialBlackoil(const ParameterGroup& param,
|
||||||
const typename Base::Grid& grid,
|
const typename Base::Grid& grid,
|
||||||
DerivedGeology& geo,
|
DerivedGeology& geo,
|
||||||
BlackoilPropsAdFromDeck& props,
|
BlackoilPropsAdFromDeck& props,
|
||||||
|
@ -44,7 +44,7 @@ namespace Opm
|
|||||||
const IncompPropertiesInterface& props,
|
const IncompPropertiesInterface& props,
|
||||||
const LinearSolverInterface& linsolver,
|
const LinearSolverInterface& linsolver,
|
||||||
const double* gravity,
|
const double* gravity,
|
||||||
const parameter::ParameterGroup& param)
|
const ParameterGroup& param)
|
||||||
: grid_(grid),
|
: grid_(grid),
|
||||||
props_(props),
|
props_(props),
|
||||||
linsolver_(linsolver),
|
linsolver_(linsolver),
|
||||||
|
@ -32,7 +32,7 @@ namespace Opm
|
|||||||
|
|
||||||
class IncompPropertiesInterface;
|
class IncompPropertiesInterface;
|
||||||
class LinearSolverInterface;
|
class LinearSolverInterface;
|
||||||
namespace parameter { class ParameterGroup; }
|
class ParameterGroup;
|
||||||
|
|
||||||
/// Implements an implicit transport solver for incompressible two-phase flow,
|
/// Implements an implicit transport solver for incompressible two-phase flow,
|
||||||
/// using automatic differentiation.
|
/// using automatic differentiation.
|
||||||
@ -49,7 +49,7 @@ namespace Opm
|
|||||||
const IncompPropertiesInterface& props,
|
const IncompPropertiesInterface& props,
|
||||||
const LinearSolverInterface& linsolver,
|
const LinearSolverInterface& linsolver,
|
||||||
const double* gravity,
|
const double* gravity,
|
||||||
const parameter::ParameterGroup& param);
|
const ParameterGroup& param);
|
||||||
|
|
||||||
// Virtual destructor.
|
// Virtual destructor.
|
||||||
virtual ~TransportSolverTwophaseAd();
|
virtual ~TransportSolverTwophaseAd();
|
||||||
|
@ -40,7 +40,7 @@ namespace Opm
|
|||||||
/// mu1 [mu2, mu3] (1.0) Viscosity in cP
|
/// mu1 [mu2, mu3] (1.0) Viscosity in cP
|
||||||
/// porosity (1.0) Porosity
|
/// porosity (1.0) Porosity
|
||||||
/// permeability (100.0) Permeability in mD
|
/// permeability (100.0) Permeability in mD
|
||||||
IncompPropertiesDefaultPolymer(const Opm::parameter::ParameterGroup& param, int dim, int num_cells)
|
IncompPropertiesDefaultPolymer(const Opm::ParameterGroup& param, int dim, int num_cells)
|
||||||
: Opm::IncompPropertiesBasic(param, dim, num_cells)
|
: Opm::IncompPropertiesBasic(param, dim, num_cells)
|
||||||
{
|
{
|
||||||
assert(numPhases() == 2);
|
assert(numPhases() == 2);
|
||||||
|
@ -91,7 +91,7 @@ namespace Opm
|
|||||||
class SimulatorCompressiblePolymer::Impl
|
class SimulatorCompressiblePolymer::Impl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Impl(const parameter::ParameterGroup& param,
|
Impl(const ParameterGroup& param,
|
||||||
const UnstructuredGrid& grid,
|
const UnstructuredGrid& grid,
|
||||||
const BlackoilPropertiesInterface& props,
|
const BlackoilPropertiesInterface& props,
|
||||||
const PolymerProperties& poly_props,
|
const PolymerProperties& poly_props,
|
||||||
@ -140,7 +140,7 @@ namespace Opm
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SimulatorCompressiblePolymer::SimulatorCompressiblePolymer(const parameter::ParameterGroup& param,
|
SimulatorCompressiblePolymer::SimulatorCompressiblePolymer(const ParameterGroup& param,
|
||||||
const UnstructuredGrid& grid,
|
const UnstructuredGrid& grid,
|
||||||
const BlackoilPropertiesInterface& props,
|
const BlackoilPropertiesInterface& props,
|
||||||
const PolymerProperties& poly_props,
|
const PolymerProperties& poly_props,
|
||||||
@ -169,7 +169,7 @@ namespace Opm
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SimulatorCompressiblePolymer::Impl::Impl(const parameter::ParameterGroup& param,
|
SimulatorCompressiblePolymer::Impl::Impl(const ParameterGroup& param,
|
||||||
const UnstructuredGrid& grid,
|
const UnstructuredGrid& grid,
|
||||||
const BlackoilPropertiesInterface& props,
|
const BlackoilPropertiesInterface& props,
|
||||||
const PolymerProperties& poly_props,
|
const PolymerProperties& poly_props,
|
||||||
|
@ -30,7 +30,7 @@ struct FlowBoundaryConditions;
|
|||||||
|
|
||||||
namespace Opm
|
namespace Opm
|
||||||
{
|
{
|
||||||
namespace parameter { class ParameterGroup; }
|
class ParameterGroup;
|
||||||
class BlackoilPropertiesInterface;
|
class BlackoilPropertiesInterface;
|
||||||
class PolymerProperties;
|
class PolymerProperties;
|
||||||
class RockCompressibility;
|
class RockCompressibility;
|
||||||
@ -70,7 +70,7 @@ namespace Opm
|
|||||||
/// \param[in] polymer_inflow polymer inflow controls
|
/// \param[in] polymer_inflow polymer inflow controls
|
||||||
/// \param[in] linsolver linear solver
|
/// \param[in] linsolver linear solver
|
||||||
/// \param[in] gravity if non-null, gravity vector
|
/// \param[in] gravity if non-null, gravity vector
|
||||||
SimulatorCompressiblePolymer(const parameter::ParameterGroup& param,
|
SimulatorCompressiblePolymer(const ParameterGroup& param,
|
||||||
const UnstructuredGrid& grid,
|
const UnstructuredGrid& grid,
|
||||||
const BlackoilPropertiesInterface& props,
|
const BlackoilPropertiesInterface& props,
|
||||||
const PolymerProperties& poly_props,
|
const PolymerProperties& poly_props,
|
||||||
|
@ -95,7 +95,7 @@ namespace Opm
|
|||||||
class SimulatorPolymer::Impl
|
class SimulatorPolymer::Impl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Impl(const parameter::ParameterGroup& param,
|
Impl(const ParameterGroup& param,
|
||||||
const UnstructuredGrid& grid,
|
const UnstructuredGrid& grid,
|
||||||
const IncompPropertiesInterface& props,
|
const IncompPropertiesInterface& props,
|
||||||
const PolymerProperties& poly_props,
|
const PolymerProperties& poly_props,
|
||||||
@ -147,7 +147,7 @@ namespace Opm
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SimulatorPolymer::SimulatorPolymer(const parameter::ParameterGroup& param,
|
SimulatorPolymer::SimulatorPolymer(const ParameterGroup& param,
|
||||||
const UnstructuredGrid& grid,
|
const UnstructuredGrid& grid,
|
||||||
const IncompPropertiesInterface& props,
|
const IncompPropertiesInterface& props,
|
||||||
const PolymerProperties& poly_props,
|
const PolymerProperties& poly_props,
|
||||||
@ -178,7 +178,7 @@ namespace Opm
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SimulatorPolymer::Impl::Impl(const parameter::ParameterGroup& param,
|
SimulatorPolymer::Impl::Impl(const ParameterGroup& param,
|
||||||
const UnstructuredGrid& grid,
|
const UnstructuredGrid& grid,
|
||||||
const IncompPropertiesInterface& props,
|
const IncompPropertiesInterface& props,
|
||||||
const PolymerProperties& poly_props,
|
const PolymerProperties& poly_props,
|
||||||
|
@ -30,7 +30,7 @@ struct FlowBoundaryConditions;
|
|||||||
|
|
||||||
namespace Opm
|
namespace Opm
|
||||||
{
|
{
|
||||||
namespace parameter { class ParameterGroup; }
|
class ParameterGroup;
|
||||||
class IncompPropertiesInterface;
|
class IncompPropertiesInterface;
|
||||||
class PolymerProperties;
|
class PolymerProperties;
|
||||||
class RockCompressibility;
|
class RockCompressibility;
|
||||||
@ -72,7 +72,7 @@ namespace Opm
|
|||||||
/// \param[in] bcs boundary conditions, treat as all noflow if null
|
/// \param[in] bcs boundary conditions, treat as all noflow if null
|
||||||
/// \param[in] linsolver linear solver
|
/// \param[in] linsolver linear solver
|
||||||
/// \param[in] gravity if non-null, gravity vector
|
/// \param[in] gravity if non-null, gravity vector
|
||||||
SimulatorPolymer(const parameter::ParameterGroup& param,
|
SimulatorPolymer(const ParameterGroup& param,
|
||||||
const UnstructuredGrid& grid,
|
const UnstructuredGrid& grid,
|
||||||
const IncompPropertiesInterface& props,
|
const IncompPropertiesInterface& props,
|
||||||
const PolymerProperties& poly_props,
|
const PolymerProperties& poly_props,
|
||||||
|
@ -152,7 +152,7 @@ namespace Opm {
|
|||||||
int wellIterations() const;
|
int wellIterations() const;
|
||||||
|
|
||||||
/// Not used by this class except to satisfy interface requirements.
|
/// Not used by this class except to satisfy interface requirements.
|
||||||
typedef parameter::ParameterGroup SolverParameters;
|
typedef ParameterGroup SolverParameters;
|
||||||
|
|
||||||
/// There is no separate model class for this solver, return itself.
|
/// There is no separate model class for this solver, return itself.
|
||||||
const FullyImplicitCompressiblePolymerSolver& model() const;
|
const FullyImplicitCompressiblePolymerSolver& model() const;
|
||||||
|
@ -108,7 +108,7 @@ namespace Opm
|
|||||||
typedef typename Traits::WellModel WellModel;
|
typedef typename Traits::WellModel WellModel;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SimulatorFullyImplicitBlackoilPolymer(const parameter::ParameterGroup& param,
|
SimulatorFullyImplicitBlackoilPolymer(const ParameterGroup& param,
|
||||||
const GridT& grid,
|
const GridT& grid,
|
||||||
DerivedGeology& geo,
|
DerivedGeology& geo,
|
||||||
BlackoilPropsAdFromDeck& props,
|
BlackoilPropsAdFromDeck& props,
|
||||||
|
@ -23,7 +23,7 @@ namespace Opm
|
|||||||
{
|
{
|
||||||
template <class GridT>
|
template <class GridT>
|
||||||
SimulatorFullyImplicitBlackoilPolymer<GridT>::
|
SimulatorFullyImplicitBlackoilPolymer<GridT>::
|
||||||
SimulatorFullyImplicitBlackoilPolymer(const parameter::ParameterGroup& param,
|
SimulatorFullyImplicitBlackoilPolymer(const ParameterGroup& param,
|
||||||
const GridT& grid,
|
const GridT& grid,
|
||||||
DerivedGeology& geo,
|
DerivedGeology& geo,
|
||||||
BlackoilPropsAdFromDeck& props,
|
BlackoilPropsAdFromDeck& props,
|
||||||
|
@ -85,7 +85,7 @@ namespace Opm
|
|||||||
/// Dummy class, this Solver does not use a Model.
|
/// Dummy class, this Solver does not use a Model.
|
||||||
struct Model
|
struct Model
|
||||||
{
|
{
|
||||||
typedef parameter::ParameterGroup ModelParameters;
|
typedef ParameterGroup ModelParameters;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -101,7 +101,7 @@ namespace Opm
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
/// Initialise from parameters and objects to observe.
|
/// Initialise from parameters and objects to observe.
|
||||||
SimulatorFullyImplicitCompressiblePolymer(const parameter::ParameterGroup& param,
|
SimulatorFullyImplicitCompressiblePolymer(const ParameterGroup& param,
|
||||||
const GridT& grid,
|
const GridT& grid,
|
||||||
DerivedGeology& geo,
|
DerivedGeology& geo,
|
||||||
BlackoilPropsAdFromDeck& props,
|
BlackoilPropsAdFromDeck& props,
|
||||||
|
@ -26,7 +26,7 @@ namespace Opm
|
|||||||
/// Class collecting all necessary components for a two-phase simulation.
|
/// Class collecting all necessary components for a two-phase simulation.
|
||||||
template <class GridT>
|
template <class GridT>
|
||||||
SimulatorFullyImplicitCompressiblePolymer<GridT>::
|
SimulatorFullyImplicitCompressiblePolymer<GridT>::
|
||||||
SimulatorFullyImplicitCompressiblePolymer(const parameter::ParameterGroup& param,
|
SimulatorFullyImplicitCompressiblePolymer(const ParameterGroup& param,
|
||||||
const GridT& grid,
|
const GridT& grid,
|
||||||
DerivedGeology& geo,
|
DerivedGeology& geo,
|
||||||
BlackoilPropsAdFromDeck& props,
|
BlackoilPropsAdFromDeck& props,
|
||||||
|
@ -66,7 +66,7 @@ namespace Opm
|
|||||||
class SimulatorCompressibleTwophase::Impl
|
class SimulatorCompressibleTwophase::Impl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Impl(const parameter::ParameterGroup& param,
|
Impl(const ParameterGroup& param,
|
||||||
const UnstructuredGrid& grid,
|
const UnstructuredGrid& grid,
|
||||||
const BlackoilPropertiesInterface& props,
|
const BlackoilPropertiesInterface& props,
|
||||||
const RockCompressibility* rock_comp_props,
|
const RockCompressibility* rock_comp_props,
|
||||||
@ -115,7 +115,7 @@ namespace Opm
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SimulatorCompressibleTwophase::SimulatorCompressibleTwophase(const parameter::ParameterGroup& param,
|
SimulatorCompressibleTwophase::SimulatorCompressibleTwophase(const ParameterGroup& param,
|
||||||
const UnstructuredGrid& grid,
|
const UnstructuredGrid& grid,
|
||||||
const BlackoilPropertiesInterface& props,
|
const BlackoilPropertiesInterface& props,
|
||||||
const RockCompressibility* rock_comp_props,
|
const RockCompressibility* rock_comp_props,
|
||||||
@ -226,7 +226,7 @@ namespace Opm
|
|||||||
|
|
||||||
|
|
||||||
// \TODO: make CompressibleTpfa take src and bcs.
|
// \TODO: make CompressibleTpfa take src and bcs.
|
||||||
SimulatorCompressibleTwophase::Impl::Impl(const parameter::ParameterGroup& param,
|
SimulatorCompressibleTwophase::Impl::Impl(const ParameterGroup& param,
|
||||||
const UnstructuredGrid& grid,
|
const UnstructuredGrid& grid,
|
||||||
const BlackoilPropertiesInterface& props,
|
const BlackoilPropertiesInterface& props,
|
||||||
const RockCompressibility* rock_comp_props,
|
const RockCompressibility* rock_comp_props,
|
||||||
|
@ -29,7 +29,7 @@ struct FlowBoundaryConditions;
|
|||||||
|
|
||||||
namespace Opm
|
namespace Opm
|
||||||
{
|
{
|
||||||
namespace parameter { class ParameterGroup; }
|
class ParameterGroup;
|
||||||
class BlackoilPropertiesInterface;
|
class BlackoilPropertiesInterface;
|
||||||
class RockCompressibility;
|
class RockCompressibility;
|
||||||
class WellsManager;
|
class WellsManager;
|
||||||
@ -67,7 +67,7 @@ namespace Opm
|
|||||||
/// \param[in] bcs boundary conditions, treat as all noflow if null
|
/// \param[in] bcs boundary conditions, treat as all noflow if null
|
||||||
/// \param[in] linsolver linear solver
|
/// \param[in] linsolver linear solver
|
||||||
/// \param[in] gravity if non-null, gravity vector
|
/// \param[in] gravity if non-null, gravity vector
|
||||||
SimulatorCompressibleTwophase(const parameter::ParameterGroup& param,
|
SimulatorCompressibleTwophase(const ParameterGroup& param,
|
||||||
const UnstructuredGrid& grid,
|
const UnstructuredGrid& grid,
|
||||||
const BlackoilPropertiesInterface& props,
|
const BlackoilPropertiesInterface& props,
|
||||||
const RockCompressibility* rock_comp_props,
|
const RockCompressibility* rock_comp_props,
|
||||||
|
@ -67,7 +67,7 @@ namespace Opm
|
|||||||
|
|
||||||
struct SimulatorIncompTwophase::Impl
|
struct SimulatorIncompTwophase::Impl
|
||||||
{
|
{
|
||||||
Impl(const parameter::ParameterGroup& param,
|
Impl(const ParameterGroup& param,
|
||||||
const UnstructuredGrid& grid,
|
const UnstructuredGrid& grid,
|
||||||
const IncompPropertiesInterface& props,
|
const IncompPropertiesInterface& props,
|
||||||
const RockCompressibility* rock_comp_props,
|
const RockCompressibility* rock_comp_props,
|
||||||
@ -116,7 +116,7 @@ namespace Opm
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SimulatorIncompTwophase::SimulatorIncompTwophase(const parameter::ParameterGroup& param,
|
SimulatorIncompTwophase::SimulatorIncompTwophase(const ParameterGroup& param,
|
||||||
const UnstructuredGrid& grid,
|
const UnstructuredGrid& grid,
|
||||||
const IncompPropertiesInterface& props,
|
const IncompPropertiesInterface& props,
|
||||||
const RockCompressibility* rock_comp_props,
|
const RockCompressibility* rock_comp_props,
|
||||||
@ -312,7 +312,7 @@ namespace Opm
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SimulatorIncompTwophase::Impl::Impl(const parameter::ParameterGroup& param,
|
SimulatorIncompTwophase::Impl::Impl(const ParameterGroup& param,
|
||||||
const UnstructuredGrid& grid,
|
const UnstructuredGrid& grid,
|
||||||
const IncompPropertiesInterface& props,
|
const IncompPropertiesInterface& props,
|
||||||
const RockCompressibility* rock_comp_props,
|
const RockCompressibility* rock_comp_props,
|
||||||
|
@ -30,7 +30,7 @@ struct FlowBoundaryConditions;
|
|||||||
|
|
||||||
namespace Opm
|
namespace Opm
|
||||||
{
|
{
|
||||||
namespace parameter { class ParameterGroup; }
|
class ParameterGroup;
|
||||||
class IncompPropertiesInterface;
|
class IncompPropertiesInterface;
|
||||||
class RockCompressibility;
|
class RockCompressibility;
|
||||||
class WellsManager;
|
class WellsManager;
|
||||||
@ -69,7 +69,7 @@ namespace Opm
|
|||||||
/// \param[in] bcs boundary conditions, treat as all noflow if null
|
/// \param[in] bcs boundary conditions, treat as all noflow if null
|
||||||
/// \param[in] linsolver linear solver
|
/// \param[in] linsolver linear solver
|
||||||
/// \param[in] gravity if non-null, gravity vector
|
/// \param[in] gravity if non-null, gravity vector
|
||||||
SimulatorIncompTwophase(const parameter::ParameterGroup& param,
|
SimulatorIncompTwophase(const ParameterGroup& param,
|
||||||
const UnstructuredGrid& grid,
|
const UnstructuredGrid& grid,
|
||||||
const IncompPropertiesInterface& props,
|
const IncompPropertiesInterface& props,
|
||||||
const RockCompressibility* rock_comp_props,
|
const RockCompressibility* rock_comp_props,
|
||||||
|
@ -42,7 +42,7 @@ namespace Opm {
|
|||||||
//! \param param The parameter object
|
//! \param param The parameter object
|
||||||
//! \param pinfo The information about the data distribution
|
//! \param pinfo The information about the data distribution
|
||||||
//! and communication for a parallel run.
|
//! and communication for a parallel run.
|
||||||
AdaptiveTimeStepping( const parameter::ParameterGroup& param,
|
AdaptiveTimeStepping( const ParameterGroup& param,
|
||||||
const bool terminal_output = true );
|
const bool terminal_output = true );
|
||||||
|
|
||||||
//! \brief contructor taking parameter object
|
//! \brief contructor taking parameter object
|
||||||
@ -53,7 +53,7 @@ namespace Opm {
|
|||||||
//! and communication for a parallel run.
|
//! and communication for a parallel run.
|
||||||
AdaptiveTimeStepping( const Tuning& tuning,
|
AdaptiveTimeStepping( const Tuning& tuning,
|
||||||
size_t time_step,
|
size_t time_step,
|
||||||
const parameter::ParameterGroup& param,
|
const ParameterGroup& param,
|
||||||
const bool terminal_output = true );
|
const bool terminal_output = true );
|
||||||
|
|
||||||
/** \brief step method that acts like the solver::step method
|
/** \brief step method that acts like the solver::step method
|
||||||
@ -105,7 +105,7 @@ namespace Opm {
|
|||||||
Output* outputWriter,
|
Output* outputWriter,
|
||||||
const std::vector<int>* fipnum);
|
const std::vector<int>* fipnum);
|
||||||
|
|
||||||
void init(const parameter::ParameterGroup& param);
|
void init(const ParameterGroup& param);
|
||||||
|
|
||||||
typedef std::unique_ptr< TimeStepControlInterface > TimeStepControlType;
|
typedef std::unique_ptr< TimeStepControlInterface > TimeStepControlType;
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ namespace Opm {
|
|||||||
|
|
||||||
AdaptiveTimeStepping::AdaptiveTimeStepping( const Tuning& tuning,
|
AdaptiveTimeStepping::AdaptiveTimeStepping( const Tuning& tuning,
|
||||||
size_t time_step,
|
size_t time_step,
|
||||||
const parameter::ParameterGroup& param,
|
const ParameterGroup& param,
|
||||||
const bool terminal_output )
|
const bool terminal_output )
|
||||||
: timeStepControl_()
|
: timeStepControl_()
|
||||||
, restart_factor_( tuning.getTSFCNV(time_step) )
|
, restart_factor_( tuning.getTSFCNV(time_step) )
|
||||||
@ -96,7 +96,7 @@ namespace Opm {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
AdaptiveTimeStepping::AdaptiveTimeStepping( const parameter::ParameterGroup& param,
|
AdaptiveTimeStepping::AdaptiveTimeStepping( const ParameterGroup& param,
|
||||||
const bool terminal_output )
|
const bool terminal_output )
|
||||||
: timeStepControl_()
|
: timeStepControl_()
|
||||||
, restart_factor_( param.getDefault("solver.restartfactor", double(0.33) ) )
|
, restart_factor_( param.getDefault("solver.restartfactor", double(0.33) ) )
|
||||||
@ -116,7 +116,7 @@ namespace Opm {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void AdaptiveTimeStepping::
|
void AdaptiveTimeStepping::
|
||||||
init(const parameter::ParameterGroup& param)
|
init(const ParameterGroup& param)
|
||||||
{
|
{
|
||||||
// valid are "pid" and "pid+iteration"
|
// valid are "pid" and "pid+iteration"
|
||||||
std::string control = param.getDefault("timestep.control", std::string("pid") );
|
std::string control = param.getDefault("timestep.control", std::string("pid") );
|
||||||
|
@ -38,7 +38,7 @@ namespace Opm
|
|||||||
/// Initialize from parameters. Accepts the following:
|
/// Initialize from parameters. Accepts the following:
|
||||||
/// num_psteps (default 1)
|
/// num_psteps (default 1)
|
||||||
/// stepsize_days (default 1)
|
/// stepsize_days (default 1)
|
||||||
void SimulatorTimer::init(const parameter::ParameterGroup& param)
|
void SimulatorTimer::init(const ParameterGroup& param)
|
||||||
{
|
{
|
||||||
const int num_psteps = param.getDefault("num_psteps", 1);
|
const int num_psteps = param.getDefault("num_psteps", 1);
|
||||||
const double stepsize_days = param.getDefault("stepsize_days", 1.0);
|
const double stepsize_days = param.getDefault("stepsize_days", 1.0);
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
namespace Opm
|
namespace Opm
|
||||||
{
|
{
|
||||||
|
|
||||||
namespace parameter { class ParameterGroup; }
|
class ParameterGroup;
|
||||||
|
|
||||||
class SimulatorTimer : public SimulatorTimerInterface
|
class SimulatorTimer : public SimulatorTimerInterface
|
||||||
{
|
{
|
||||||
@ -44,7 +44,7 @@ namespace Opm
|
|||||||
/// Initialize from parameters. Accepts the following:
|
/// Initialize from parameters. Accepts the following:
|
||||||
/// num_psteps (default 1)
|
/// num_psteps (default 1)
|
||||||
/// stepsize_days (default 1)
|
/// stepsize_days (default 1)
|
||||||
void init(const parameter::ParameterGroup& param);
|
void init(const ParameterGroup& param);
|
||||||
|
|
||||||
/// Use the SimulatorTimer as a shim around opm-parser's Opm::TimeMap
|
/// Use the SimulatorTimer as a shim around opm-parser's Opm::TimeMap
|
||||||
void init(const TimeMap& timeMap, size_t report_step = 0);
|
void init(const TimeMap& timeMap, size_t report_step = 0);
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
namespace Opm
|
namespace Opm
|
||||||
{
|
{
|
||||||
|
|
||||||
namespace parameter { class ParameterGroup; }
|
class ParameterGroup;
|
||||||
|
|
||||||
/// Interface class for SimulatorTimer objects, to be improved.
|
/// Interface class for SimulatorTimer objects, to be improved.
|
||||||
class SimulatorTimerInterface
|
class SimulatorTimerInterface
|
||||||
|
@ -57,7 +57,7 @@ struct SetupSimple {
|
|||||||
param.insertParameter("sat_tab_size" , "0" );
|
param.insertParameter("sat_tab_size" , "0" );
|
||||||
}
|
}
|
||||||
|
|
||||||
Opm::parameter::ParameterGroup param;
|
Opm::ParameterGroup param;
|
||||||
Opm::Deck deck;
|
Opm::Deck deck;
|
||||||
Opm::EclipseState eclState;
|
Opm::EclipseState eclState;
|
||||||
};
|
};
|
||||||
|
@ -57,7 +57,7 @@ struct SetupSimple {
|
|||||||
param.insertParameter("sat_tab_size" , "0" );
|
param.insertParameter("sat_tab_size" , "0" );
|
||||||
}
|
}
|
||||||
|
|
||||||
Opm::parameter::ParameterGroup param;
|
Opm::ParameterGroup param;
|
||||||
Opm::Deck deck;
|
Opm::Deck deck;
|
||||||
Opm::EclipseState eclState;
|
Opm::EclipseState eclState;
|
||||||
};
|
};
|
||||||
|
@ -65,7 +65,7 @@ try
|
|||||||
using namespace Opm;
|
using namespace Opm;
|
||||||
|
|
||||||
// std::cout << "\n================ Test program for single-cell solves with polymer ===============\n\n";
|
// std::cout << "\n================ Test program for single-cell solves with polymer ===============\n\n";
|
||||||
parameter::ParameterGroup param(argc, argv, false);
|
ParameterGroup param(argc, argv, false);
|
||||||
param.disableOutput();
|
param.disableOutput();
|
||||||
// std::cout << "--------------- Reading parameters ---------------" << std::endl;
|
// std::cout << "--------------- Reading parameters ---------------" << std::endl;
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@ void checkTransmissibilityValues(const G& grid,
|
|||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(TransmissibilityMultipliersLegacyGridInterface)
|
BOOST_AUTO_TEST_CASE(TransmissibilityMultipliersLegacyGridInterface)
|
||||||
{
|
{
|
||||||
Opm::parameter::ParameterGroup param;
|
Opm::ParameterGroup param;
|
||||||
Opm::Parser parser;
|
Opm::Parser parser;
|
||||||
Opm::ParseContext parseContext;
|
Opm::ParseContext parseContext;
|
||||||
|
|
||||||
@ -271,7 +271,7 @@ BOOST_AUTO_TEST_CASE(TransmissibilityMultipliersCpGrid)
|
|||||||
|
|
||||||
Dune::MPIHelper::instance(argc, argv);
|
Dune::MPIHelper::instance(argc, argv);
|
||||||
|
|
||||||
Opm::parameter::ParameterGroup param;
|
Opm::ParameterGroup param;
|
||||||
Opm::Parser parser;
|
Opm::Parser parser;
|
||||||
Opm::ParseContext parseContext;
|
Opm::ParseContext parseContext;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user