mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-07 23:13:01 -06:00
Rename TwoPhaseTransportSolver -> TransportSolverTwophaseInterface.
To be more consistent with naming practices elsewhere in opm-core.
This commit is contained in:
parent
87c8d0dc28
commit
11015c11ef
@ -27,6 +27,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "TwoPhaseTransportSolver.hpp"
|
||||
|
||||
#include "TransportSolverTwophaseInterface.hpp"
|
||||
|
||||
Opm::TransportSolverTwophaseInterface::~TransportSolverTwophaseInterface()
|
||||
{
|
||||
}
|
@ -1,60 +1,51 @@
|
||||
/*===========================================================================
|
||||
//
|
||||
// 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).
|
||||
|
||||
|
||||
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/>.
|
||||
*/
|
||||
|
||||
|
||||
#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] porevolume Array of pore volumes.
|
||||
/// \param[in] source Transport source term.
|
||||
/// \param[in] dt Time step.
|
||||
/// \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
|
Loading…
Reference in New Issue
Block a user