23 template <
typename TypeTag>
24 CompWellInterface<TypeTag>::
25 CompWellInterface(
const Well& well,
26 const int index_of_well,
27 const std::vector<CompConnectionData>& well_connection_data)
29 , index_of_well_(index_of_well)
30 , number_of_connection_(well_connection_data.size())
31 , reference_depth_(well.getRefDepth())
32 , connectionRates_(number_of_connection_)
34 if (FluidSystem::waterEnabled) {
35 throw std::runtime_error(
"the well model does not support water phase yet");
39 well_cells_.resize(number_of_connection_);
40 well_index_.resize(number_of_connection_);
41 saturation_table_number_.resize(number_of_connection_, 0);
42 int connection_idx = 0;
43 for (
const auto& connection_data : well_connection_data) {
44 well_cells_[connection_idx] = connection_data.cell_index;
45 well_index_[connection_idx] = connection_data.connection_transmissibility_factor;
46 saturation_table_number_[connection_idx] = connection_data.satnum_id;
54 template <
typename TypeTag>
56 CompWellInterface<TypeTag>::
62 template <
typename TypeTag>
64 CompWellInterface<TypeTag>::
67 return this->well_ecl_.name();
70 template <
typename TypeTag>
72 CompWellInterface<TypeTag>::
73 addCellRates(RateVector& rates,
unsigned cellIdx)
const 75 for (
int con = 0; con < this->number_of_connection_; ++con) {
76 if (this->well_cells_[con] == cellIdx) {
77 for (
int i = 0; i < RateVector::dimension; ++i) {
78 rates[i] += connectionRates_[con][i];
Structs needed for tpfalinearizer and its gpuparams struct extracted to be defined in one place that ...
Definition: blackoilbioeffectsmodules.hh:45