Dear Julio,
I have taken a closer look at your program and identified the following
problems:
1. You fail to specify a RESV control for the injection group, as pointed out
by Roland Kaufmann.
2. You fail to specify a GRUP control for the injection well. This means that
it will not be modified by the
call to applyGroupControls(), and therefore have no controls at all.
3. You fail to specify an injection composition for the injection well.
The following changes (output from diff) allow the program to run, and produces
reasonable output. If you want additional BHP controls (max BHP for the
injector for example) that should be explicitly done by using
append_well_controls() before calling applyGroupControls(). I have not done
that here.
151a152,153
> well_group_inj_spec.reservoir_flow_max_rate_ = 0.7;
> well_group_inj_spec.control_mode_ = InjectionSpecification::RESV;
161,162c163
< injection_specification.BHP_limit_ = 0.7;
< injection_specification.control_mode_ = InjectionSpecification::BHP;
---
> injection_specification.control_mode_ = InjectionSpecification::GRUP;
182a184
> double injcomp[2] = { 1.0, 0.0 };
184c186
< add_well(INJECTOR, 0., 1, NULL, &inj_well_cells[i], &well_index,
inj_well_names[i].c_str(), wells);
---
> add_well(INJECTOR, 0., 1, injcomp, &inj_well_cells[i], &well_index,
> inj_well_names[i].c_str(), wells);
Good luck with your work!
Atgeirr
_______________________________________________
Opm mailing list
[email protected]
http://www.opm-project.org/mailman/listinfo/opm