mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Chase Constructor API Change for Opm::Connection Class
This commit is contained in:
@@ -411,18 +411,28 @@ namespace {
|
||||
};
|
||||
|
||||
for (auto k = topConn; k < kMax; ++k) {
|
||||
const auto depth = 2000 + (2*k + 1) / static_cast<double>(2);
|
||||
|
||||
auto ctf_props = Opm::Connection::CTFProperties{};
|
||||
|
||||
// 0.03, 0.0, 0.01, 0.02, 0.03, ...
|
||||
ctf_props.CF = ((k + 3 - topConn) % 4) / 100.0;
|
||||
|
||||
ctf_props.Kh = 1.0;
|
||||
ctf_props.Ke = 1.0;
|
||||
ctf_props.rw = 1.0;
|
||||
ctf_props.r0 = 0.5;
|
||||
ctf_props.re = 0.5;
|
||||
ctf_props.connection_length = 1.0;
|
||||
|
||||
conns.emplace_back(i, j, k, globIndex({i, j, k}, dims), k - topConn,
|
||||
2000 + (2*k + 1) / static_cast<double>(2),
|
||||
|
||||
// Open, Shut, Open, Open, Shut, ...
|
||||
state[(k - topConn) % state.size()],
|
||||
|
||||
// 0.03, 0.0, 0.01, 0.02, 0.03, ...
|
||||
((k + 3 - topConn) % 4) / 100.0,
|
||||
|
||||
1.0, 1.0, 0.5, 0.5, 1.0, 0.0, 0, 0.0, 0.0,
|
||||
Opm::Connection::Direction::Z,
|
||||
Opm::Connection::CTFKind::DeckValue, k - topConn, false);
|
||||
Opm::Connection::CTFKind::DeckValue,
|
||||
0, depth, ctf_props, k - topConn, false);
|
||||
}
|
||||
|
||||
return std::make_shared<Opm::WellConnections>
|
||||
|
||||
Reference in New Issue
Block a user