Loading...
Searching...
No Matches
WINJMULT.hpp
/*
Copyright 2023 Equinor.
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_WINJMULT_HPP
#define OPM_WINJMULT_HPP
#include <limits>
#include <string>
namespace Opm {
class KeywordLocation;
struct InjMult {
enum class InjMultMode {
WREV,
CREV,
CIRR,
NONE,
};
double fracture_pressure {std::numeric_limits<double>::max()};
double multiplier_gradient {0.};
static InjMultMode injMultModeFromString(const std::string& str,
const KeywordLocation& location);
template <class Serializer>
void serializeOp(Serializer& serializer)
{
serializer(fracture_pressure);
serializer(multiplier_gradient);
}
bool operator==(const InjMult& rhs) const;
static InjMult serializationTestObject();
static std::string InjMultToString(const InjMult&);
};
}
#endif // OPM_WINJMULT_HPP
Opm::KeywordLocation
Definition KeywordLocation.hpp:27
Opm::Serializer
Class for (de-)serializing.
Definition Serializer.hpp:94
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30
Opm::InjMult
Definition WINJMULT.hpp:30