mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-07 23:13:01 -06:00
Changes to try to make naming and classes more consistent. This is a start to make devide models and tranport solvers so that VE models is more easely handled
This commit is contained in:
parent
e66df86e2d
commit
cfae3edcaf
34
opm/core/transport/TwoPhaseTransportSolver.cpp
Normal file
34
opm/core/transport/TwoPhaseTransportSolver.cpp
Normal file
@ -0,0 +1,34 @@
|
||||
/*===========================================================================
|
||||
//
|
||||
// File: TwoPhaseTransportSolver.cpp
|
||||
//
|
||||
// Author: hnil <hnil@sintef.no>
|
||||
//
|
||||
// Created: 9 Nov 2012
|
||||
//==========================================================================*/
|
||||
/*
|
||||
Copyright 2011 SINTEF ICT, Applied Mathematics.
|
||||
Copyright 2011 Statoil ASA.
|
||||
|
||||
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/>.
|
||||
*/
|
||||
|
||||
|
||||
#include "TwoPhaseTransportSolver.hpp"
|
||||
|
||||
TwoPhaseTransportSolver::TwoPhaseTransportSolver()
|
||||
{
|
||||
}
|
52
opm/core/transport/TwoPhaseTransportSolver.hpp
Normal file
52
opm/core/transport/TwoPhaseTransportSolver.hpp
Normal file
@ -0,0 +1,52 @@
|
||||
/*===========================================================================
|
||||
//
|
||||
// File: TwoPhaseTransportSolver.hpp
|
||||
//
|
||||
// Author: hnil <hnil@sintef.no>
|
||||
//
|
||||
// Created: 9 Nov 2012
|
||||
//==========================================================================*/
|
||||
/*
|
||||
Copyright 2011 SINTEF ICT, Applied Mathematics.
|
||||
Copyright 2011 Statoil ASA.
|
||||
|
||||
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
|
||||
/// Base class for tranport solvers
|
||||
class TwoPhaseTransportSolver
|
||||
{
|
||||
public:
|
||||
/// Construct solver.
|
||||
virtual ~TwoPhaseTransportSolver() {};
|
||||
|
||||
/// 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.
|
||||
virtual void solve(const double* darcyflux,
|
||||
const double* porevolume,
|
||||
const double* source,
|
||||
const double dt,
|
||||
std::vector<double>& saturation) = 0;
|
||||
};
|
||||
|
||||
#endif // TWOPHASETRANSPORTSOLVER_HPP
|
@ -35,7 +35,7 @@ namespace Opm
|
||||
class TransportModelInterface
|
||||
{
|
||||
public:
|
||||
virtual ~TransportModelInterface() {}
|
||||
virtual ~TransportModelInterface() {}
|
||||
private:
|
||||
virtual void solveSingleCell(const int cell) = 0;
|
||||
virtual void solveMultiCell(const int num_cells, const int* cells) = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user