Renamed more classes.

FullyImplicitSystemSolver{Interface, Simple} -> NewtonIterationBlackoil{Interface, Simple}.
Change suggested by B. Skaflestad.
This commit is contained in:
Atgeirr Flø Rasmussen
2014-04-08 16:11:08 +02:00
parent a434d39363
commit bd44127bd6
10 changed files with 31 additions and 31 deletions

View File

@@ -195,7 +195,7 @@ namespace {
const DerivedGeology& geo ,
const RockCompressibility* rock_comp_props,
const Wells& wells,
const FullyImplicitSystemSolverInterface& linsolver)
const NewtonIterationBlackoilInterface& linsolver)
: grid_ (grid)
, fluid_ (fluid)
, geo_ (geo)

View File

@@ -24,7 +24,7 @@
#include <opm/autodiff/AutoDiffHelpers.hpp>
#include <opm/autodiff/BlackoilPropsAdInterface.hpp>
#include <opm/autodiff/LinearisedBlackoilResidual.hpp>
#include <opm/autodiff/FullyImplicitSystemSolverInterface.hpp>
#include <opm/autodiff/NewtonIterationBlackoilInterface.hpp>
struct UnstructuredGrid;
struct Wells;
@@ -33,7 +33,7 @@ namespace Opm {
class DerivedGeology;
class RockCompressibility;
class FullyImplicitSystemSolverInterface;
class NewtonIterationBlackoilInterface;
class BlackoilState;
class WellStateFullyImplicitBlackoil;
@@ -64,7 +64,7 @@ namespace Opm {
const DerivedGeology& geo ,
const RockCompressibility* rock_comp_props,
const Wells& wells,
const FullyImplicitSystemSolverInterface& linsolver);
const NewtonIterationBlackoilInterface& linsolver);
/// Take a single forward step, modifiying
/// state.pressure()
@@ -125,7 +125,7 @@ namespace Opm {
const DerivedGeology& geo_;
const RockCompressibility* rock_comp_props_;
const Wells& wells_;
const FullyImplicitSystemSolverInterface& linsolver_;
const NewtonIterationBlackoilInterface& linsolver_;
// For each canonical phase -> true if active
const std::vector<bool> active_;
// Size = # active faces. Maps active -> canonical phase indices.

View File

@@ -17,8 +17,8 @@
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef OPM_FULLYIMPLICITSYSTEMSOLVERINTERFACE_HEADER_INCLUDED
#define OPM_FULLYIMPLICITSYSTEMSOLVERINTERFACE_HEADER_INCLUDED
#ifndef OPM_NEWTONITERATIONBLACKOILINTERFACE_HEADER_INCLUDED
#define OPM_NEWTONITERATIONBLACKOILINTERFACE_HEADER_INCLUDED
#include <opm/autodiff/LinearisedBlackoilResidual.hpp>
@@ -26,7 +26,7 @@ namespace Opm
{
/// Interface class for (linear) solvers for the fully implicit black-oil system.
class FullyImplicitSystemSolverInterface
class NewtonIterationBlackoilInterface
{
public:
/// Return type for linearSolve(). A simple, non-ad vector type.
@@ -43,4 +43,4 @@ namespace Opm
} // namespace Opm
#endif // OPM_FULLYIMPLICITSYSTEMSOLVERINTERFACE_HEADER_INCLUDED
#endif // OPM_NEWTONITERATIONBLACKOILINTERFACE_HEADER_INCLUDED

View File

@@ -18,7 +18,7 @@
*/
#include <opm/autodiff/FullyImplicitSystemSolverSimple.hpp>
#include <opm/autodiff/NewtonIterationBlackoilSimple.hpp>
#include <opm/autodiff/AutodiffHelpers.hpp>
#include <opm/core/utility/ErrorMacros.hpp>
@@ -27,7 +27,7 @@ namespace Opm
/// Construct a system solver.
/// \param[in] linsolver linear solver to use
FullyImplicitSystemSolverSimple::FullyImplicitSystemSolverSimple(const LinearSolverInterface& linsolver)
NewtonIterationBlackoilSimple::NewtonIterationBlackoilSimple(const LinearSolverInterface& linsolver)
: linsolver_(linsolver)
{
}
@@ -37,8 +37,8 @@ namespace Opm
/// being the residual itself.
/// \param[in] residual residual object containing A and b.
/// \return the solution x
FullyImplicitSystemSolverSimple::SolutionVector
FullyImplicitSystemSolverSimple::linearSolve(const LinearisedBlackoilResidual& residual) const
NewtonIterationBlackoilSimple::SolutionVector
NewtonIterationBlackoilSimple::linearSolve(const LinearisedBlackoilResidual& residual) const
{
typedef LinearisedBlackoilResidual::ADB ADB;
const int np = residual.material_balance_eq.size();

View File

@@ -17,11 +17,11 @@
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef OPM_FULLYIMPLICITSYSTEMSOLVERSIMPLE_HEADER_INCLUDED
#define OPM_FULLYIMPLICITSYSTEMSOLVERSIMPLE_HEADER_INCLUDED
#ifndef OPM_NEWTONITERATIONBLACKOILSIMPLE_HEADER_INCLUDED
#define OPM_NEWTONITERATIONBLACKOILSIMPLE_HEADER_INCLUDED
#include <opm/autodiff/FullyImplicitSystemSolverInterface.hpp>
#include <opm/autodiff/NewtonIterationBlackoilInterface.hpp>
#include <opm/core/linalg/LinearSolverInterface.hpp>
namespace Opm
@@ -31,12 +31,12 @@ namespace Opm
/// simply concatenating the Jacobian matrices and passing the
/// resulting system to a linear solver. The linear solver used
/// can be passed in as a constructor argument.
class FullyImplicitSystemSolverSimple : public FullyImplicitSystemSolverInterface
class NewtonIterationBlackoilSimple : public NewtonIterationBlackoilInterface
{
public:
/// Construct a system solver.
/// \param[in] linsolver linear solver to use
FullyImplicitSystemSolverSimple(const LinearSolverInterface& linsolver);
NewtonIterationBlackoilSimple(const LinearSolverInterface& linsolver);
/// Solve the system of linear equations Ax = b, with A being the
/// combined derivative matrix of the residual and b
@@ -52,4 +52,4 @@ namespace Opm
} // namespace Opm
#endif // OPM_FULLYIMPLICITSYSTEMSOLVERSIMPLE_HEADER_INCLUDED
#endif // OPM_NEWTONITERATIONBLACKOILSIMPLE_HEADER_INCLUDED

View File

@@ -70,7 +70,7 @@ namespace Opm
BlackoilPropsAdInterface& props,
const RockCompressibility* rock_comp_props,
WellsManager& wells_manager,
FullyImplicitSystemSolverInterface& linsolver,
NewtonIterationBlackoilInterface& linsolver,
const double* gravity);
SimulatorReport run(SimulatorTimer& timer,
@@ -110,7 +110,7 @@ namespace Opm
BlackoilPropsAdInterface& props,
const RockCompressibility* rock_comp_props,
WellsManager& wells_manager,
FullyImplicitSystemSolverInterface& linsolver,
NewtonIterationBlackoilInterface& linsolver,
const double* gravity)
{
@@ -257,7 +257,7 @@ namespace Opm
BlackoilPropsAdInterface& props,
const RockCompressibility* rock_comp_props,
WellsManager& wells_manager,
FullyImplicitSystemSolverInterface& linsolver,
NewtonIterationBlackoilInterface& linsolver,
const double* gravity)
: grid_(grid),
props_(props),

View File

@@ -33,7 +33,7 @@ namespace Opm
class BlackoilPropsAdInterface;
class RockCompressibility;
class WellsManager;
class FullyImplicitSystemSolverInterface;
class NewtonIterationBlackoilInterface;
class SimulatorTimer;
class BlackoilState;
class WellStateFullyImplicitBlackoil;
@@ -70,7 +70,7 @@ namespace Opm
BlackoilPropsAdInterface& props,
const RockCompressibility* rock_comp_props,
WellsManager& wells_manager,
FullyImplicitSystemSolverInterface& linsolver,
NewtonIterationBlackoilInterface& linsolver,
const double* gravity);
/// Run the simulation.