Arne Morten Kvarving
630d5477d8
fixed: use correct indices for well state completion data
2016-11-04 16:40:09 +01:00
Atgeirr Flø Rasmussen
9dfd16cffb
Adapt to changed data::Wells API.
2016-10-25 10:41:16 +02:00
Atgeirr Flø Rasmussen
ad5d98664c
Merge pull request #1075 from jokva/output-data-wells-sans-vectors
...
WIP: Restore from data::Wells without vector dumps
2016-10-21 14:58:10 +02:00
Jørgen Kvalsvik
e98d6204ad
Restore from data::Wells without vector dumps
...
opm-output's data::Wells interface changed to no longer just accept a
dump of opm-core's WellState object. Update WellState to restore itself
from this new interface rather than reading the dumped vectors as-is.
2016-10-20 16:36:47 +02:00
Joakim Hove
5fdb868526
Header file moved in opm-output.
2016-10-06 14:23:47 +02:00
Atgeirr Flø Rasmussen
cd75174650
Forward declare structs as same to avoid warning.
2016-09-23 15:14:36 +02:00
Markus Blatt
f426a03801
Zero initialize wells with no perforations.
...
For these wells access its well_cells might read of the bounds
an array if they are the last wells in the struct. Therefore
we cannnot initialiue first_cell and the well control is uninitialized,
to.
With this commit theses wells are now detected and theor bhp, thp, and well_rates
are initialized to zero.
2016-09-21 12:23:34 +02:00
Anders Matheson
18a5c0b748
Remove unused parameter warning
2016-09-20 10:00:50 +02:00
Anders Matheson
4186a37563
Pass PhaseUsage to WellState::report
2016-09-20 09:41:20 +02:00
Jørgen Kvalsvik
2ad419bd1a
Make struct wells unique member of WellState
2016-06-06 12:42:54 +02:00
Jørgen Kvalsvik
be0187d512
WellState::report() to make opm-output Well data
2016-06-06 12:40:44 +02:00
Robert Kloefkorn
0a6791313b
WellState: move typedefs into public section and include string.
2015-09-16 12:36:05 +02:00
Robert Kloefkorn
68f8004132
WellState: add assertion on wells->name[].
2015-09-16 09:48:43 +02:00
Robert Kloefkorn
c532d149bd
WellState: move mapping from well name to well index to here from autodiff's WellStateFullyImplicitBlackoil.
2015-09-16 09:48:43 +02:00
babrodtk
3bca45883a
Fixed whitespace
2015-08-19 13:20:58 +02:00
Atgeirr Flø Rasmussen
eba000bf17
Do thp init() differently.
2015-08-19 13:12:15 +02:00
babrodtk
104159af15
Minor fixes
2015-08-19 13:12:14 +02:00
babrodtk
761973b01e
Fixed several compiler warnings
2015-08-19 13:12:14 +02:00
babrodtk
c7a66bf595
Update support for VFP tables: Now produces almost identical results to BHP for 'identity' table'
2015-08-19 13:12:14 +02:00
babrodtk
5913535396
More integration of VFP tables
2015-08-19 13:12:03 +02:00
babrodtk
88c3596535
Initial integration of VFP
2015-08-19 13:11:41 +02:00
babrodtk
53413e9318
Fixed warning
2015-08-19 13:10:48 +02:00
babrodtk
c4aae4440e
Update support for VFP tables: Now produces almost identical results to BHP for 'identity' table'
2015-08-19 13:10:48 +02:00
babrodtk
e05b7778d7
More integration of VFP tables
2015-08-19 13:10:48 +02:00
babrodtk
1dab5351c2
Initial integration of VFP
2015-08-19 13:10:48 +02:00
Atgeirr Flø Rasmussen
590a4898b8
Add missing include statement.
2015-06-22 13:04:14 +02:00
Edvin Brudevoll
9ec438f0d1
OPM-188: Fixup after review
2015-06-17 09:41:00 +02:00
Tor Harald Sandve
ed0854bc88
Fix comments.
2015-01-09 09:10:10 +01:00
Tor Harald Sandve
cf142969c8
Renaming well is shut to well is stopped.
...
Rename the the meaning for shut as whats used in Eclipse.
STOP: Well stopped off above the formation. I.e. allow for flow in the
well.
SHUT: Well completely isolated from the formation. The well is removed
from the well list.
2015-01-09 09:10:10 +01:00
Andreas Lauser
e530ce03d8
PVT properties: allow them to be temperature dependent
...
Note that this patch does not introduce any real temperature
dependence but only changes the APIs for the viscosity and for the
density related methods. Note that I also don't like the fact that
this requires so many changes to so many files, but with the current
design of the property classes I cannot see a way to avoid this...
2014-12-01 20:06:31 +01:00
Atgeirr Flø Rasmussen
d2e6ccec33
Fix logic related to open/shut wells initialisation.
2014-03-14 11:27:20 +01:00
Atgeirr Flø Rasmussen
f1377d9729
Bugfix: || -> &&
2014-03-11 12:54:04 +01:00
Atgeirr Flø Rasmussen
c46ad990c1
Assert to avoid future surprises.
...
Well types must be either INJECTOR or PRODUCER for now, if
we change this in the future, we should check this part of
the code as well.
2014-03-11 12:51:49 +01:00
Atgeirr Flø Rasmussen
dbd0635fda
Commented choices in initialisation of well rates.
2014-03-11 12:50:58 +01:00
Atgeirr Flø Rasmussen
e510dde102
Initialize well rates better.
...
Instead of making well rates zero for wells that are not controlled by
surface volume, we initialize them to a small value with the correct
sign (positive for injectors, negative for producers).
2014-03-10 13:30:43 +01:00
Joakim Hove
ae4738f5e7
Changed open / close behaviour of well_controls: 1) well_controls has an explicit open_close flag. 2) Will NOT flip current value to change open|close status
2014-03-04 20:23:19 +01:00
Joakim Hove
bb2604a39b
Implemented well_controls based on well_controls_get_xxx() functions.
2014-01-06 14:40:55 +01:00
Joakim Hove
0b37bdd1ec
Temporarily added symbol HAVE_WELLCONTROLS before including well_controls.h - to get acces to the internal elements in struct WellControls.
2014-01-05 16:25:31 +01:00
Joakim Hove
e75552750a
Extracted everything related to well controls to separate header well_controls.h - to simplify introducing new parser.
2014-01-03 16:04:12 +01:00
Atgeirr Flø Rasmussen
21771218b9
Ensures well rate initialization actually happens.
...
Do not use the well's comp_frac member, only rely on the control's distr
member for initialization. This forced a change to WellsManager's
initialization of the distr member.
2013-06-02 23:30:43 +02:00
Atgeirr Flø Rasmussen
9c890bc19a
Bugfix in well rate init.
...
Do not always try to initialize, also initialize proper phase rates.
2013-06-02 22:19:43 +02:00
Atgeirr Flø Rasmussen
b3acdbb8de
Refined well state initialization.
...
For SURFACE_RATE controlled wells, initialize wellRates() to match.
2013-06-02 21:58:30 +02:00
Atgeirr Flø Rasmussen
31dd4f707c
Initialize rate-controlled well bhp with safety factor.
...
Safety factor is 1.01 (INJECTOR) or 0.99 (PRODUCER), similar to
mrst's ad-fi/utils/initWellSolLocal.m > initialize().
2013-05-30 11:03:08 +02:00
Atgeirr Flø Rasmussen
221bc7a468
Added wellRates() member.
2013-05-21 23:54:30 +02:00
Atgeirr Flø Rasmussen
2405758e2d
Renamed newwells.h -> wells.h.
...
Also moved implementation file to subdir.
2013-03-18 10:33:34 +01:00
Bård Skaflestad
a93532e1ce
Opm::WellState::init(): Handle shut wells
...
This is a minor bugfix to account for the presence of shut wells
(characterised by "ctrls[w]->current < 0"). The existing code would
lead to indexing outside the "ctrls" array in the context of a shut
well.
2013-01-18 13:23:37 +01:00
Atgeirr Flø Rasmussen
7f9ea9041a
Added perfPress() to WellState.
2012-10-01 16:39:35 +02:00
Atgeirr Flø Rasmussen
b90b803b80
Changed well initialization and property calculation.
...
Bhp is now initialized to bhp target for bhp-controlled wells.
Mobilities and pvt properties are now calculated from
well perforation pressure and injection specifications for
injectors, producers still use cell properties as before.
2012-09-14 09:53:11 +02:00
Atgeirr Flø Rasmussen
5702695879
Added some documentation.
2012-06-06 13:42:25 +02:00
Atgeirr Flø Rasmussen
955b5ea068
Reorganized, added opm/core/wells/ and opm/core/simulator/.
2012-06-05 15:42:49 +02:00