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