updating the WINJMULT keyword with correct dimension

This commit is contained in:
Kai Bao
2022-10-10 13:59:48 +02:00
parent da17ef3174
commit 2f8f019226
3 changed files with 11 additions and 4 deletions

View File

@@ -91,6 +91,11 @@ namespace RestartIO {
double fracture_pressure {std::numeric_limits<double>::max()};
double multiplier_gradient {0.};
bool active() const
{
return mode != InjMultMode::NONE;
}
template<class Serializer>
void serializeOp(Serializer& serializer)
{

View File

@@ -1316,8 +1316,8 @@ bool Well::handleWINJMULT(const Opm::DeckRecord& record, const KeywordLocation&
// if this record use CREV or CIRR, and previoiusly, the well is using WREV, we need to discard the WREV setup for
// all the connections. For the connections not specified in the record, the injmult information will be reset.
const std::string mode = record.getItem("MODE").getTrimmedString(0);
const double fracture_pressure = record.getItem("FRACTURING_PRESSURE").get<double>(0);
const double multiple_gradient = record.getItem("MULTIPLIER_GRADIENT").get<double>(0);
const double fracture_pressure = record.getItem("FRACTURING_PRESSURE").getSIDouble(0);
const double multiple_gradient = record.getItem("MULTIPLIER_GRADIENT").getSIDouble(0);
auto new_connections = std::make_shared<WellConnections>(this->connections->ordering(), this->headI, this->headJ);
const Connection::InjMult inj_mult {Connection::injModeFromString(mode), fracture_pressure, multiple_gradient};

View File

@@ -10,12 +10,14 @@
},
{
"name": "FRACTURING_PRESSURE",
"value_type": "DOUBLE"
"value_type": "DOUBLE",
"dimension": "Pressure"
},
{
"name": "MULTIPLIER_GRADIENT",
"value_type": "DOUBLE",
"default": 0
"default": 0,
"dimension": "1/Pressure"
},
{
"name": "MODE",