added: MultisegmentWellSegments

this is a container class for per-segment properties in MultisegmentWell
This commit is contained in:
Arne Morten Kvarving
2022-12-19 13:05:07 +01:00
parent fe96a7181d
commit aa684a10b8
6 changed files with 191 additions and 69 deletions

View File

@@ -0,0 +1,62 @@
/*
Copyright 2017 SINTEF Digital, Mathematics and Cybernetics.
Copyright 2017 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 OPM_MULTISEGMENTWELL_SEGMENTS_HEADER_INCLUDED
#define OPM_MULTISEGMENTWELL_SEGMENTS_HEADER_INCLUDED
#include <opm/simulators/wells/MultisegmentWellPrimaryVariables.hpp>
#include <vector>
namespace Opm
{
template<typename FluidSystem, typename Indices, typename Scalar>
class MultisegmentWellSegments
{
using PrimaryVariables = MultisegmentWellPrimaryVariables<FluidSystem,Indices,Scalar>;
using EvalWell = typename PrimaryVariables::EvalWell;
public:
MultisegmentWellSegments(const int numSegments,
const int numComponents);
// the densities of segment fluids
// we should not have this member variable
std::vector<EvalWell> densities_;
// the mass rate of the segments
std::vector<EvalWell> mass_rates_;
// the viscosity of the segments
std::vector<EvalWell> viscosities_;
// the upwinding segment for each segment based on the flow direction
std::vector<int> upwinding_segments_;
std::vector<std::vector<EvalWell>> phase_densities_;
std::vector<std::vector<EvalWell>> phase_fractions_;
std::vector<std::vector<EvalWell>> phase_viscosities_;
};
}
#endif // OPM_MULTISEGMENTWELL_SEGMENTS_HEADER_INCLUDED