Fault.hpp
Go to the documentation of this file.
1 /*
2  Copyright 2014 Statoil ASA.
3 
4  This file is part of the Open Porous Media project (OPM).
5 
6  OPM is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  OPM is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with OPM. If not, see <http://www.gnu.org/licenses/>.
18 */
19 #ifndef FAULT_HPP_
20 #define FAULT_HPP_
21 
22 #include <string>
23 #include <memory>
24 #include <vector>
25 
27 
28 namespace Opm {
29 
30 
31 class Fault {
32 public:
33  Fault(const std::string& faultName);
34 
35  const std::string& getName() const;
36  void setTransMult(double transMult);
37  double getTransMult() const;
38  void addFace(std::shared_ptr<const FaultFace> face);
39  std::vector<std::shared_ptr<const FaultFace> >::const_iterator begin() const;
40  std::vector<std::shared_ptr<const FaultFace> >::const_iterator end() const;
41 
42 private:
43  std::string m_name;
44  double m_transMult;
45  std::vector<std::shared_ptr<const FaultFace> > m_faceList;
46 };
47 }
48 
49 
50 #endif
Definition: Deck.hpp:29
std::vector< std::shared_ptr< const FaultFace > >::const_iterator begin() const
double getTransMult() const
const std::string & getName() const
Fault(const std::string &faultName)
std::vector< std::shared_ptr< const FaultFace > >::const_iterator end() const
Definition: Fault.hpp:31
void addFace(std::shared_ptr< const FaultFace > face)
void setTransMult(double transMult)