Rename TwoPhaseTransportSolver -> TransportSolverTwophaseInterface.

To be more consistent with naming practices elsewhere in opm-core.
This commit is contained in:
Atgeirr Flø Rasmussen 2013-03-14 22:24:36 +01:00
parent 87c8d0dc28
commit 11015c11ef
2 changed files with 22 additions and 29 deletions

View File

@ -27,6 +27,8 @@
*/
#include "TwoPhaseTransportSolver.hpp"
#include "TransportSolverTwophaseInterface.hpp"
Opm::TransportSolverTwophaseInterface::~TransportSolverTwophaseInterface()
{
}

View File

@ -1,14 +1,5 @@
/*===========================================================================
//
// File: TwoPhaseTransportSolver.hpp
//
// Author: hnil <hnil@sintef.no>
//
// Created: 9 Nov 2012
//==========================================================================*/
/*
Copyright 2011 SINTEF ICT, Applied Mathematics.
Copyright 2011 Statoil ASA.
Copyright 2012, 2013 SINTEF ICT, Applied Mathematics.
This file is part of the Open Porous Media Project (OPM).
@ -26,35 +17,35 @@
along with OPM. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TWOPHASETRANSPORTSOLVER_HPP
#define TWOPHASETRANSPORTSOLVER_HPP
#ifndef OPM_TRANSPORTSOLVERTWOPHASEINTERFACE_HEADER_INCLUDED
#define OPM_TRANSPORTSOLVERTWOPHASEINTERFACE_HEADER_INCLUDED
#include <opm/core/simulator/TwophaseState.hpp>
#include <opm/core/simulator/WellState.hpp>
namespace Opm
{
/// Base class for tranport solvers
class TwoPhaseTransportSolver
/// Base class for two-phase incompressible transport solvers.
class TransportSolverTwophaseInterface
{
public:
/// Virtual destructor to enable inheritance.
virtual ~TwoPhaseTransportSolver() {}
virtual ~TransportSolverTwophaseInterface();
/// Solve for saturation at next timestep.
/// \param[in] darcyflux Array of signed face fluxes.
/// \param[in] porevolume Array of pore volumes.
/// \param[in] source Transport source term.
/// \param[in] dt Time step.
/// \param[in, out] saturation Phase saturations.
/// \param[in, out] state Reservoir state. Saturation will be modified.
/// \param[in] wstate Well state.
virtual void solve(const double* porevolume,
const double* source,
const double dt,
TwophaseState& state,
WellState& wstate) = 0;
const WellState& wstate) = 0;
};
}
#endif // TWOPHASETRANSPORTSOLVER_HPP
#endif // OPM_TRANSPORTSOLVERTWOPHASEINTERFACE_HEADER_INCLUDED