mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
added: StandardWellAssemble
this handles assembly of the equation system for standardwell. start by moving assembleControlEq into the new class
This commit is contained in:
71
opm/simulators/wells/StandardWellAssemble.hpp
Normal file
71
opm/simulators/wells/StandardWellAssemble.hpp
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
Copyright 2017 SINTEF Digital, Mathematics and Cybernetics.
|
||||
Copyright 2017 Statoil ASA.
|
||||
Copyright 2016 - 2017 IRIS AS.
|
||||
|
||||
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 OPM_STANDARDWELL_ASSEMBLE_HEADER_INCLUDED
|
||||
#define OPM_STANDARDWELL_ASSEMBLE_HEADER_INCLUDED
|
||||
|
||||
#include <functional>
|
||||
|
||||
namespace Opm
|
||||
{
|
||||
|
||||
class DeferredLogger;
|
||||
class GroupState;
|
||||
class Schedule;
|
||||
template<class Scalar, int numEq> class StandardWellEquations;
|
||||
class SummaryState;
|
||||
template<class FluidSystem> class WellInterfaceFluidSystem;
|
||||
class WellState;
|
||||
|
||||
//! \brief Class handling assemble of the equation system for StandardWell.
|
||||
template<class FluidSystem, class Indices, class Scalar>
|
||||
class StandardWellAssemble
|
||||
{
|
||||
public:
|
||||
//! \brief Constructor initializes reference to well.
|
||||
StandardWellAssemble(const WellInterfaceFluidSystem<FluidSystem>& well)
|
||||
: well_(well)
|
||||
{}
|
||||
|
||||
//! \brief Assemble control equation.
|
||||
template<class EvalWell>
|
||||
void assembleControlEq(const WellState& well_state,
|
||||
const GroupState& group_state,
|
||||
const Schedule& schedule,
|
||||
const SummaryState& summaryState,
|
||||
const int numWellEq,
|
||||
const EvalWell& wqTotal,
|
||||
const EvalWell& bhp,
|
||||
const std::function<EvalWell(int)>& getQs,
|
||||
const double rho,
|
||||
const int Bhp,
|
||||
StandardWellEquations<Scalar,Indices::numEq>& eqns,
|
||||
DeferredLogger& deferred_logger) const;
|
||||
|
||||
|
||||
private:
|
||||
const WellInterfaceFluidSystem<FluidSystem>& well_; //!< Reference to well
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // OPM_STANDARDWELL_ASSEMBLE_HEADER_INCLUDED
|
||||
Reference in New Issue
Block a user