Loading...
Searching...
No Matches
FaultCollection.hpp
/*
Copyright 2014 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_PARSER_FAULT_COLLECTION_HPP
#define OPM_PARSER_FAULT_COLLECTION_HPP
#include <cstddef>
#include <string>
#include <opm/input/eclipse/EclipseState/Util/OrderedMap.hpp>
#include <opm/input/eclipse/EclipseState/Grid/Fault.hpp>
namespace Opm {
class DeckRecord;
class GridDims;
class GRIDSection;
class FaultCollection {
public:
FaultCollection();
FaultCollection(const GRIDSection& gridSection, const GridDims& grid);
static FaultCollection serializationTestObject();
size_t size() const;
bool hasFault(const std::string& faultName) const;
Fault& getFault(const std::string& faultName);
const Fault& getFault(const std::string& faultName) const;
Fault& getFault(size_t faultIndex);
const Fault& getFault(size_t faultIndex) const;
std::vector<std::string> getFaults(const std::string& pattern) const;
void addFault(const std::string& faultName);
void setTransMult(const std::string& faultName , double transMult);
bool operator==(const FaultCollection& data) const;
template<class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(m_faults);
}
private:
void addFaultFaces(const GridDims& grid,
const DeckRecord& faultRecord,
const std::string& faultName);
OrderedMap<Fault, 8> m_faults;
};
}
#endif // OPM_PARSER_FAULT_COLLECTION_HPP
Opm::DeckRecord
Definition DeckRecord.hpp:32
Opm::FaultCollection
Definition FaultCollection.hpp:35
Opm::FaultCollection::addFault
void addFault(const std::string &faultName)
we construct the fault based on faultName. To get the fault: getFault
Definition FaultCollection.cpp:138
Opm::Fault
Definition Fault.hpp:33
Opm::GRIDSection
Definition DeckSection.hpp:115
Opm::GridDims
Definition GridDims.hpp:31
Opm::OrderedMap
A map with iteration in the order of insertion.
Definition OrderedMap.hpp:121
Opm::Serializer
Class for (de-)serializing.
Definition Serializer.hpp:91
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30